The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page