When uploading files I get the following message: Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/home/vhosts/site/httpdocs/xcart/admin/partner_banners.php, what is wrong ?
Obviously the problem is in PHP configuration. Your PHP has open_basedir configuration parameter set. Here is a quote from the manual: ========= open_basedir string Limit the files that can be opened by PHP to the specified directory-tree. When a script tries to open a file with, for example, fopen or gzopen, the location of the file is checked. When the file is outside the specified directory-tree, PHP will refuse to open it. All symbolic links are resolved, so it’s not possible to avoid this restriction with a symlink. ========== So you must lift this restriction or move PHP temporary directory inside basedir. Another possible solution is to move PHP temporary directory inside open_basedir directory, this option can be set in php.ini file.
Related Questions
- When uploading files I get the following message: Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/home/vhosts/site/httpdocs/xcart/admin/partner_banners.php, what is wrong ?
- A message has an VirusInfo.txt file as an embedded OLE object. What is this file and why do I get a warning message when I try to open the file?
- What happens if the X9.37 file is the wrong format, is corrupted, or has bad image files?