PHP not working

Started by ServerOk, April 06, 2019, 03:26:01 AM

Previous topic - Next topic

ServerOk

On new CWP Server, PHP not working. When i visit wbe site, i get error


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


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


[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 ?





studio4host

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.

ServerOk

Thanks for the reply. Customer got cpanel license. WIll check the log next time.