Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Apr 2009
    Posts
    36

    Default cpanel apache php_admin_value open_basedir

    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. #2
    Member
    Join Date
    Apr 2009
    Posts
    36

    Default 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.

Similar Threads & Tags
Similar threads

  1. Security: open_basedir for cPanel
    By nettigritty in forum Feature Requests for cPanel/WHM
    Replies: 5
    Last Post: 05-18-2011, 01:15 PM
  2. php_admin_value open_basedir
    By blackhorse in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-06-2009, 10:26 AM
  3. Replies: 1
    Last Post: 11-01-2007, 09:29 AM
  4. php_admin_value with phpsuexe
    By flashweb in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-18-2006, 01:02 AM
  5. open_basedir
    By daltonc in forum Security
    Replies: 3
    Last Post: 10-13-2006, 03:19 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube