Internal Server Error joomla 1.5 - .htaccess

Please help me in joomla 1.5.
I have Internal Server Error in my website, please give me right path that how to solve this.
error log:
/home/xxx/public_html/.htaccess: Option FollowSymLinks not allowed here

In .htaccess file, try commenting the line:
Options +FollowSymLinks
The error is probably because apache httpd main virtualhost configuration doesn't let you use Options.

Related

WAMP 500 Internal Server Error .htaccess

I know there are lots of topics there about this error, but i hope you can help.
here's the error message:
The server encountered an internal error or misconfiguration and was
unable to complete your request. Please contact the server
administrator at admin#example.com to inform them of the time this
error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error
log. Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80
I think the problem is caused by .htaccess file:
DirectoryIndex index.php index.php3 messagebrd.pl index.html index.htm# disable directory browsing
Options ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch -Indexes**
Server 500 errors can be quite a hassle to diagnose, but if you think its the .htaccess file that is causing the problem you need to work out which line is the problem by a simple process of elimination.
Start by removing the .htaccess file, and start apache
Then add one line at a time to the htaccess file restarting apache after each change.
When apache fails to start then you know what line in .htaccess it is that is causing the problem

OpenShift Options +Indexes still do not work

When I place Options +Indexes in .htaccess I always get 404 instead of DirectoryListings. However this wasn't always possible now it should be. But I can't get it working.
I have a folder of images which I need to get listed. I'm using the perl-5.10 cartridge.
Options +Indexes is disabled on OpenShift due to security risks. It can not be enabled by the user.

WSGIPassAuthorization On directive in .htaccess

I am get issue with set WSGIPassAuthorization On directive in .htaccess.
any one can suggest how to add this variable to .htaccess ?
thank all so much.
You don't actually state what the specific error you get is when you try.
Has your Apache even been configured to allow use of .htaccess files?
Has your Apache even been configured to allow FileInfo overrides in .htaccess files?
AllowOverride FileInfo
Both would be required for WSGIPassAuthorization to work in a .htaccess file.
So please tell us what the error is you get in the browser and in the Apache error logs.
Indicate whether you have taken the steps above.

Web server not reading .htaccess file

I have Ubuntu 12.10 with apache2 installed, and my .htaccess file is not working. I have it set up to be able to not have .php file extensions in the links, so it looks like www.website.com/login instead of /login.php, but it says that the URL "/login" is not found on the server. I have read this page and it says something about "AllowOverride All" but I don't know where that is, or if I need to add it, where I would add it.
EDIT: I have found this link and have found what it says, but it says that I have an Internal Server Error on any page I go to. I have changed the to
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
but it says Internal Server Error
EDIT #2: In the error log, it says
/var/www/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
EDIT #3: Found the answer here: .htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
Make sure you have enabled mod_rewrite in your .htaccess.
Also make sure you these lines at the top of your .htaccess:
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
i.e. turn the MultiViews options off.
Also see this Q&A for a similar problem and my answer.
You should have or specify Directory-block in your apache configurations. You can find AllowOverride documentation here: http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride
And documentation about <Directory> is here: http://httpd.apache.org/docs/2.2/mod/core.html#directory
In short: specify where you would like to allow the settings to be overridden with <Directory /path/to/your/directory> and then use AllowOverride all in that directory block.

FilesMatch results in Internal Server Error

I added the code below to my .htaccess file to enable caching files for 3 days. After that my website wasn't available anymore and I got a message displayed that told me it's an Internal Server Error
The code:
# 3 DAYS
<FilesMatch "\.(html|css|js|gif|jpg|jpeg|png|ico|swf)$"> Header set Cache-Control "max-age=259200, proxy-revalidate" </FilesMatch>
The message:
Internal Server Error
The server encountered an internal
error or misconfiguration and was
unable to complete your request.
Please contact the server
administrator, webmaster#exampple.com
and inform them of the time the error
occurred, and anything you might have
done that may have caused the error.
More information about this error may
be available in the server error log.
What is wrong with the FilesMatch or what else could cause the Internal Server Error?
Thanks
I had this issue a while ago, You can solve it by typing
"sudo a2enmod headers" in the command line
this is another solution
http://diogomelo.net/node/24
To enable this module, log in as root, and create a symbolic link from mods-available/headers.load to mods-enabled. After that, reload apache and it's done. To do so, I've used this commands.
su -
cd /etc/apache2/mods-enabled/
ln -s ../mods-available/headers.load headers.load
sh /etc/init.d/apache2 force-reload
After that procedure the issue is solved.
It has to be on multiple lines, not all in a single line. This one works fine for me:
<FilesMatch "\.(html|css|js|gif|jpg|jpeg|png|ico|swf)$">
Header set Cache-Control "max-age=259200, proxy-revalidate"
</FilesMatch>
This is another possible solution, after applying multiple lines do this simple possible solution.
Problem:
You may have copied and pasted the htaccess instructions directly from a sample code on a website or a slide presentation or somewhere else which creates a problem with the text encoding format.
Solution:
Copy the code again but this time paste it on a simple notepad or text editor and then, copy and paste it again into the ataccess file. This will remove any encoding problem.
Another problem you can have which returns error 500 it's you don't have enabled the AllowOverride directive correctly on the Apache conf file.
Example:
<VirtualHost *:80>
ServerName yoursitename
DocumentRoot /var/www/html/site
<Directory /var/www/html/site>
Options -Indexes +FollowSymLinks +MultiViews
Require all granted
AllowOverride None
</Directory>
ErrorLog /var/log/apache2/error_site.log
On that sample there's one AllowOverride none which blocks all .htaccess modifications you can do.
You can remove that AllowOverride None or modify it allowing only the directives do you need. On the example you placed with AllowOverride FileInfo will be ok.
More info about the AllowOverride directive here: https://httpd.apache.org/docs/2.4/es/mod/core.html#allowoverride

Resources