PHP & Apache, a marriage made in Hell?

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
lowerwolf
Forum Newbie
Posts: 1
Joined: Thu Aug 03, 2006 5:02 pm

PHP & Apache, a marriage made in Hell?

Post 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.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Maybe you want to start with a ready-made package like xampp
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post by AKA Panama Jack »

volka wrote:Maybe you want to start with a ready-made package like xampp
I second that.
User avatar
Obadiah
Forum Regular
Posts: 580
Joined: Mon Jul 31, 2006 9:13 am
Location: Ashland, KY
Contact:

Post 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
sgsims
Forum Newbie
Posts: 1
Joined: Sat Aug 05, 2006 10:16 am

Post 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.
thiscatis
Forum Contributor
Posts: 434
Joined: Thu Jul 20, 2006 11:00 am

Post by thiscatis »

Remember to do a lot of security checks before you open your xampp server to the public
bdlang
Forum Contributor
Posts: 395
Joined: Tue May 16, 2006 8:46 pm
Location: Ventura, CA US

Post 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.
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post 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.
User avatar
wtf
Forum Contributor
Posts: 331
Joined: Thu Nov 03, 2005 5:27 pm

Post by wtf »

Haven't tried xxamp but I have wamp on my xp and it's sweet....
Post Reply