Question
open_basedir and safe_mode
VPS : CentOS 6.8 x64
Admin: VestaCP
I am trying to rsync my sites from another server. Rsync goes fine.
When I try to reach the site (the new one, rsynced to this server), I got an error in my cakephp logs:
2016-07-21 22:09:28 Warning: Warning (2): curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in
I tried to disable openbasedir in /etc/php.ini by : openbasedir = none
I don’t find any safe_mode in this php.ini
In /usr/local/vesta/php/lib/php.ini , safemode = Off and openbasedir = none
I still get the errors after a service httpd restart
What can I do ?
Thanks.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Can you paste in the rsync command you used to transfer data? Also, besides cakephp, what else is running on this server?
The rsync command is runned from another vps, the digital ocean is receiving the files.
Otherwise what else is running ? Nothing, I created a new droplet, installed vestacp in cli that’s it.
Thanks.
What you’re seeing is a PHP warning message (not an error) so that message should not mean the curl request failed.
Because you’re using Vesta, ccording to docs: https://vestacp.com/docs/#config-log-location-debian-ubuntu you may need to modify /etc/php5/apache2/php.ini on Ubuntu.
I am using centos and the php.ini files I can found are the one I said in the main post.
Even if it’s warning, it will fill my logs and it make no sense. I have to fix the issue on the server to avoid this.