Disabling PHP for a specific VirtualHost?

LaxSlash1993

Member
Oct 8, 2015
10
0
1
Buffalo, NY
cPanel Access Level
Root Administrator
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

This is possible, but it depends on which PHP handler you are using. Please post the output from:

Code:
/usr/local/cpanel/bin/rebuild_phpconf --current
Thank you.
 

LaxSlash1993

Member
Oct 8, 2015
10
0
1
Buffalo, NY
cPanel Access Level
Root Administrator
Code:
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 installed
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463