By kent0943
Use digital theme test download file show 502 Bad Gateway nginx, But using AWS Apache is normal
Nginx error logs is
error] 8075#0: *6 FastCGI sent in stderr: "PHP message: PHP Warning: ltrim() expects parameter 1 to be string, object given in /www/wwwroot/domain.com/wp-includes/formatting.php on line 4309" while reading response header from upstream, client: ***.215, server: domain.com, request: "GET /checkout/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi-74.sock:", host: "domain.com", referrer: "http://domain.com/downloads/123/"
php error logs is
(request: "POST /index.php?payment-mode=manual") executing too slow (38.937964 sec), logging
[12-Nov-2020 07:59:52] NOTICE: child 9321 stopped for tracing
[12-Nov-2020 07:59:52] NOTICE: about to trace 9321
[12-Nov-2020 07:59:52] NOTICE: finished trace of 9321
[12-Nov-2020 08:01:02] WARNING: [pool www] child 9321, script '***/domain.com/index.php' (request: "POST /index.php?payment-mode=manual") execution timed out (108.949547 sec), terminating
[12-Nov-2020 08:01:02] WARNING: [pool www] child 9321 exited on signal 15 (SIGTERM) after 190.038390 seconds from start
[12-Nov-2020 08:01:02] NOTICE: [pool www] child 9596 started
Cpu 2 core+4G ram now ram is 1800m/3944m Nginx 1.18.0+MySQL 5.6.49+PHP7.4
Somebody can help me thanks a lot T_T
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @kent0943,
It seems an issue with the application and PHP code. The bit in your Nginx log
FastCGI sent in stderr
Means that your application has sent it a standard error message. Most probably it’s about that:
[12-Nov-2020 08:01:02] WARNING: [pool www] child 9321, script '***/domain.com/index.php' (request: "POST /index.php?payment-mode=manual") execution timed out (108.949547 sec), terminating
I’ll recommend investigating what exactly does this POST request tries to do and see why it can’t.
Regards, KFSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.