Symptoms
-
Unable to create domain via WHMCS which is installed on the same server with Plesk. Pressing Accept Order button in WHMCS results in error:
PLESK_INFO: Server Error 503 – Service Temporarily Unavailable
-
Error inÂ
/var/www/vhosts/example.com/logs/error_log
:[proxy_fcgi:error] pid 25317:tid 140358851684096 Connection reset by peer: [client 203.0.113.2:55048] AH01075: Error dispatching request to : , referer: http://example.com/admin/test.php?userid=8&id=8&success=true
[proxy_fcgi:error] [pid 25588:tid 140358918825728] [client 203.0.113.2:55078] AH01067: Failed to read FastCGI header, referer: http://example.com/admin/test.php?userid=8&id=8&success=trueOR
Error inÂ
/var/www/vhosts/example.com/logs/proxy_error_log
:[error] 18285#0: *1859 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 203.0.113.2, server:example.com, request: "GET /cart.php?a=complete HTTP/1.1", upstream: "fastcgi://unix:///var/www/vhosts/system/example.com/php-fpm.sock:", host: "example.com", referrer: "http://example.com/cart.php?a=checkout"
Causes
It is not recommended to place WHMCS and Plesk on the same server.
Creation of new domain in Plesk causes web server restart and that affects WHMCS functionality.
Resolution
-
Go to Domains > whmcs.example.com > PHP Settings and configure PHP to run as FPM application served by nginx
- Select PHP version not shipped by OS vendor, for example: