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.

Unable to use custome conf file..

Discussion in 'General Discussion' started by imarjun, Mar 30, 2012.

  1. imarjun

    imarjun Member

    Joined:
    Mar 30, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm try to use the suhosin . So using easy apache I installed it and add the
    suhosin.executor.func.blacklist = "show_source,shell_exec,passthru,exec,popen,allow_url_fopen,system"
    in php.ini file to disable the function.
    Now I'm try to allow one domain to use certain function so I added this:

    <IfModule mod_php4.c>
    php_admin_value open_basedir “/usr/lib/php”
    php_admin_value suhosin.executor.func.blacklist="passthru,system,proc_open,popen,parse_ini_file,show_source"
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_value open_basedir “/usr/lib/php”
    php_admin_value suhosin.executor.func.blacklist="passthru,system,proc_open,popen,parse_ini_file,show_source"
    </IfModule>

    in the "/usr/local/apache/conf/userdata//std/2/username/*.conf"

    but after restart httpd service I got this error

    Apache restart failed. Unable to load pid from pid file and no httpd process found in process list.

    If apache restart reported success but it failed soon after, it may be caused by oddities with mod_ssl.

    You should run /usr/local/cpanel/scripts/ssl_crt_status as part of your troubleshooting process. Pass it --help for more details.

    Also be sure to examine apache's various log files.
    Apache Restart Output:

    Log:
    [Fri Mar 30 23:36:51 2012] [error] [client 94.36.38.69] File does not exist: /home/xxxxxxx/public_html/404.shtml
    [Fri Mar 30 23:37:15 2012] [error] [client 94.36.38.69] File does not exist: /home/xxxxxxx/public_html/favicon.ico
    [Fri Mar 30 23:37:15 2012] [error] [client 94.36.38.69] File does not exist: /home/xxxxxxx/public_html/404.shtml
    [Fri Mar 30 23:46:35 2012] [notice] caught SIGTERM, shutting down
    [Fri Mar 30 23:46:36 2012] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
    [Fri Mar 30 23:46:36 2012] [warn] RSA server certificate CommonName (CN) `cpanel.nocdirecttemplate.net' does NOT match server name!?
    [Fri Mar 30 23:46:36 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Fri Mar 30 23:46:36 2012] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
    [Fri Mar 30 23:46:36 2012] [warn] RSA server certificate CommonName (CN) `cpanel.nocdirecttemplate.net' does NOT match server name!?
    [Fri Mar 30 23:46:36 2012] [notice] Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8e-fips-rhel5 mod_mono/2.6.3 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.3.10 configured -- resuming normal operations
    [Fri Mar 30 23:49:55 2012] [notice] caught SIGTERM, shutting down
     
Loading...

Share This Page