open_basedir restrictions are in effect. File (/) is not within allowed paths:
P粉248602298
2023-08-23 18:41:21
<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>
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)
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.