Magento News

 

ubuntu returns 500 error when .htaccess enabled

I’m currently moving a dev magento build to my live test subdomain on ubuntu and using Easy Hosting Control Panel (EHCP).

If I rename my .htaccess file to .htaccess and refresh my subdomain url, I get an internal server error 500. If I rename the .htaccess file to .htaccess.bak, and refresh, the subdomain displays my magento store fine. BUT, if I try to navigate, since the index.php isn’t removed in the .htaccess file, all my links are dead unless I insert index.php between my root url and the actual page/directory I’m navigating to.

I tried over riding the /etc/apache2/sites-available/000-default and /etc/apache2/sites-available/default files to AllowOverride All:

<VirtualHost *>

    DocumentRoot /var/www
    <Directory />
            Options FollowSymLinks
            AllowOverride All
    </Directory>

    <Directory /var/www/vhosts/>
            Options -Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order Allow,Deny
            Allow from All
    </Directory>

    <FilesMatch "access_log|error_log">
            Deny from All
    </FilesMatch>

    ErrorLog /var/log/apache2/error.log
    LogLevel debug
    CustomLog /var/log/apache2/access.log combineddefault

but changing that in either file, or both, and then reenabling the .htaccess file still gives me the 500 error.

anything I’m doing wrong here? Somewhere else I should be placing the mod rewrite information?

thanks!

ubuntu returns 500 error when .htaccess enabled

Possibly Related Posts:


 

Leave a Reply