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

reply all(2)
P粉659378577

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)

P粉006540600

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!