I had a problem with my apache2 configuration that it seems not reading .htaccess files at all, I tried many solutions but nothing worked until I found this question on stackoverflow I'm not convinced with the solution but it worked fine for me ------------------------------------------------------------------------------------------------- To get this working, I added the following to /etc/apache2/httpd.conf (which is a … Continue reading Problem with Apache 2 on linux not reading .htaccess files
Tag: apache
$ service apache2 restart
Task: Start Apache 2 Server # /etc/init.d/apache2 start or $ sudo /etc/init.d/apache2 start Task: Restart Apache 2 Server # /etc/init.d/apache2 restart or $ sudo /etc/init.d/apache2 restart Task: Stop Apache 2 Server # /etc/init.d/apache2 stop or $ sudo /etc/init.d/apache2 stop
just the command: sudo a2enmod rewrite
First, you’ll want to add the extra repositories to Ubuntu’s sources.list file. From a command shell, you will run the following commands: sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install libapache2-mod-php5 sudo /etc/init.d/apache2 restart