How to install Apache, PHP and mySQL on Windows 9x

NOTE: These were the most current stable versions available as of October 15, 2001. You may want to install more recent versions if they are available and are stable versions. Running Apache, PHP and mySQL on Windows 9x is fine for testing. This configuration is typically run on a Unix platform such as Red Hat Linux ( http://www.redhat.com/apps/download ) or FreeBSD ( http://www.freebsd.org ).

  1. Download and install Apache 1.3.22 WIN 32x86 at: http://httpd.apache.org/dist/httpd/binaries/win32
    You'll get an error message stating that you are missing the required ApacheCore.dll
  2. Download ApacheCore.dll from http://httpd.apache.org/dist/httpd/patches/apply_to_1.3.19/win32 and copy it to your Windows\System folder.
  3. Reboot your system and add a shortcut to START APACHE IN CONSOLE in your Startup folder. You can right-drag your START APACHE IN CONSOLE from START, PROGRAMS, APACHE HTTP SERVER to create a short-cut in your startup folder. Your startup folder is probably located at c:\windows\all users\start menu\program\startup.
  4. Download PHP 4.0.6 zip package and PHP 4.0.6 installer from http://www.php.net/downloads.php
  5. Extract the PHP 4.0.6 zip package into your c:\PHP folder.
  6. Copy the PHP 4.0.6 installer file to c:\php and run it to install PHP.
  7. Edit your Apache configuration file named C:\Program Files\Apache Group\Apache\conf\httpd.conf with Notepad. From Notepad, click EDIT, then click FIND and type PHP and press ENTER. Just below the found text which reads: "# For example, the PHP 3.x module..." insert a blank line and add these three lines to properly configure PHP with Apache.

                                             ScriptAlias /php/ "c:/php/"
                                             AddType application/x-httpd-php .php
                                             Action application/x-httpd-php "/php/php.exe"
  8. Reboot your system.
  9. Download the PHP Manual from http://www.php.net/download-docs.php.
  10. Download mysql-3.23.43-win.zip from http://www.mysql.com/downloads/mysql-3.23.html.and extract this file into c:\mySQL folder.
  11. After you run install.exe, you'll see a traffic light icon in the task bar tray. You can click the icon, then click SHOW ME to view/change options. Click HIDE ME button to return it to your task bar.
  12. Configure mySQL

 

Test your PHP installation

Create a text file in notepad named test.php with the following four lines:

               <html><head><title>PHP Test</title></head><body>
               <?php echo "Hello World, PHP is working<p>"; ?>
               If nothing is above this line, PHP is not working.<p>
               </body></html>

Copy this file into your C:\Program Files\Apache Group\Apache\htdocs folder, then start your browser and type in the URL http://localhost/test.php. You will see a message that tells you if PHP is working or not.

 

Test your mySQL installation

 

 

Links

http://www.apache.org/

http://www.php.net/

http://www.mysql.com

http://www.phpbuilder.com

http://www.zend.com

http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial4.html

http://www.net-language.com/workshops/Default.asp?Workshop=21

http://www.hotscripts.com/

http://builder.cnet.com/webbuilding/pages/Programming/PHPIntro/

 

Adding Front Page Extensions

http://support.microsoft.com/support/kb/articles/Q202/1/98.ASP