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?
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?
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.
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).Originally Posted by darkkouta
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.
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.