Set apache to run under current user Ubuntu desktop 14

Apache2DevLAMPProductivitySecurity

 

using the command:

sudo nano /etc/apache2/envvars 

change the user and group to yourself if there is only one user and you will never have permissions problems again.

I.E., if you are only logging in and running the server as user ‘big_dog’:

export APACHE_RUN_USER=big_dog export APACHE_RUN_GROUP=big_dog 

Heck, for that matter you could change that user to the current user I’m sure somehow. Then, install user_dir you all have webs only you can have full control of (unless you modify this).

Restart the server (if unsure, just reboot or goole) and you are good to go.

 

 Creds: http://askubuntu.com/questions/97810/how-to-make-apache-run-as-current-user

Leave a Reply