Report this

What is the reason for this report?

.htaccess not working on my Ubuntu 14.04 LAMP Stack

Posted on July 10, 2014

I have just configured my LAMP stack on my Ubuntu 14.04 distribution and want to set .htaccess up to serve a website I am building for a client (he is reluctant for me to use NGINX as his current site sits on top of APACHE)

I followed the tutorial https://www.digitalocean.com/community/tutorials/how-to-use-the-htaccess-file and configured a virtual host for my domain, however I am still unable to use the .htaccess file in my projects root, whenever I try to serve a page I get a 404 error.

The .conf file for my domain looks like:

<VirtualHost *:80>

ServerAdmin alexmk92@live.co.uk
ServerName alexsims.me
ServerAlias www.alexsims.me
DocumentRoot /var/www/alexsims.me

<Directory />
		Options FollowSymLinks
		AllowOverride None
</Directory>

<Directory /var/www>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
</Directory>


ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

I tried to change AllowOverride None to AllowOverride All but that caused an internal 500 erorr, can anyone help me out here?

Regards, Alex.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

removing the Options Indexes FollowSymLinks MultiViews worked for me

As a non techical person I solved this issue with Option 2 which works for me, Thanks a lot

Here option 2! You saved me :) Tnks a Lot!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.