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

Scenario:

I am getting this warning message in my wordpress blog:-

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

Solution:

You should check the Uploading Files path settings in your wordpress admin.

– Go to Settings -> Media
– Under ‘Uploading Files‘, see the path for ‘Store uploads in this folder
– The default value is ‘wp-content/uploads

If you have custom folder then you can specify it here. Otherwise, keeping the default would fix the warning message.

Hope it helps. Thanks.