Problem to upload file on server php bitnami - php

I'm deploying a web server, and the server is running bitnami. When I try to upload a file to the server, it returns 400 errors, bad request. I read the error log of bitnami (because the code works on another server) and It has the following message:
[Wed Feb 10 15:11:33.103754 2021] [proxy_fcgi:error] [pid 10113:tid 140226278139648] (11)Resource temporarily unavailable: [client xxxxxxxx:64905] AH01075: Error dispatching request to : (reading input brigade), referer: http://xxxxxxx/test.php
I have verified the limit to upload, timely execution, php.ini, etc. And I search for information about the error but I can't find information about it. What do the reasons maybe? Thank you for your comments

Related

How to detect and log long time taking requests and connection timeout requests

question is pretty simple even if not so obvious.
I managing a website that's showing issues with connection timeout, making the web service unaccessible and not working properly when it happens.
The actual environment is WooCommerce on a self-managed secured VPS.
php7, php-fpm, wordpress 5.+, apache2, mysql, cPanel, centOs
For a couple of time the site became unreachable showing Connection Timeout error, even if all services was up and running.
How to track or log requests originating the connection timeout error?
For example, with an application ran on the server that:
log every requests that occurs with more than 30 seconds execution time
the moment of the request
the request URL.
Any software, wordpress, cPanel extension or service in order to detect the issue?
I get the solution in matter of detecting the situation when it happens.
The key information can be found in PHP-FPM log (deducted that by the fact that restarting PHP-FPM and not Apache2 was solving the problem, due to a probable PHP-FPM thread appended).
i.e., in a cPanel enviroment you would find the log at the path:
/opt/cpanel/ea-php$$/root/usr/var/log/php-fpm/error.log
In the file the following lines are noteful:
[Tue Jul 16 09:55:30.677693 2019] [proxy_fcgi:error] [pid 17283] (70007)The timeout specified has expired: [client 162.158.91.192:16946] AH01075: Error dispatching request to : (polling), referer: https://www.example.com/my-resource.php
[Tue Jul 16 10:00:30.738947 2019] [proxy_fcgi:error] [pid 17283] (70007)The timeout specified has expired: [client 162.158.91.192:16946] AH01075: Error dispatching request to : (polling), referer: https://www.example.com/my-resource.php
So I've been able to inspect the shown resource and replicate and solve the issue.

I can't run php on my vps: Internal Server Error 500

I am using hostnine vps. When I set up domain and upload file I notice that php code gives "Internal Server Error". But html run without problem.
In cpanel server errors show this error:
[Sun Dec 04 21:06:10 2016] [error] [client 188.139.123.21] File does
not exist: /home/myusername/public_html/500.shtml [Sun Dec 04
21:06:10 2016] [error] [client 188.139.123.21] SoftException in
Application.cpp:608: Directory "/home/myusername/public_html" is
writeable by group
browser gives me this error:
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, webmaster#nysite.org and
inform them of the time the error occurred, and anything you might
have done that may have caused the error.
More information about this error may be available in the server error
log.
Additionally, a 404 Not Found error was encountered while trying to
use an ErrorDocument to handle the request.
Only solution what I get was, full backup and it works fine now.

Internal Server Error 500 upon activation of a WordPress plugin

My WP installation generates a Internal Error 500 every time I activate the BuddyPress plugin.
This is the actual error:
[Sat Mar 28 19:12:28.102868 2015] [fastcgi:error] [pid 10447] (104)Connection reset by peer: [client 192.168.1.1:55431] FastCGI: comm with server "/var/www/clients/client1/web4/cgi-bin/php5-fcgi-*-80-site.eu" aborted: read failed, referer: http://site.eu/wp-admin/update.php?action=install-plugin&plugin=buddypress&_wpnonce=54e15a2310
[Sat Mar 28 19:12:28.103055 2015] [fastcgi:error] [pid 10447] [client 192.168.1.1:55431] FastCGI: incomplete headers (0 bytes) received from server "/var/www/clients/client1/web4/cgi-bin/php5-fcgi-*-80-site.eu", referer: http://site.eu/wp-admin/update.php?action=install-plugin&plugin=buddypress&_wpnonce=54e15a2310`
How should I solve that?
P.S. The strange thing is that before, when the server was running Ubuntu 12, I had no troubles activating and using BuddyPress. Then something possessed me and I decided to upgrade the OS to 14.04 and as a result the site became inaccessible. Finally, I figured that it was BuddyPress that was causing the issue, removed it from the plugins folder and the site went back to working. Now every time I try to re-add BP, I get the error above.
According to this post, installing this plugins cause the fcgi process for PHP to hit its memory limit or execution time limit, preventing it to properly finish.

Long respond time because of Mod_SPDY or Session , Apache2 server

I'm work on an apache2 server (nginx) and for some reason the respond times have been very long. It can take up to 30Sec to get a respond from the server.
I have check the PHP code and also added a timer to it so it can’t be the code. I have also created a very simple dummy file but the delay is still there.
I have also restarted all services but the problem is still there.
I keep seeing the following Errors in the error-log and suspecting that it might be related to a session problem:
[Sun Oct 06 16:50:03 2013] [error] [client 69.201.188.61] [mod_spdy/0.9.4.1-397] [32734:32734:ERROR:spdy_session.cc(304)] Session error: INVALID_CONTROL_FRAME
[Sun Oct 06 15:32:13 2013] [error] [client 84.168.213.116] [mod_spdy/0.9.4.1-397] [18811:18811:ERROR:apache_spdy_session_io.cc(88)] ap_get_brigade failed with status 104: Connection reset by peer
I Googled these error logs but couldn’t really find anything.
Any suggestions?
Thank you for your help

500 Internal Server Error - Error logs do not show anything significant

First of all, thank you for your time in reading this :)
I am managing a server which runs apache2 and mod_fcgi which host a few sites via Virtual Hosts. Some sites are straight PHP, the others are all WordPress. The WordPress sites are all functioning great, however, any other site throws up a 500 Internal Server Error when you try to access them.
If you navigate to a non-php file on the web directory (like an image) it will display, but any .php file throws up this error.
The Apache2 error log shows nothing.
When I tail the error log of the site, I get this:
[Wed May 22 15:12:15 2013] [warn] [client x.x.x.x] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Wed May 22 15:12:15 2013] [error] [client x.x.x.x] Premature end of script headers: php-fcgi-wrapper
[Wed May 22 15:12:15 2013] [debug] mod_deflate.c(615): [client x.x.x.x] Zlib: Compressed 612 to 377 : URL /fcgi-bin/php-fcgi-wrapper/index.php
The root of the website is located in /var/www/site1/
I have quadrouple-checked my permissions and ownerships.
I have increased more memory for PHP.
I tried looking at the php.log file, but nothing is being written.
Can anyone point anything else out that could be causing this?
Thank you!
I don't have the time at the moment to back up my cgi-conflict suggestion, but it occurred to me that you may be using php short tags, when the server doesn't allow it. Wordpress I believe uses full open tags which would explain why it works.
Instead of using:
<? //some php code
?>
Try:
<?php //some php code
?>
Are you using short tags? This could be your issue.

Categories