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.

open_basedir

Discussion in 'Security' started by daltonc, Oct 12, 2006.

  1. daltonc

    daltonc Registered

    Joined:
    Sep 20, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Ok, my clientexec support is telling me I need to remove the restrictions on open_basedir in cpanel. How do I got about doing this?
     
  2. darkkouta

    darkkouta Well-Known Member

    Joined:
    May 12, 2006
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Main >> Security >> Tweak Security

    Php open_basedir Tweak
    Php's open_basedir protection prevents users from opening files outside of their home directory with php.
     
  3. krava

    krava Well-Known Member

    Joined:
    Sep 23, 2003
    Messages:
    149
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    I don't think it is the best solution in your case, because open_basedir protects your server if some account is compromised. Probably it will be better to check the error message more closely and determinate what exactly causes the problem. I bet, ClientExec tries to open some file outside the account where ClientExec is located. So check where the necessary file is placed and add the path to that file in VIRTUALHOST of your domain (see httpd.conf).

    In other words you must to do next:
    vi /etc/httpd/conf/httpd.conf

    find the virtualhost of your account and modify lines:
    <IfModule mod_php4.c>
    php_admin_value open_basedir "/home/username/:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_value open_basedir "/home/username/:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>

    to

    <IfModule mod_php4.c>
    php_admin_value open_basedir "/one/more/folder/:/home/username/:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_value open_basedir "/one/more/folder/:/home/username/:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>

    then save httpd.conf, quit and restart apache.
     
  4. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    I use clientexec myself and the openbase was probably used for easier cronjob access via the interface of clientexec. In this case, I just enter it in my crontab.
     
Loading...
Similar Threads - open_basedir
  1. epaslv
    Replies:
    7
    Views:
    234
  2. Clouseau
    Replies:
    2
    Views:
    477

Share This Page