I just learned to install Apache 2 on my ubuntu linux localhost for the first time. I\'m making it work with PHP5.
I noticed that anytime I want to write to a file or d
First, you will want to find out as which user your PHP code is running. If you are using mod_php5
(package name libapache2-mod-php5
) with Apache to run with the "worker" or the "prefork" MPM, this will probably be www-data
.
This is no big problem as long as you only run one web application within the server. However, if you run multiple applications (or scripts that are owned by more than one user), you are setting yourself up for all kinds of security-related "fun".