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.

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:
    6
    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:
    6
    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