Page 1 of 1
Problem :-/
Posted: Mon Aug 02, 2004 12:01 am
by JeffR
I have PHP 4.3 and Apache 2 on a Windows XP box, but...
everytime I try to access anything PHP(i.e. forums), it works for a few minutes, then gives me a 404. Now I know everything is there, but this is really getting on my nerves
I'm sure you guys have heard of this before, maybe its a mistake I made somewhere in the Apache config or php.ini? Any help? Thanks.
Posted: Mon Aug 02, 2004 4:20 am
by Jean-Yves
I had a similar probem a while ago. It stemmed from installing PHP as a standalone executable rather than as an Apache module. After I reinstalled PHP as the latter, it all worked fine (much faster too!). This was a recognised bug at the time (4.3.1?) , and I don't know whether it ever got fixed in later versions.
HTH
Posted: Mon Aug 02, 2004 1:56 pm
by JeffR
I have it installed as a module, I'm gonna try updating to 5.0 or 4.3.8 and see what happens...
Posted: Tue Aug 03, 2004 8:51 am
by JAM
Not much to go on. Personally never had the problem myself either... =/
This is perhaps stupid, but...
Verify that the script's runng isn't header()'ing out to somewhere else.
Look at the 404-page and it's URI to see if it differs. (Ie. calling
http://host/foo.php suddenly becomes
http://ip/foo.php).
Verify that the "Listen ip:host" in the httpd.conf is correct.
Verify that the docroot directive in the php.ini is correct.
Check that you are not using any wierd Virtual Directive in the httpd.conf.
Check so that youre do not have a .htaccess in the directory from where you are running the script(s).
Neverless, good luck.