Page 1 of 1

PHP & Apache, a marriage made in Hell?

Posted: Thu Aug 03, 2006 5:08 pm
by lowerwolf
I have been trying to configure PHP with Apache 2, whilst installing the server with out any problems, When synchronizing with PHP, attempting to open up a .php script, error 404 is found. I have added the 'LoadModule' and 'AddType' codes to the Apache conf file but no luck.

P.S. Do you need an internet connection in order to test your PHP scripts on your computer, before they are allowed entry to the WWW.

Any help would be greatly appreciated.

Posted: Thu Aug 03, 2006 5:26 pm
by volka
Maybe you want to start with a ready-made package like xampp

Posted: Thu Aug 03, 2006 5:28 pm
by feyd
More information would be helpful. Particularly, what version of PHP, specifically? What version of Apache 2, specifically? Can you post your httpd.conf?

As to your question of internet connection requirement: no, you do not need to be connected for Apache to work.

Posted: Thu Aug 03, 2006 5:36 pm
by AKA Panama Jack
volka wrote:Maybe you want to start with a ready-made package like xampp
I second that.

Posted: Fri Aug 04, 2006 11:30 am
by Obadiah
I agree also, im using xampp on my server at work and its a really neat setup vs the alternative of trying to install everything u need manually, i had the hardest time in the past trying to get php and mysql to work together until i tried xampp as a solution...many thanx to volka for the referall

Posted: Sat Aug 05, 2006 11:00 am
by sgsims
I have a similar problem. My old development system crashed and I'm in the processing of rebuilding. After following the steps for installing Apache 2.0.55, and PHP 4.4.2 (yes, I know it's a bit out of date, but that's the evironment I was working in) I run the usual phpinfo and it works fine in IE. But when I run in Firefox (1.5.0.6) it pops up the download dialog! Anyone have any idea why this may be happening? I have been doing all my working in Firefox and don't really want to switch to IE. It should work properly in both. Any ideas would be appreciated.

Posted: Sat Aug 05, 2006 11:10 am
by thiscatis
Remember to do a lot of security checks before you open your xampp server to the public

Posted: Sat Aug 05, 2006 11:42 am
by bdlang
attempting to open up a .php script, error 404 is found
May be a stupid question, but are you sure you typed the address correctly? I've never heard of Apache issuing a 404 based on a PHP config problem.

Posted: Sat Aug 05, 2006 4:17 pm
by shiznatix
and to put one more question in there...

you running linux or windows. most comments so far have been made towards windows but if you are running linux this probably will be so much easier.

Posted: Sat Aug 05, 2006 4:55 pm
by wtf
Haven't tried xxamp but I have wamp on my xp and it's sweet....