Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    3

    Default open_basedir

    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. #2
    Member
    Join Date
    May 2006
    Posts
    62

    Default

    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.
    Where time is but a loop, a loose stitch in the universal cloth, A streamer might seize upon a chance, a fatal slip, and plunge the fate of planets into Chaos

    In the shadows of darkness, where light can not go, there is a place where life only survives... many people call this place hell, others, the end of world, I, just call it home.

  3. #3
    Member
    Join Date
    Sep 2003
    Posts
    141

    Default

    Quote Originally Posted by darkkouta
    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.
    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. #4
    Member
    Join Date
    Mar 2006
    Posts
    1,215

    Default

    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.

Similar Threads & Tags
Similar threads

  1. Need help with Open_basedir for suphp
    By zigzam in forum Security
    Replies: 6
    Last Post: 11-25-2010, 12:14 AM
  2. open_basedir value issue
    By asro in forum New User Questions
    Replies: 3
    Last Post: 02-25-2010, 05:35 AM
  3. Need help with Open_basedir for suphp
    By zigzam in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-16-2010, 03:52 AM
  4. Please help with open_basedir!
    By null in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 01-16-2003, 06:39 AM
  5. open_basedir
    By Radio_Head in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-02-2002, 02:56 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube