search

Home  >  Q&A  >  body text

open_basedir restrictions are in effect. File (/) is not within allowed paths:

<p>I encountered this error while uploading an avatar on the website. I've never gotten it before and nothing has changed recently that I started getting this error...</p> <pre class="brush:php;toolbar:false;">Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s):</pre> <p><br /></p>
P粉248602298P粉248602298448 days ago535

reply all(2)I'll reply

  • P粉659378577

    P粉6593785772023-08-24 14:26:58

    To resolve this error, you must edit the file httpd.conf. This was previously seen in the Server Root directive in the apache2handler section of phpinfo. For example, my example is like this -/etc/httpd/httpd.conf. Open the file httpd.conf and find the parameter open_basedir. and set it to None. (php_admin_value open_basedir None)

    reply
    0
  • P粉006540600

    P粉0065406002023-08-24 14:05:47

    Modify the open_basedir setting in your hosting account and set it to none. Find the open_basedir setting given under the PHP Settings area of ​​Plesk/cPanel. Set it to "None" from the drop-down list given there. I have shown them in the Plesk panel picture.

    reply
    0
  • Cancelreply