Warning: open_basedir restriction in effect |
Top Previous Next |
Attempted to write to config.inc.php file, denied with error message... Warning: open_basedir restriction in effect. File is in wrong directory
The open basedir setting normally shouldn't cause any troubles with AShop if the $ashoppath is correctly set. It only restricts access to files to the users own document root directory which is where the files are stored anyway. File uploads work with the open basedir setting on but only if the server administrator hasn't forgotten to include the /tmp directory in the open basedir path. I've found that it is a common mistake to leave out the /tmp directory which is where php usually stores all uploaded files before the user moves them somewhere else.
PHP can be set to use open_basedir without having safe mode turned on. Open basedir seems to be used quite frequently but I don't think there are many hosting companies that actually use the safe mode of php since it is known to cause a whole lot of trouble for users.
Note: There is a bug in pre 4.2.x versions of PHP that may cause "open_basedir restriction" messages to appear when OrderForm pages are located within subdirectories. This can be avoided by locating the OrderForm pages in the same directory as AShop or by updating the version of PHP that is running on the server to a more recent version.
|