Help - Search - Members - Calendar
Full Version: Apache Problem? PHP Problem? What?
The Planet Forums > Control Panels > Other
timbernet
Hello,
First server details: PHP 4.3.10 as CGI in Apache 1.3.x on a RHE3 server using cPanel.
Now, I have yet to be able to create this problem, but a hosting client has created it on two different Apple browsers and two different PC's using IE6 and Firefox.
The problem is this: He has a PHP application he wrote, and sometimes when he clicks a button he gets a 404, and sometimes when he goes back a page with the browsers back button he gets a 404. I thought CODE, but he said it worked fine at his last host (PowWeb).
So if it is not code, it must be a setting with PHP or Apache (or maybe even a cPanel setting) but I am stumped with the problem being that I CAN NEVER RE-CREATE IT! Ugh, I hate it when this happens.

So, any insight would be great

Thank you,
S. Brown
Stefaans
If it is really Apache or PHP giving the error 404, it should be logged in /etc/httpd/logs/error_log. If there are no such errors logged, then the problem is obviously not on your server side.

My money is on the problem being on your client's side, e.g. his ISP's proxy server cache icon_wink.gif
klaude
See if you can get the output from phpinfo() on his old host's server. Maybe they have some odd esoteric apache or php option enabled that differs from your setup.
Blue|Fusion
Can you perhaps give us a link? Might it also be using something like mod_rewrite in .htaccess and it not configured properly?
timbernet
I will try to get his old phpinfo information and look at that.
As for giving a link, sorry, I cannot do that due to the fact that it is in a password protected backend for his e-com site.

The part that makes me think it is not a DNS cache issue is the fact it "occurs" on different ISP connections.

I looked the logs over with him, but he was unable to remember the times so that did not help. I have requested that he log the times so that I can find the file.

He is not using anything with mod_rewrite.

Thanks for the help and I will keep this thread updated with what I find.

-SB
timbernet
Okay. I found a phpinfo() page for the previous hosting company. Nothing was different between the two. There were some small differences, but nothing that would cause an error.

So, I got asked the customer for some more details. He says that error happens on pages where he is using POST varibles. So, example: use a form, post to another PHP page, hit BROWSER back button, then ERROR (page can't be displayed).

The only thing different from my server and the old one is that I use cPanel and he used to be on PowWeb which had their own control panel (an odd one IMHO).

I have looked at the php.ini file, but can't seem to find any area pertaining to POST varibles (well, I have found parts relating to POSTs, but not anything that I think would cause these problems).

Any ideas?

-SB
klaude
Your clients code may require register_globals=on. Try turning that on and see what happens. Watch out as this is inherently insecure.
timbernet
Register Globals is on. That is one of the first items I thought of.
If it will help, here is my phpinfo() page: http://scottbrown.us/phpinfo.php

--Scott
klaude
Have you checked apache's error log? Have you tried runnign your customer's script via CLI PHP?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.