Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Can't edit PHP settings?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

Can't edit PHP settings?
  • Quote

Post by youradds » Thu Apr 06, 2017 7:50 am

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
Top

rpr
Posts: 21
Joined: Mon Feb 13, 2017 1:18 pm

Re: Can't edit PHP settings?
  • Quote

Post by rpr » Thu Apr 06, 2017 8:06 am

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.
Top

youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

Re: Can't edit PHP settings?
  • Quote

Post by youradds » Thu Apr 06, 2017 8:19 am

Awesome, thanks ... that was it :) Edited the file, then restarted php-fpm, and the setting are updated.

Cheers

Andy
Top

flanders
Posts: 11
Joined: Thu Jun 12, 2014 4:46 pm

Os: CentOS 6x
Web: nginx + php-fpm
Re: Can't edit PHP settings?
  • Quote

Post by flanders » Fri Jan 05, 2018 5:55 pm

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.
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password