daltonc

Registered
Sep 20, 2006
3
0
151
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?
 

darkkouta

Well-Known Member
May 12, 2006
55
0
156
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.
 

krava

Well-Known Member
Sep 23, 2003
149
0
166
cPanel Access Level
Root Administrator
darkkouta said:
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.
 

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
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.