Control Web Panel

WebPanel => Apache => Topic started by: ServerOk on April 06, 2019, 03:26:01 AM

Title: PHP not working
Post by: ServerOk on April 06, 2019, 03:26:01 AM
On new CWP Server, PHP not working. When i visit wbe site, i get error

Code: [Select]
Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

The site is set to use following socket file

Code: [Select]
proxy:unix:/opt/alt/php-fpm56/usr/var/sockets/sokcwp.sock

This file does not exist. User config for this pool is missing, only nobody.conf exists

Code: [Select]
[root@vps43443758 ~]# ls -l /opt/alt/php-fpm56/usr/etc/php-fpm.d/users
total 4
-rw-r--r-- 1 root root 629 Apr  6 02:38 nobody.conf
[root@vps43443758 ~]#

If i manually create

 /opt/alt/php-fpm56/usr/etc/php-fpm.d/users/sokcwp.conf

PHP start working, but this file get deleetd if i do some changes in server setting.

Why CPW is not creating pool config for the web site user ?




Title: Re: PHP not working
Post by: studio4host on April 07, 2019, 05:07:34 PM
you need to use Webservers domain conf module and enable there php-fpm once you have enabled it if fpm is not working then you can check the webserver's logs to get an issue info
 /var/log/cwp/webservers.log
Title: Re: PHP not working
Post by: ServerOk on April 07, 2019, 06:16:54 PM
Thanks for the reply. Customer got cpanel license. WIll check the log next time.