Disabling PHP for a specific VirtualHost?
One of the plans that I would like to create is a very low-cost plan that only serves static HTML content. For this to be an effective plan, I would need to disable PHP on it. I read somewhere on these forums during a search that this can be done with EasyApache, but I'm not seeing any specific options relating to doing it... could someone possibly point me in the right direction? Or did I misread something and should send in a Feature Request?
-
Hello :) This is possible, but it depends on which PHP handler you are using. Please post the output from: /usr/local/cpanel/bin/rebuild_phpconf --current
Thank you.0 -
Keith@vpsb [/usr/local/cpanel]# /usr/local/cpanel/bin/rebuild_phpconf --current [2015-10-08 16:31:47 -0400] warn [rebuild_phpconf] 11880: Unable to set RLIMIT_RSS to 536870912 at /usr/local/cpanel/Cpanel/Rlimit.pm line 47 Cpanel::Rlimit::set_rlimit(536870912) called at /usr/local/cpanel/bin/rebuild_phpconf line 23 warn [rebuild_phpconf] 11880: Unable to set RLIMIT_RSS to 536870912 Available handlers: suphp dso cgi none DEFAULT PHP: 5 PHP4 SAPI: none PHP5 SAPI: suphp SUEXEC: enabled RUID2: not installed0 -
The following document details how to modify individual VirtualHosts: Modify Virtualhost Containers With Include Files - EasyApache - cPanel Documentation Within a single virtualhost, you can try adding an entry such as this to disable PHP: suPHP_Engine off
Thank you.0
Please sign in to leave a comment.
Comments
3 comments