When I try to install the CGGStudio.Loading plugin (or any other plugin) on OctoberCMS, I get the following error:
"curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set" on line 233 of /var/www/vhosts/mydomain.com/httpdocs/vendor/october/rain/src/Network/Http.php
How can I fix this?
You should set correct open_basedir
in your php.ini
file.
open_basedir
- it is list of directories, where php can have access to files.
More details in php docs
On most linux systems php.ini
is located in /etc/php5/fpm
, /etc/php5/cli
, / etc/php5/cgi
When You use Nginx + php-fpm , /etc/php5/fpm/php.ini
will be used. And when you run
php artisan
from console /etc/php5/cli/php.ini
will be used.
Also the [same question] ( CURLOPT_FOLLOWLOCATION cannot be activated )
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.