Problem :-/

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
JeffR
Forum Newbie
Posts: 2
Joined: Mon Aug 02, 2004 12:01 am

Problem :-/

Post 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 :evil:
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.
User avatar
Jean-Yves
Forum Contributor
Posts: 148
Joined: Wed Jul 02, 2003 2:13 pm
Location: West Country, UK

Post 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
JeffR
Forum Newbie
Posts: 2
Joined: Mon Aug 02, 2004 12:01 am

Post 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...
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post 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.
Post Reply