Author Topic: PHP not working  (Read 5737 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
PHP not working
« 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 ?





Offline
*
Re: PHP not working
« Reply #1 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
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: PHP not working
« Reply #2 on: April 07, 2019, 06:16:54 PM »
Thanks for the reply. Customer got cpanel license. WIll check the log next time.