epretorious Posted March 30, 2013 Share Posted March 30, 2013 (edited) When I manually accept the order (in WHMCS) (i.e., to "Automatically setup the product [in Plesk] when you manually accept a pending order") nginx reports this error: 502 Bad Gateway nginx Reloading the page displays the order along with an error - usually something like... Order Accept Encountered ProblemsError Code: 1007 - Domain example.com already exists. The order status (in WHMCS) has not changed but the client and the subscription has been created in the Plesk control panel. Another user believes that the error is caused by Plesk restarting Apache: The problem is caused by the WHMCS script trying to load the confirmation page at the exact second that apache is down while restarting. (Plesk always restarts apache after [adding] a domain). [/b] Apache's log file (/var/log/httpd/error_log) confirms that Apache is restarted almost immediately after WHMCS begins the process of setting up the product in Plesk: [sat Mar 30 05:43:49 2013] [notice] caught SIGTERM, shutting down Could the problem actually be caused by WHMCS being killed [by Apache restarting] while it's waiting for Plesk's confirmation? Edited March 30, 2013 by epretorious Corrected the version no. of Plesk (in the Title) 0 Quote Link to comment Share on other sites More sharing options...
fragger Posted April 1, 2013 Share Posted April 1, 2013 Hello, we have the Same Problem. You need 2 Server, one for your Customer and one for WHMCS. The Problem is the Autorestart from Plesk - there is no way to disable this but it isnt a WHMCS Problem. 0 Quote Link to comment Share on other sites More sharing options...
epretorious Posted April 1, 2013 Author Share Posted April 1, 2013 (edited) Bryan Apperson (of BitronicTech) recommended this solution: http://www.bitronictech.net/knowledgebase/310/How-to-enable-Apache-graceful-restart-in-Plesk.html ...and I can confirm that even though nginx still complains "502 Bad Gateway nginx" Brian's solution works! i.e., backing up (to /whmcs/admin/orders.php) and refreshing the page show that the order was successfully accepted (i.e., the order status is now "Active"). Edited April 1, 2013 by epretorious 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.