You are here:  » Server tools

Support Forum



Server tools

Submitted by karolisgo on Tue, 2011-12-20 12:35 in

Hi,

I have moved PriceTapestry script to a new, more powerful server. After moving, in admin area after "Support info" menu I see errors. Could you please help me to solve these errors, that Gzip and Cron would be available again..

Automation Handlers

php Available
curl Available
Automation Unzip Programs

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/bin/unzip) is not within the allowed path(s): (/home/admin/:/tmp:/usr/local/lib/php/) in /home/admin/domains/mysite.com/public_html/admin/support.php on line 93

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/bin/gzip) is not within the allowed path(s): (/home/admin/:/tmp:/usr/local/lib/php/) in /home/admin/domains/mysite.com/public_html/admin/support.php on line 93
unzip Not Available
gzip Not Available
CRON

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/bin/php) is not within the allowed path(s): (/home/admin/:/tmp:/usr/local/lib/php/) in /home/admin/domains/mysite.com/public_html/admin/support.php on line 102

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/bin/wget) is not within the allowed path(s): (/home/admin/:/tmp:/usr/local/lib/php/) in /home/admin/domains/mysite.com/public_html/admin/support.php on line 111
Option 1 Not Available

Submitted by support on Tue, 2011-12-20 13:05

Hi karolis,

open_basedir is a security setting within the PHP configuration that prevents the script from being able to access files from outside of it's own user home directory (which looks like /home/admin/ in this case)

As you mentioned moving to a more powerful server, you should have access to the php configuration and be able to turn this setting off but it can be overridden using in_set. To try this, add the following line to the end of config.php (just before the closing PHP tag)

  ini_set('open_basedir',NULL);

Cheers,
David.
--
PriceTapestry.com

Submitted by karolisgo on Tue, 2011-12-20 13:15

I add your given line at the end of config.php - nothing happend.
Then disabled OpenDir in my server and problem is solved. Thanks.