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!

cpanel apache php_admin_value open_basedir

Discussion in 'EasyApache' started by liang3391, Jun 4, 2009.

  1. liang3391

    liang3391 Active Member

    Joined:
    Apr 14, 2009
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    56
    I tested on two servers, one is the cpanel of the host, a manually compiled environment. cpanel user directory / home / tttttco / public_html, and the apache configuration file is written in this form below:
    <IfModule Concurrent_php.c>
    php4_admin_value open_basedir "/ home / tttttco: / usr / lib / php: / usr/php4/lib/php: / usr / local / lib / php: / usr/local/php4/lib/php: / tmp"
    php5_admin_value open_basedir "/ home / tttttco: / usr / lib / php: / usr / local / lib / php: / tmp"
    </ IfModule>
    <IfModule !concurrent_php.c>
    <IfModule Mod_php4.c>
    php_admin_value open_basedir "/ home / tttttco: / usr / lib / php: / usr/php4/lib/php: / usr / local / lib / php: / usr/local/php4/lib/php: / tmp"
    </ IfModule>
    <IfModule Mod_php5.c>
    php_admin_value open_basedir "/ home / tttttco: / usr / lib / php: / usr / local / lib / php: / tmp"
    </ IfModule>
    <IfModule Sapi_apache2.c>
    php_admin_value open_basedir "/ home / tttttco: / usr / lib / php: / usr/php4/lib/php: / usr / local / lib / php: / usr/local/php4/lib/php: / tmp"
    </ IfModule>


    I manually compiled the environment is as follows:
    php_admin_value open_basedir / home / tttttco / public_html

    When tested with webshell that cpanel host, the user can not access other users directories, but also be able to access, such as / usr / etc directory and so on. I manually compiled the mainframe environment, users have been locked in their own directory, the directory can not access any of the other. I would like to cpanel host, apache is also set, the user can only access its own directory, an absolute lock-up.
     
  2. liang3391

    liang3391 Active Member

    Joined:
    Apr 14, 2009
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    56
    cpanel apache

    I tested on two servers, one is the cpanel of the host, a manually compiled environment. cpanel user directory / home / tttttco / public_html, and the apache configuration file is written in this form below:
    <IfModule Concurrent_php.c>
    php4_admin_value open_basedir "/ home / tttttco: / usr / lib / php: / usr/php4/lib/php: / usr / local / lib / php: / usr/local/php4/lib/php: / tmp"
    php5_admin_value open_basedir "/ home / tttttco: / usr / lib / php: / usr / local / lib / php: / tmp"
    </ IfModule>
    <IfModule !concurrent_php.c>
    <IfModule Mod_php4.c>
    php_admin_value open_basedir "/ home / tttttco: / usr / lib / php: / usr/php4/lib/php: / usr / local / lib / php: / usr/local/php4/lib/php: / tmp"
    </ IfModule>
    <IfModule Mod_php5.c>
    php_admin_value open_basedir "/ home / tttttco: / usr / lib / php: / usr / local / lib / php: / tmp"
    </ IfModule>
    <IfModule Sapi_apache2.c>
    php_admin_value open_basedir "/ home / tttttco: / usr / lib / php: / usr/php4/lib/php: / usr / local / lib / php: / usr/local/php4/lib/php: / tmp"
    </ IfModule>


    I manually compiled the environment is as follows:
    php_admin_value open_basedir / home / tttttco / public_html

    When tested with webshell that cpanel host, the user can not access other users directories, but also be able to access, such as / usr / etc directory and so on. I manually compiled the mainframe environment, users have been locked in their own directory, the directory can not access any of the other. I would like to cpanel host, apache is also set, the user can only access its own directory, an absolute lock-up.
     
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