Page 1 of 1

Can't edit PHP settings?

Posted: Thu Apr 06, 2017 7:50 am
by youradds
Hi,

I'm trying to edit the PHP settings, but get an error:

https://xx.xx.xx.xx:8083/edit/server/php-fpm/

I'm not changing anything! Just pressing "Save", and I get:
Error: php-fpm7.0 failed to start with new config
Any suggestions?

Cheers

Andy

Re: Can't edit PHP settings?

Posted: Thu Apr 06, 2017 8:06 am
by rpr
Having the same problem.
It is because the fill is owned by the root user and group. Nginx doesn't have the right to edit it.

Use the shell to edit the file as root.

Code: Select all

nano /etc/php/7.0/fpm/php.ini
or
vi /etc/php/7.0/fpm/php.ini
depending your preference of shell editor.

Re: Can't edit PHP settings?

Posted: Thu Apr 06, 2017 8:19 am
by youradds
Awesome, thanks ... that was it :) Edited the file, then restarted php-fpm, and the setting are updated.

Cheers

Andy

Re: Can't edit PHP settings?

Posted: Fri Jan 05, 2018 5:55 pm
by flanders
I have a similar issue.

I installed centos 7, php 7.1 mariadb 10.2, nginx + php-fpm.

When I edit the php.ini in php-fpm got the error

Error: failed to start with new config

I got it in 2 new vps. Before with the 0.9.8-17 version, it worked perfectly.