Jump to content

Fresh install - open_basedir restriction - EDIT tmp dir location ?


Recommended Posts

Fresh install, new everything.

 

After installation I got a blank BO and SHOP..

 

Enabled Dev mode.

 

getting these errors in BO : 

 

Warning: file_put_contents() [function.file-put-contents]: open_basedir restriction in effect. File(/tmp/class_index.php.KtI4IX) is not within the allowed path(s): mylink/httpdocs/classes/PrestaShopAutoload.php on line 152

 

 

Warning: file_put_contents(/tmp/class_index.php.KtI4IX) [function.file-put-contents]: failed to open stream: Operation not permitted in mylink/httpdocs/classes/PrestaShopAutoload.php on line 152

 

 

 

Any ideas?

Edited by Vaupell (see edit history)
Link to comment
Share on other sites

it's related to permissions on your hosting account

/tmp/ directory simply can't be accesses by your "www" service user

 

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.

 

make sure that your "www" user has got possibility to manage files in "/tmp/" directory

Link to comment
Share on other sites

it's related to permissions on your hosting account

/tmp/ directory simply can't be accesses by your "www" service user

 

make sure that your "www" user has got possibility to manage files in "/tmp/" directory

 

Since I dont have physical access or anything to the server that is nothing I can change,

so i contacted the host, and he told me to 

 

- Change my tmp folder to this link /var/www/vhosts/diverse-shop.dk/diverse-shop.dk/phptmpdir.

 

So where do i change the link to my temp folder, especially since both FO and BO is just an error page,

I'm guessing somewhere in "phpMyadmin"  ?   for the sql db.

Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...