Change the default path of LAMP in Ubuntu 14.04

By default the LAMP directory is /var/www/ . But in Ubuntu 14.04 or in Latest version of LAMP, the default directory is /var/www/html .  I personally
comfortable with /var/www/ . So lets take a look on how we can change the directory to /var/www/ from /var/www/html .

Run Terminal by pressing CTRL + ALT + T and type following commands.

sudo gedit /etc/apache2/sites-available/000-default.conf

And find the line /var/www/html and replace it with /var/www and save it. That's all.



Enjoy! :-)

Comments

Popular Posts