Your Daily Source for Apache News and Information  
Breaking News Preferences Contribute Triggers Link Us Search About
Apache Today [Your Apache News Source] To internet.com

Where Wireless Technology & Business Intersect

Apache HTTPD Links
Apache XML Project
Apache-Perl Integration Project
The Apache Software Foundation
Apache Project
Apache Module Registry
PHP Server Side Scripting
The Java Apache Project
ApacheCon
The Jakarta Project
Apache-Related Projects
The Apache FAQ
The Linux Channel at internet.com
Apache Today
Linux Start
Enterprise Linux Today
All Linux Devices
PHPBuilder
Linux Programming
BSD Today
BSD Central
Linux Today
Linux Planet
Linux Apps
Linuxnewbie.org
Just Linux
Linux Central
SITE DESCRIPTIONS
Why and How I Installed PHP4, MySQL, and Apache on Windows 98
Sep 27, 2000, 18 :29 UTC (16 Talkback[s]) (6603 reads) (Other stories by Edward Tanguay)

Originally appearing in The Web Developer's Journal.

By Edward Tanguay

Four months ago I was selected as Web developer for a large Web site project for six hospitals here in Berlin. It was going to be an exciting project in which I would work together with a marketing company to realize a network of Web sites. However, when we had the first meeting, the head of the computer department said, "Wait a minute. You program in ASP? We run Linux boxes here and can't justify the cost or security risk of an NT-Server." They were unwilling to budge and I didn't want to force Microsoft on them and then have to work with disgruntled system administrators, so I backed out gently and declined the contract.

Beyond ASP: JSP, ColdFusion or PHP

Since that day I've been looking for ways to extend my server-side programming skills beyond the powerful but environment-limited Active Server Pages. I concluded that I basically had three choices outside ASP for server-side scripting: JSP, ColdFusion and PHP. The first, JSP, is promising but still has a relatively small community and a lack of ISPs which support it. In addition, if you use the JSP server from Allaire it is quite expensive. The second choice, ColdFusion, also from Allaire, provides you with a powerful and robust server-side scripting environment centered around databases and e-commerce, but again, the problem is it simply costs too much. If you don't have access to the multi-thousand dollar Enterprise server, you're out of luck (the free ColdFusion Express server doesn't even support session variables - not very useful).

LAMP is red hot and free

PHP, on the other hand, is free. It is combined with three other technologies to form a powerful Web development solution abbreviated LAMP: Linux (operating system), Apache (Web server), MySQL (database) and PHP (scripting language). Even with MySQL's insistance that businesses pay a nominal fee for its use, Linux, Apache and PHP are absolutely free which make the LAMP solution the most cost-effecive solution for individuals, universities and businesses. Web devlopers wishing to acquire valuable scripting skills can do so for free. On top of that, LAMP is generally known to be more secure and robust than other solutions (less crashing, less rebooting, inherent UNIX security). On top of that, LAMP has one of the largest, most active, most dedicated communities on the Web. PHP and the LAMP solution was clearly the best choice for me and I was excited.

The Linux hurdle

However, if you are a Windows user, learning Linux is like being parachuted into Italy without knowing Italian. You will be hopelessly and thoroughly lost at the UNIX prompt. Although my repeated forays into the Linux world have enabled me to install Suse Linux 6.4, set up the X Window System and even use the vi editor, I still lack so much basic knowledge of Linux that even the simplest things such as unpacking files or installing software bring me to a paralyzing stop. So even if you are the type of Windows user who can buy a $50 computer book on almost any application and become an expert in it by the end of the week, Linux is not something you are going to learn in a week, or a month or even a year without an inordinate investment of time, effort, paradigm shifting and lots of long, frustrating nights. Hence LAMP is not an option for the casual Windows user wanting to learn PHP scripting.

Settling for WAMP

Luckily, PHP, MySQL and Apache can also run on Windows (hence WAMP). Note that this is not the most stabile platform to serve your pages to the world, but it is an adequate solution if you want to learn and begin developing with PHP/MySQL while remaining in your familiar Windows environment. You can install Apache, PHP and MySQL on your Windows 98 machine, then upload your applications via FTP to a more stabile LINUX or UNIX server. WAMP is a good compromise for Windows-based Web developers who want to expand their server-side scripting skills into PHP and MySQL.

WAMP installation cryptic but not impossible

It took me a full seven days until I had Apache, PHP and MySQL on my Windows 98 installed, configured and working. It was not easy. The Web is full of well-meaning but conflicting manuals which give you instructions such as to enter "/php4win/" when it should be "c:/php4win/" - that one took me two days to figure out. Another two days was spent downloading incorrect MySQL packets (the manuals tell you to "download MySQL" but when you get to the page you are faced with a choice of about 30 different download possibilities). Luckily there were some very helpful people on the Web Developer's List who kept helping me until I got it. Thanks again to all of you!

Free workshop on installing PHP4, MySQL, Apache on Windows 95/98

If you want to install PHP4, MySQL and Apache on Windows 95 or 98, take my free online workshop on how to do it. This 14-step workshop has explicit instructions and screen shots which will lead you past all the pitfalls. With this Workshop, you can have PHP4, MySQL and Apache installed, configured and working on your Windows 98 within the hour.

is a Web developer and language trainer based in Berlin. For more diaries and tips on development visit Edward's Web Developer Site.

  Current Newswire:
Another mod_xslt added to the Apache Module Registry database

Netcraft Web Server Survey for December is available

O'Reilly: Apache Web-Serving with Mac OS X: Part 1

WDVL: Perl for Web Site Management: Part 3

Retro web application framework V1.1.0 release

Leveraging open standards such as Java, JSP, XML,J2EE, Expresso and Struts.

Netcraft Web Server Survey for November is available

FoxServ 2.0 Released

Ace's Hardware: Building a Better Webserver in the 21st Century

Web Techniques: Customer Number One

 Talkback(s) Name  Date
  Linux not too difficult
If you are a preofessional website builder Linux should not be too difficult and is defninately worth the effort. Installing Apache, MySQL and PHP on my package-managed system at home took about 4 minutes. I have also compiled from source with only moderate effort, although I have only written "hello world" C programs and have never ever written a makefile. I also don't know how to use Vi and am not in a hurry to learn. In KDE you can install a package (like MySQL) by browsing to it on the filemanager and clicking on it to bring up the installer. Uninstalling is a matter of clicking on the package in that package installer and selecting "uninstall". If you can learn how to use Linux/whatever other Unix like FreeBSD you will be able to leverage your knowledge of PHP/MySQL/Apache and not lose out on work.

I have no problem with your explaining how to use these fine programs on Windows. If Windows is indeed a useful operating system you shold not have to apologize for it or explain why you use it. I do, however, object to your downplaying of Linux as "too hard". If that is the case why not stay with IIS and "perlscript" or one of the many other "solutions" ready for you thanks to Microsoft "innovations".   
  Sep 27, 2000, 19:09:33
   Re: Linux not too difficult
I like Linux a lot, but I reject the claim that linux is easy. Installing the packages is one thing, but fine-tuning them is another. On the Windows side, you are totally right, the NT/IIS side is an obscure one, besides, I prefer setting up .conf files than dealing with clunky GUIs.   
  Mar 28, 2001, 20:35:34
  JSP
Your comments on JSP tip you off as a novice and make me question your credibility in writing this article. I like PHP but if you think it has more backing on the web than JSP, you're crazy. I have no problem whatsoever in finding JSP support from ISPs and the comment about Allaire's JSP container being expensive just makes me shake my head. Do you think it's the only one out there? Heard of Tomcat? Know that it's free? Know that it's an Apache project? The fact that JSP's support the entire Java language make it a far superior solution to PHP for fully functional web apps and last I checked, Java was free also. Scripters like yourself always seem to dismiss JSP because you find out that (gasp) you actually have to have programming skills to use it to its maximum potential.

And spell check your articles before they hit the web.   
  Sep 28, 2000, 03:42:50
   Re: JSP
> Your comments on JSP tip you off as a novice and make me question your credibility in writing this article. I like PHP but if you think it has more backing on the web than JSP, you're crazy. I have no problem whatsoever in finding JSP support from ISPs and the comment about Allaire's JSP container being expensive just makes me shake my head. Do you think it's the only one out there? Heard of Tomcat? Know that it's free? Know that it's an Apache project? The fact that JSP's support the entire Java language make it a far superior solution to PHP for fully functional web apps and last I checked, Java was free also. Scripters like yourself always seem to dismiss JSP because you find out that (gasp) you actually have to have programming skills to use it to its maximum potential.And spell check your articles before they hit the web.

Yes! That's right! Tell him how stupid he is, and how superior we are. Good thing you expose him as a novice. Who knows what his true intentions are. We should not tolerate any novices in the programming community. If a novice is using or learning a programming language other than what we use, he should be banned from the internet, locked in a room with no windows, and have heavy metal music blasted at him 24/7. Why waste the bandwith?

BTW, JS turned off at this end, seems even geniuses can't write decent JS code for average systems/browser combinations, even plain vanilla combinations.   
  Jan 17, 2001, 19:30:52
  SSI for Windows
How may I configure Windows registers to read .shtml/.stm files on my browser running with apache server (localhost) over Win 95/98?
Thank's.
  
  Feb 27, 2001, 11:45:45
   Re: SSI for Windows
Do you mean configuring you apache server to handle/parse SSI?
If that is what you mean then edit httpd.conf and uncomment some lines.   
  Mar 21, 2001, 13:04:33
  use tomcat to serve jsp pages, it is FREE
as far as i know, tomcat is free, so jsp is a worthwhile choice if the developer is well-versed in Java. I would say the learning curve of jsp is not steep.   
  May 1, 2001, 04:21:23
  Linux Is Not Hard At All
Of course if your computing 'expertise' is based on an MCSE without any other background course in computing you'll have extreme difficulty learning any real computing solutions not just Linux.   
  Sep 28, 2000, 13:41:26
  Angst
Funny...

Some Windows user is actually advocating to others to "embrace" some other technology besides $MS products! And all anyone can come up with is insults?

>>Ian A. Marsman
If that is the case why not stay with IIS and "perlscript" or one of the many other "solutions" ready for you thanks to Microsoft "innovations".

>>Jeff Markham
Your comments on JSP tip you off as a novice and make me question your credibility in writing this article.

>>Jupiter Punungwe
Of course if your computing 'expertise' is based on an MCSE without any other background course in computing you'll have extreme difficulty learning any real computing solutions not just Linux

Mr. Tanguay is obviously a little off the mark when he states, "I concluded that I basically had three choices outside ASP for server-side scripting: JSP, ColdFusion and PHP". I think that there are a few more usable choices than that, but in a broader sense he is still saying ASP doesn't cut it. Get it?

Although I am still a Windows user, I have taken it upon myself to "retrain" and learn more about Linux. Mainly, because I have come to understand that Linux is truly a viable OS and that Apache/MySQL/PHP is the one of the "BEST" software solutions for any web programmer today, although I know it is not the "ONLY" solution.

My decision to read this article was simply because I like to see and hear more about fellow Windows users getting involved with the "open source" community and it's fine products. Eventually, they will become open source geeks (like me!), once they take a bite. I must say though, I get discouraged when I read comments such as these posted here.

Maybe he stepped on some toes, and he left out some details, but Mr. Tanguay is really just saying to other Windows users, "Come on in! The water's fine!".

Critique is fine and expected, but let me tell you, it will be better received without the little bits of sarcasm.

My turn...is MY spelling OK?   
  Sep 29, 2000, 05:41:48
   Re: Angst
Hadn't checked back on this story for awhile. It is not my job to be nice to Windows users in an online magazine about Apache. I am not an advocate for a living. Insults are, of course, not good. I came to the article to read about PHP on Apache and got a weak story on how Linux is too tricky for the author, who nonetheless enjoys PHP. Good for him. This is not, however the stuff of great articles. My comments reflected my frustration at the weak content of the article. If the author wanted to write an article about using PHP on Windows, he should have just done that without explaining how Linux is too hard.   
  Nov 14, 2000, 03:34:16
  PHP & SQL
Hi, May I know what are the major benefit when I make up a database with only use of PHP & SQL? Thanks for your kind attention to my question.

Chris   
  Sep 29, 2000, 07:46:06
  Easy Install
You can shortcut the whole mess by using PHPTriad, which is a package that will install and configure Apache, MySQL and PHP4 on any Windows computers in the same way you would install any Windows app.
PHPTriad can be downloaded from
http://sourceforge.net/projects/phptriad/   
  Sep 29, 2000, 14:04:39
  Linux
I'm new in Linux.......i'm using combination of PHP,MySQL and Apache Web Server for my project....i've to get use to Linux.....although i have experience in Unix....i need reference about Linux.......so what   
  Sep 30, 2000, 03:36:20
  thanks to your suggestions
Thanks to the suggestions you gave to install WAMP. This is not working here, I'll go to your free online workshop. Hope this will help   
  Oct 2, 2000, 13:10:52
  Win-Apache has bugs
I found Windows NT Server, IIS, MySQL, and PHP to be a great combination. Apache for Windows is too buggy. For example, I could not get some of the global variables to work such as $PHP_SELF which I use all the time. Also, Apache locks up your computer if you try to reboot. For my workstation set up I use Windows 98, Xitami, MySQL, and PHP. I find this to be a great solution as long as you stay away from FrontPage Extensions which don't work with Xitami.   
  Oct 2, 2000, 20:27:57
   Re: Win-Apache has bugs
I was able to install Apache 1.3.12, MySQL, PHP 4.03pl1, ApacheJServ/1.1.2, Cocoon 1.8, etc. etc. on my Windows 98 "kick around box" in a few hours. It all works nicely. Global variables do work:

echo "$PHP_SELF";
?>

and you have to stop Apache before shutting down Windows 98 - it's not "locking anything up".

Now that I've stated how smart I think I am, I'd just like to say I'm tired of hacker weany wanna-be programmers like Jeff Markham and others who have to put people down on message boards like this. I know some PHP programmers (oh that's right, you call them scripters) who could probably code circles around you in a half a dozen languages.

If anything is going to scare people away from the "open source revolution" it will be poor documentation, little or no available tech support, a lack of manuals that aren't written in Norwegian or broken English and insecure UNIX snobs such as yourself who probably couldn't find their butt with both hands and seem to take great joy in pointing out newbie's mistakes and lack of expertise.

  
  Oct 18, 2000, 18:02:04
Enter your comments below.
Your Name: Your Email Address:


Subject: CC: [will also send this talkback to an E-Mail address]
Comments:

See our talkback-policy for or guidelines on talkback content.

About Triggers Media Kit Security Triggers Login


All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux 2.4, Apache 1.3, and PHP 4
Copyright INT Media Group, Incorporated All Rights Reserved.
Legal Notices,  Licensing, Reprints, & Permissions,  Privacy Policy.
http://www.internet.com/