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.

problem in diactive special php.ini

Discussion in 'Security' started by ms-net, Feb 24, 2015.

  1. ms-net

    ms-net Registered

    Joined:
    Feb 24, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    hi there dear friends..
    i want to limit php.ini for deactive special php.ini
    im goining to this directory
    PHP:
    /usr/local/apache/conf/includes/pre_main_global.conf
    and inport this code string :
    PHP:
    <IfModule mod_suphp.c>
    <
    Location />
    suPHP_ConfigPath /usr/local/lib/
    </
    Location>
    </
    IfModule>
    and im going to this config file :
    PHP:
    /opt/suphp/etc/suphp.conf
    the training should be such files available (and should separate ( ; ) in outset ) :
    PHP:
    application/x-httpd-php=/usr/local/lib/
    application/x-httpd-php4=/usr/local/php4/lib/
    application/x-httpd-php5=/usr/local/lib/
    but in my /opt/suphp/etc/suphp.conf
    there is , this code and there is not , last code :
    PHP:
    [handlers]
    ;
    Handler for php-scripts
    application
    /x-httpd-php="php:/usr/bin/php"
    application/x-httpd-php4="php:/usr/php4/bin/php"
    application/x-httpd-php5="php:/usr/bin/php"
    what to do
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

Share This Page