jka Posted December 17, 2016 Share Posted December 17, 2016 I was noticing this error in the log files. Any input? mod_fcgid: stderr: PHP Warning: file_exists() [<a href='http://docs.php.net/manual/en/function.file-exists.php'>function.file-exists.php</a>]: open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): Quote Link to comment Share on other sites More sharing options...
Noodleman Posted December 17, 2016 Share Posted December 17, 2016 It's a server side configuration, so the open_basedir needs to be configured correctly for your site. Or, you can override the sessions config and place it within a directory in your store. If you have this issue the cart normally tells you and provides instructions on how to set that up. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted December 17, 2016 Share Posted December 17, 2016 You will need to speak to your hosting company to get this sorted Ian Quote Link to comment Share on other sites More sharing options...
jka Posted December 17, 2016 Author Share Posted December 17, 2016 Hi, I have a VPS server and have access to configure anything. Any pointer where open_basedir should be configured or added in Apache? Quote Link to comment Share on other sites More sharing options...
jka Posted December 17, 2016 Author Share Posted December 17, 2016 Ok. I have added the path explicitly to the cubecart store directory in the php config file. Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 17, 2016 Share Posted December 17, 2016 I think it would be the path that is in the complaint that would need to be added:/var/lib/php/session Unless what you changed was the location to PHP's session path setting. In which case, a distinct /session/ folder within the CubeCart installed folder would be appropriate. Quote Link to comment Share on other sites More sharing options...
jka Posted December 17, 2016 Author Share Posted December 17, 2016 You are absolutely right . So, should I add that session folder to the php config? Is it normal and safe? Quote Link to comment Share on other sites More sharing options...
jka Posted December 18, 2016 Author Share Posted December 18, 2016 I did a little bit more of research on this issue. Our CC store works perfectly fine except for those php warnings in the log related to /var/lib/php/session The easy fix was to add this in the open_basedir. However I am curious why this session variable CC_ROOT_DIR is looking at /var/lib/php and not at the CCStore directory which the rest of the app is properly working. Any pointers on where this sessions config file is located and to change it? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.