Guest Posted November 23, 2008 Share Posted November 23, 2008 Error: Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/bin/gzip) is not within the allowed path(s): (/home/doranpac:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/doranpac/public_html/admin/backup.php on line 443 Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/bin/zip) is not within the allowed path(s): (/home/doranpac:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/doranpac/public_html/admin/backup.php on line 444 Now my lines for 443 & 444 are: if (file_exists(LOCAL_EXE_GZIP)) $contents[] = array('text' => '<br>' . tep_draw_radio_field('compress', 'gzip') . ' ' . TEXT_INFO_USE_GZIP); if (file_exists(LOCAL_EXE_ZIP)) $contents[] = array('text' => tep_draw_radio_field('compress', 'zip') . ' ' . TEXT_INFO_USE_ZIP); And the defines are: // Used in the "Backup Manager" to compress backups define('LOCAL_EXE_GZIP', '/usr/bin/gzip'); define('LOCAL_EXE_GUNZIP', '/usr/bin/gunzip'); define('LOCAL_EXE_ZIP', '/usr/local/bin/zip'); define('LOCAL_EXE_UNZIP', '/usr/local/bin/unzip'); In server_info.php open_basedir shows : /home/doranpac:/usr/lib/php:/usr/local/lib/php:/tmp Admin Settings are as follows: Use Cache: true Cache Directory: /home/doranpac/public_html/cache/ GZip Compression: true Level: 5 Any help is apprecaited. Link to comment Share on other sites More sharing options...
FIMBLE Posted November 23, 2008 Share Posted November 23, 2008 Hi change // Used in the "Backup Manager" to compress backups define('LOCAL_EXE_GZIP', '/usr/bin/gzip'); define('LOCAL_EXE_GUNZIP', '/usr/bin/gunzip'); define('LOCAL_EXE_ZIP', '/usr/local/bin/zip'); define('LOCAL_EXE_UNZIP', '/usr/local/bin/unzip'); TO // Used in the "Backup Manager" to compress backups define('LOCAL_EXE_GZIP', 'gzip'); define('LOCAL_EXE_GUNZIP', 'gunzip'); define('LOCAL_EXE_ZIP', 'zip'); define('LOCAL_EXE_UNZIP', 'unzip'); Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
Guest Posted November 23, 2008 Share Posted November 23, 2008 I contacted my host provider and they gave me this reply, This is because of the open_basedir restriction. You can over come this by editing options in your .htaccess file. There are different ways of achieving this so I would suggest doing a Google search for 'htaccess + open_basedir' for you to find the best solution suited to your needs. Can anyone help Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.