I am running Ubuntu on my vserver and I have set up quite a few settings concerning my topic. But I am not really sure if it is set up correctly.
My current setup is the following:
export APACHE_RUN_USER=www-data export APACHE_RUN_GROUP=www-data export APACHE_PID_FILE=/var/run/apache2.pid
I read articles about adding an extra user e.g.
sudo adduser apache which runs the apache server, so whats a good choice?
drwxr-xr-x 5 www-data:www-data 4.0K Feb 5 04:16 mysite/
This directory for example is placed in
/var/www. My folder settings inside the dir are
chmod 755 and my files are
644. Should it be owned by www-data or by my username?
Id be glad if you can give me some best practices on this. Thx for advise!