Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Disabling PHP for a specific VirtualHost?

Discussion in 'EasyApache' started by LaxSlash1993, Oct 8, 2015.

  1. LaxSlash1993

    LaxSlash1993 Member

    Joined:
    Oct 8, 2015
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,822
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. LaxSlash1993

    LaxSlash1993 Member

    Joined:
    Oct 8, 2015
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
    
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,822
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice