Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old September 10th, 2002, 09:16 PM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Article Discussion: Turning Your Windows PC Into An Apache Web Server

If you have any questions or comments about this article then please post them here.

This forum post relates to this article

Reply With Quote
  #2  
Old September 11th, 2002, 02:41 AM
confuxion confuxion is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Burlington, VT
Posts: 28 confuxion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation too good to be true?

The article makes all of this sound so simple. Not knowing much about the topic, I'm inclined to believe that it is. I just thought that Apache and a Windows machine was like apples and oranges. What benefits are there to setting up the configuration described in the article? IIS drives me nuts when trying to set up a testing environment for dynamic apps. Would this configuration put an end to my headaches? What about security issues? I simply have Windows 2000 Pro installed on a desktop pc - is this scenario one that can be accomplished successfully and such that Apache will now become my default development server?

Any replies would be much appreciated.

Reply With Quote
  #3  
Old September 12th, 2002, 03:59 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Confuxion,

You answered your own question in the second part of your post. That's exactly what will happen, Apache will become your default development server.

My suggestion would be to uninstall IIS, and setup Apache. I have Apache running on an XP system and another with Windows 2000. No problems on either machine!
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #4  
Old September 12th, 2002, 07:10 PM
confuxion confuxion is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Burlington, VT
Posts: 28 confuxion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I think I just might!

Frankie,

Thanks for the reply. Sounds like I might just go ahead and do what you said. Is it fair to say that I will run into less configuration/compatibility issues with PHP-MySQL applications w/ Apache as my default server? Also, how would this scenario effect any of my applications that are ASP-Access or ASP-SQL Server based, from a development/testing aspect? Is there anything else I need to consider if I do away w/ IIS and use Apache solely? Thanks in advance for your help.

Reply With Quote
  #5  
Old September 12th, 2002, 07:40 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Confuxion,

If you're developing in ASP as well, my suggestion would be to keep IIS... I wasn't sure if you needed IIS for ASP.

As for Apache, you shouldn't run into any problems running it using PHP/MySQL...

I hope that clear up the Apache/IIS issue.

Reply With Quote
  #6  
Old September 12th, 2002, 08:40 PM
confuxion confuxion is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Burlington, VT
Posts: 28 confuxion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yes it does. Thank you very much.

Reply With Quote
  #7  
Old September 12th, 2002, 11:22 PM
markerdave markerdave is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Illinois, USA
Posts: 71 markerdave User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Frank,

Hey, have you used IIS much for development? If you have, how would you compare IIS to Apache in turns of performance, ease of use, and security? I use IIS on Win XP Pro and so far it is working well for PHP, but I am always interested in something better.
__________________
Oh I wish, I wish I hadn't killed that fish...

Reply With Quote
  #8  
Old September 13th, 2002, 10:07 PM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Hey Dave,
I use IIS and PHP on Win2k to develop and then port to Linux/Apache for production. As everyone knows, IIS security is pretty bad with new patches coming out nearly every week now. Apache has had a couple of bugs but nothing major like the IIS worms that have been floating around in the last 2 years.

We also run www.techbuy.com.au which runs on IIS on Win2k. You'll be amazed how many patches we've applied to the web server to keep them "hacker-free"... Using IIS in a production environment wasn't a good idea but I didnt know PHP back then so I guess there wasn't much that could be done

Reply With Quote
  #9  
Old September 13th, 2002, 10:53 PM
JamesWang JamesWang is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 3 JamesWang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question To Frankie

Hi, Frankie,

You said you running Apache on an XP system and don't have problem, could you tell me how can you do it.

Thanx a lot.

Really appreciate your help!



Weijie (james)

Jensenwwang@yahoo.com

Reply With Quote
  #10  
Old September 14th, 2002, 12:26 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Quote:
Originally posted by markerdave
Frank,

Hey, have you used IIS much for development? If you have, how would you compare IIS to Apache in turns of performance, ease of use, and security? I use IIS on Win XP Pro and so far it is working well for PHP, but I am always interested in something better.


I've haven't really used IIS much for my PHP development... I ran into some problems trying to do so originally, and I opted for Apache... Haven't looked back since... Since then I've set it up on all my development systems and have had no trouble at all!

Reply With Quote
  #11  
Old September 14th, 2002, 12:28 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Re: To Frankie

Quote:
Originally posted by JamesWang
Hi, Frankie,

You said you running Apache on an XP system and don't have problem, could you tell me how can you do it.

Thanx a lot.

Really appreciate your help!



Weijie (james)

Jensenwwang@yahoo.com


Hey James!

Yeah, I run it on an XP box, as well as a W2K box... No trouble at all!

As for setting it up on your XP system (if that's what you're running), I would suggest, reading Ben's tutorial... It'll have you up in no time!

If you have any trouble, let us know!

Reply With Quote
  #12  
Old September 15th, 2002, 01:39 AM
JamesWang JamesWang is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 3 JamesWang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Need more of your big hand

Hi, Frankie,

I arealy read Ben's tutorial, it's a wonderful article, and follow the article, I successfully install MySQL database on my machine. I installed Apache 2.0.36(win32) couple months ago, it works fine. Ben's article is for Windows 2000.

But when I try to install PHP on my machine, so far no luck, even follow the instructions from the PHP readme.txt.

I have two operating systems, Windows 2000 on C drive, and Windows XP on D drive. Apache is on D drive.

Right now, seems the LoadModule php4_modul and
AddModule mod_php4.c doesn't work, if comment them out in the httpd.conf file, the Apache is working fine, but if not comment these two lines, can not run the Apache.

I don't know what else would be gone wrong.

Thanks for your big help.

James
Jensenwwang@yahoo.com

(Sorry for post twice)

Reply With Quote
  #13  
Old September 15th, 2002, 11:03 AM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
James,

Okay... So it's PHP trouble, not Apache, right?

Where did you install PHP?

Also, did you add the PHP extension (.php) to your "httpd.conf" file in your apache setup?

AddType application/x-httpd-php .phtml .php

Also, be sure to "uncomment" this line:

LoadModule php4_module c:/PHP/sapi/php4apache.dll

Replace "c:/php" with your PHP installation directory.


Let me know if this helps.

Reply With Quote
  #14  
Old September 16th, 2002, 08:27 AM
vstockel vstockel is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 2 vstockel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy PHP4.2.3 on APACHE 2.0.40 on Windows

PHP4.2.3 on APACHE 2.0.40

Cannot launch Apache server after including lines as suggested by Ben's Article. "Installing Apache on Windows"

Here are his lines:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php


DOES NOT WORK:

If I comment the above three lines. Apache server launches fine.


Any help will be appreciated.

Regards.
Vanna

Reply With Quote
  #15  
Old September 16th, 2002, 01:08 PM
Joe4JC Joe4JC is offline
The name's Joe. Yours?
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Lurking in the shadows...
Posts: 147 Joe4JC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
I never done this before, but I have done some research. I found something that said that with Apache 2 you should use php4apache2.dll. Hope that works!

Cheers,
Joe of 4Life
__________________
Check out 4Life today!

Reply With Quote
  #16  
Old September 16th, 2002, 01:12 PM
vstockel vstockel is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 2 vstockel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Nevermind. I did get some answers from PHP.NET Q&A.

Here's the resolutions.

PHP4.2.3 & APACHE 2.0.40 on Windows 2000 ws

All you need are the following lines in httpd.conf:
LoadModule php4_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php .php

Reply With Quote
  #17  
Old September 20th, 2002, 01:08 AM