Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

open_basedir restriction in effect. File(/) is not within the allowed path(s):

I'm getting this error on an avatar upload on my site. I've never gotten it before and nothing was changed recently for me to begin getting this error...

Warning: is_writable() [function.is-writable]:  open_basedir restriction in effect.  File(/) is not within the allowed path(s): 
like image 921
Webnet Avatar asked Dec 04 '09 13:12

Webnet


People also ask

What is Open_basedir restriction?

The open_basedir setting is primarily used to prevent PHP scripts for a particular user from accessing files in another user's account. So usually, any files in your own account should be readable by your own scripts.

Is not within the allowed path S WordPress?

File(/) is not within the allowed path(s). Basically, the intention of this warning is to restrict another user from using our webserver. For example, suppose, a function, say, mkdir in a WordPress theme or plugin tries to access a file or folder outside its home directory.


1 Answers

Modify the open_basedir settings in your hosting account and set them to none. Find the open_basedir setting given under 'PHP Settings' area of your Plesk/cPanel. Set it to 'none' from the dropdown given there. I have shown them in the Plesk panel picture.

enter image description here enter image description here

like image 173
yogihosting Avatar answered Oct 19 '22 07:10

yogihosting