Skip to main content

Disabling PHP for a specific VirtualHost?

Comments

3 comments

  • cPanelMichael
    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
  • LaxSlash1993

    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
    0
  • cPanelMichael
    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.