luckybike Posted January 6, 2005 Posted January 6, 2005 Hello, I'm getting the following error message when I click to sing into my store: Warning: file_exists(): open_basedir restriction in effect. File(/home/httpd/vhosts/luckybike.com/httpsdocs/catalog/install) is not within the allowed path(s): (/home/httpd/vhosts/luckybike.com/httpsdocs:/tmp) in /home/httpd/vhosts/luckybike.com/httpdocs/catalog/includes/warnings.php on line 5 Please note I only seem to be getting these error messages when I'm logging in with https I'm also getting several errors on the admin panel. Warning: file_exists(): open_basedir restriction in effect. File(/usr/local/bin/mysql) is not within the allowed path(s): (/home/httpd/vhosts/luckybike.com/httpsdocs:/tmp) in /home/httpd/vhosts/luckybike.com/httpdocs/catalog/admin/backup_mysql.php on line 38 Warning: file_exists(): open_basedir restriction in effect. File(/usr/local/bin/mysql.exe) is not within the allowed path(s): (/home/httpd/vhosts/luckybike.com/httpsdocs:/tmp) in /home/httpd/vhosts/luckybike.com/httpdocs/catalog/admin/backup_mysql.php on line 39 Warning: file_exists(): open_basedir restriction in effect. File(/usr/local/bin/mysqldump) is not within the allowed path(s): (/home/httpd/vhosts/luckybike.com/httpsdocs:/tmp) in /home/httpd/vhosts/luckybike.com/httpdocs/catalog/admin/backup_mysql.php on line 41 Warning: file_exists(): open_basedir restriction in effect. File(/usr/local/bin/mysqldump.exe) is not within the allowed path(s): (/home/httpd/vhosts/luckybike.com/httpsdocs:/tmp) in /home/httpd/vhosts/luckybike.com/httpdocs/catalog/admin/backup_mysql.php on line 42 Besides this I'm having some permission errors, for example: ERROR_TEMPLATE_IMAGE_DIRECTORY_NOT_WRITEABLE/home/httpd/vhosts/luckybike.com/httpdocs/catalog/templates/Original/images/ and a few others. The directory is CHMOD 755, I can get around this error by going CHMOD 777... But I would much rather get to the root of my problem. Here is some details on my setup: I'm installing Oscommerce on a VPS running Red Hat E3 and a Plesk 7.1.6 control panel. Therefore I have two directories, httpdocs and httpsdocs. I have Symlinked httpdocs to httpsdocs so httpsdocs shows contents of httpdocs. Here is my Catalog Config file: // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) ?define('HTTP_SERVER', 'http://www.luckybike.com'); // eg, http://localhost - should not be empty for productive servers ?define('HTTPS_SERVER', 'https://www.luckybike.com'); // eg, https://localhost - should not be empty for productive servers ?define('ENABLE_SSL', true); // secure webserver for checkout procedure? ?define('HTTP_COOKIE_DOMAIN', 'www.luckybike.com'); ?define('HTTPS_COOKIE_DOMAIN', 'www.luckybike.com'); ?define('HTTP_COOKIE_PATH', '/catalog/'); ?define('HTTPS_COOKIE_PATH', '/catalog/'); ?define('DIR_WS_HTTP_CATALOG', '/catalog/'); ?define('DIR_WS_HTTPS_CATALOG', '/catalog/'); ?define('DIR_WS_IMAGES', 'images/'); ?define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); ?define('DIR_WS_INCLUDES', 'includes/'); ?define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); ?define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); ?define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); ?define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); ?define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); //Added for BTS1.0 ?define('DIR_WS_TEMPLATES', 'templates/'); ?define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/'); ?define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/'); //End BTS1.0 ?define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); ?define('DIR_FS_CATALOG', '/home/httpd/vhosts/luckybike.com/httpdocs/catalog/'); ?define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); ?define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection ?define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers ?define('DB_SERVER_USERNAME', '***'); ?define('DB_SERVER_PASSWORD', '***'); ?define('DB_DATABASE', '***'); ?define('USE_PCONNECT', 'false'); // use persistent connections? ?define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> I hope someone can help me out! Or at least point me in the right direction. :lol: Kai
Guest Posted January 6, 2005 Posted January 6, 2005 you need to create a tmp directory at (/home/httpd/vhosts/luckybike.com to it looks like (/home/httpd/vhosts/luckybike.com/tmp and give it write permissions of 700 then in the admin area of the store/configuration change the path for logging, cache, sessions from the /tmp to (/home/httpd/vhosts/luckybike.com/tmp
luckybike Posted January 6, 2005 Author Posted January 6, 2005 Thanks for the quick reply! I really appreciate it! The tmp directory was already there, so I went ahead and defined the path as you suggested. Unfortunately it didn't solve my problem. :( I'm pretty sure it is someting with my https because it works perfect under http. When I try a secure connection I start having problems. Is anyone else using a Symlink for the httpsdocs and httpdocs directory? Or is this where my problem may be? Any suggestions are appreciated... I have been fighting this for three days now.. ugh.. Kai
luckybike Posted January 6, 2005 Author Posted January 6, 2005 Just to clarify: The Login works fine without https, the Admin area will still give me the same warning message
luckybike Posted January 6, 2005 Author Posted January 6, 2005 in the warning message: Warning: file_exists(): open_basedir restriction in effect. File(/home/httpd/vhosts/luckybike.com/httpsdocs/catalog/install) is not within the allowed path(s): (/home/httpd/vhosts/luckybike.com/httpsdocs:/tmp) in /home/httpd/vhosts/luckybike.com/httpdocs/catalog/includes/warnings.php on line 5 I notice it reads the path as: /home/httpd/vhosts/luckybike.com/httpsdocs:/tmp :/tmp is it normal to have the : in the warning message?
luckybike Posted January 7, 2005 Author Posted January 7, 2005 Hey Mibble, Thanks for the help, you pointed me in the right direction and I was able to fix my problem! :D The proper PHP_Admin values where not set to point to the /tmp directory. Thanks again! Kai
djashjones Posted January 13, 2005 Posted January 13, 2005 Can you explain that fix to me please. I'm getting the error Warning: file_exists(): open_basedir restriction in effect. File(/home/httpd/vhosts/ashtekelectronics.co.uk/httpsdocs/store/install) is not within the allowed path(s): (/home/httpd/vhosts/ashtekelectronics.co.uk/httpsdocs:/tmp) in /home/httpd/vhosts/ashtekelectronics.co.uk/httpdocs/store/includes/header.php on line 15
Recommended Posts
Archived
This topic is now archived and is closed to further replies.