The solution
yum install php-process
Then stop and start php-fpm
service php-fpm stop
service php-fpm start
The solution
yum install php-process
Then stop and start php-fpm
service php-fpm stop
service php-fpm start
Even after changing values on php.ini i had to set/tweak this on nginx domain configurations.
/etc/nginx/conf.d/ domain .tld .com
fastcgi_connect_timeout 2200s; fastcgi_send_timeout 2200s; fastcgi_read_timeout 2200s;
$url= 'https://example.com';
$arrContextOptions=array(
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),
);
$response = file_get_contents($url, false, stream_context_create($arrContextOptions));
yum install php-zip
service php-fpm restart
You might be having some troubles with file permissions!
I’m setting a new small vps for some tests and I got this…
/var/log/php-fpm/www-error.log
PHP Warning: touch(): Unable to create file ./cache/index.html because Permission denied in
Centos 7
nginx
PHP 7.3.3 PHP-FPM
My PHP-FPM running under apache user instead of nginx on /etc/php-fpm.d/www.conf
Não foram recebidos dados para importar. Ou não foi submetir um nome de ficheiro, ou o tamanho do ficheiro excede o tamanho máximo permitido pela sua configuração PHP. Veja FAQ 1.16.
Temos de aumentar o limit de upload e post no php.ini
find / -name 'imagick.so'
/usr/lib64/php/modules/imagick.so
/opt/rh/rh-php73/root/usr/lib64/php/modules/imagick.so
nano /etc/opt/rh/rh-php73/php.d/20-imagemagick.ini
; Enable imagick extension module
extension=/opt/rh/rh-php73/root/usr/lib64/php/modules/imagick.so
service rh-php73-php-fpm
$response = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$secret."&response=".$response); $response = json_decode($response, true); if($response["success"] === true){ // actions if successful }else{ // actions if failed }