PDA

View Full Version : apache 2 + php5


jyrppa
2nd April 2005, 09:32 AM
I'm running apache 2 and php5 on Fedora Core 3. Both installed from rpms.
Is there some basic stuff that should be setted in /etc/httpd/conf.d/php.conf
for security reasons? at the moment I have default configuration file :
----------------------------
LoadModule php5_module modules/libphp5.so
AddHandler php5-script .php
AddType text/html .php
DirectoryIndex index.php
----------------------------

stry_cat
4th April 2005, 02:31 AM
I'm running apache 2 and php5 on Fedora Core 3. Both installed from rpms.
Is there some basic stuff that should be setted in /etc/httpd/conf.d/php.conf
for security reasons? at the moment I have default configuration file :
----------------------------
LoadModule php5_module modules/libphp5.so
AddHandler php5-script .php
AddType text/html .php
DirectoryIndex index.php
----------------------------

Start here:
http://www.php.net/manual/en/security.php

Most of what you need to worry about is in php.ini not in any of the apache conf files.

You might also want to look into http://www.hardened-php.net/ while I haven't used it, I've heard good things about it.

ondrugs
18th June 2007, 04:52 PM

Where did you find the RPMs for PHP5? I can't find any for FC3 and am toying with the idea to compile the RPMs.