Ecart

Username Remember Me?
Password   forgot password?
 
   
 
Mod Rewrite
Posted: 25 May 2010 05:29 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  4
Joined  2010-05-25

After installation, with Mod-Rewrite installed and running, we cant browse the site and the admin console.

Fix: Need to create custom .htaccess file, share it and distribute it directly into the installation packaging.

Profile
 
 
Posted: 26 May 2010 02:38 AM   [ Ignore ]   [ # 1 ]  
Newbie
Rank
Total Posts:  4
Joined  2010-05-25

Fixed this issue in 2 steps:

1st: If you are running a ubuntu server (that’s my case) and have activated mod_rewrite in console mode with

sudo a2enmod rewrite 

You need to fix a bug (at least in 9.x and in the 10.04) with:

#sudo gedit /etc/apache2/sites-enabled/000-default 

Check for these lines & change as I have done here :

DocumentRoot /var/www/        
<
Directory />
                
Options FollowSymLinks
                AllowOverride all
</Directory>        
<
Directory /var/www/>
                
Options FollowSymLinks
                AllowOverride all
                Order allow
,deny
                allow from all
</Directory

Save the file & restart apache :

#sudo /etc/init.d/apache2 restart 

Then, if you running latest version of apache, please erase the headers command on the .htaccess you’ll find in the root folder of the app.

With these 2 fixes, everything should run smoothly.

Profile
 
 
   
 
 
‹‹ Installation      Module Installation Fault ››