Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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 ?

0
Posted

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 ?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123