Operating System - HP-UX
1833838 Members
2461 Online
110063 Solutions
New Discussion

Disable access to PHP in Apache

 
SOLVED
Go to solution
Alan Schultz_1
New Member

Disable access to PHP in Apache

As the result of a security audit, we have been requested to disable access to PHP. Access to PHP appears to be configurable since swlist lists both hpuxwsAPACHE.PHP and hpuxwsAPACHE.PHP2 on systems PHP is reported as active and as inactive. We don't need to deinstall PHP, we just need to make it inactive.

Thank you
1 REPLY 1
Ivan Krastev
Honored Contributor
Solution

Re: Disable access to PHP in Apache

Comment out PHP configuration in /opt/hpws/apache/conf/httpd.conf:

#LoadModule php5_module modules/libphp5.so
#AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps

After that restart apache.

regards,
ivan