Tagged Questions
0
votes
2answers
209 views
How do I make PHP securely load files from the server root home folder on CentOS?
So I built what I thought would be this awesome reporting page in PHP that loads data from some CSV text files and creates nice Google charts and tables for our clients. I then thought it would be ...
3
votes
2answers
228 views
How to set secure permissions for multiple users and multiple websites?
On a Gentoo 3.2.12 server with apache2+php, there are several websites running:
/www
/website1
/website2
...etc
The apache user should have read-only access to all the websites. There ...
3
votes
2answers
13k views
What user should apache and PHP be running as? What permissions should /var/www files have?
I just spun up an Ubuntu 11.10 box and then ran apt-get install apache2 php5 to install apache2 and PHP 5 on the box. Now it is functioning as a "web server" and it loads the "It Works!" page. Now I'm ...
5
votes
1answer
323 views
Opening port 80 but remain secure
I have a standard installation of Ubuntu 10.04, and have installed the LAMP stack so I can do some web development locally. On my router I have opened port 80 so I can develop with external services ...