Proxy blocking uploads - php

I am using uploadify to upload files on a site. Every once and a while I get these errors in my server log:
[Tue Jun 26 09:24:45 2012] [error] [client ipaddress] Handler for x-httpd-php5 returned invalid result code 70007
[Tue Jun 26 09:25:17 2012] [error] [client ipaddress] Handler for x-httpd-php5 returned invalid result code 70014
After some googling I have found that is probably caused by a person using a proxy when they are on our site.
I read somewhere online that this may help:
pass your apache log in debug mode using the directive LogLevel
I don't know what that means but i can pass it along to my webhost.
Is there any way to try and detect a proxy so I can warn the user that the upload may fail?
Any other ideas on how to handle this?
Has anyone else had this issue with uploading files via a proxy?

Related

Problem to upload file on server php bitnami

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

Internal Server Error 500 on .PHP pages only

This is a problem that has been occurring a few times a week for the last 12 months but it never used to last for longer than an hour maximum, sometimes a lot less. This time however, it has been showing for nearly 18 hours so clearly it's not going to go away on it's own this time. I've done the usual google search and also checked similar questions on here but nothing gave me a solution.
I have hosting with HostPapa and the error log within cPanel doesn't help me either. It normally just says that a file called robots.txt cannot be found and it also can't find a 404.shtml file. At this moment in time, the error log is completely empty, even if I try to visit the site beforehand.
Best theories I heard was either Wrong Permissions and/or disabling Zend Guard?
[Fri Sep 26 15:54:05 2014] [error] [client 62.24.222.132] File does not exist: /home/tmsth125/public_html/robots.txt, referer: http://tmsthermalstore.com/robots.txt
[Fri Sep 26 15:53:56 2014] [error] [client 62.24.222.131] File does not exist: /home/tmsth125/public_html/404.shtml, referer: http://tmsthermalstore.com/helloworld.php
[Fri Sep 26 15:53:56 2014] [error] [client 62.24.222.131] File does not exist: /home/tmsth125/public_html/helloworld.php, referer: http://tmsthermalstore.com/helloworld.php
After contacting Customer Support via Live Chat, they fixed the issue and confirmed it was related to permissions in the php.ini file.

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.

I keep getting the same error in my error logs on my apache server using cpanel

cPanel Version 11.28.87
Theme x3
Apache version 1.3.42
PHP version 5.2.13
MySQL version 5.0.92-community
Architecture i686
Operating system linux
I noticed in the Error Log that I was getting the same error repeatedly. A simple missing .gif that was being requested.
[Tue Apr 12 12:12:23 2011] [error] [client --.---.---.---] File does not exist: /public_html/themes/3col_blue/images/dogcat.gif
So I thought well lets just put that .gif (our logo) there...
Now I am getting a whole slew of errors regarding file does not exist that look like this:
[Tue Apr 12 02:27:47 2011] [error] [client --.---.---.---] File does not exist: /home/--------/public_html/index.php+++++++++++++++++++++++++++++++++Result:+\xe8\xf1\xef\xee\xeb\xfc\xe7\xee\xe2\xe0\xed+\xed\xe8\xea\xed\xe5\xe9\xec+"reltWeiweessy";+\xe7\xe0\xf0\xe5\xe3\xe8\xf1\xf2\xf0\xe8\xf0\xee\xe2\xe0\xeb\xe8\xf1\xfc+(\xe2\xea\xeb\xfe\xf7\xe5\xed+\xf0\xe5\xe6\xe8\xec+\xf2\xee\xeb\xfc\xea\xee+\xf0\xe5\xe3\xe8\xf1\xf2\xf0\xe0\xf6\xe8\xe8);
[Tue Apr 12 02:27:42 2011] [error] [client --.---.---.---] File does not exist: /home/--------/public_html/index.php+++++++++++++++++++++++++++++++++Result:+\xe8\xf1\xef\xee\xeb\xfc\xe7\xee\xe2\xe0\xed+\xed\xe8\xea\xed\xe5\xe9\xec+"reltWeiweessy";+\xe7\xe0\xf0\xe5\xe3\xe8\xf1\xf2\xf0\xe8\xf0\xee\xe2\xe0\xeb\xe8\xf1\xfc+(\xe2\xea\xeb\xfe\xf7\xe5\xed+\xf0\xe5\xe6\xe8\xec+\xf2\xee\xeb\xfc\xea\xee+\xf0\xe5\xe3\xe8\xf1\xf2\xf0\xe0\xf6\xe8\xe8);
how did I make this go from bad to worse?
Are there referers for those particular hits in the access_log? Looks like someone/something is pointing at your site with a badly constructed link.

Categories