PHPBuilder - Configuring Windows98 For Local Dev Page 3

RSS Twitter

Configuring Windows98 For Local Dev - Page 3

by: Heath Boutwell
July 30, 2000

  • Configure Apache:
  1. Load the file "C:\program files\Apache Group\Apache\conf\httpd.conf" into a text editor. This is the Apache configuration file. Search for "#ServerName" in the the file (it should be on or around line 232 but the line number may change in future releases) and change this to read:
    ServerName http://localhost
    (note: Be sure to take out the "#" - this is known as a comment mark which basically means 'ignore everything on
    this line')

  2. Around line 458, add this:
    ScriptAlias /php3/ "c:/php3/"

  3. Around line 506, add this:
    AddType application/x-httpd-php3 .php3

  4. Around line 643, add this:
    Action application/x-httpd-php3 "/php3/php.exe"

  5. Around line 239, change
    DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"
    to point to wherever you'd like your pages served from. I suggest making a directory structure that resembles your remote server set up - usually this means creating a directory in the local C drive like "C:\usr\bin\html\" or something along those lines. All the development work (i.e. - web pages, PHP or Perl scripts) you want Apache to serve must be saved locally under in the directory that follows "DocumentRoot" on this line.
  6. Around line 264 - change the line to point to the same directory tree specified in No. 5 above.

  7. Create a cgi-bin directory for your perl scripts. I recommend this be "/cgi-bin" ABOVE the DocumentRoot path from step 5 above.

  8. Around line 458 (right where we added the PHP config line in step 2 above), add this line:
    ScriptAlias /cgi-bin/ "c:/POINT TO DO PATH TO CGI BIN CREATED IN STEP 7 ABOVE"

  9. At or around line 465 should currently point to "C:/Program Files/Apache Group/Apache/cgi-bin".
    Change the path to point to the same directory in number 8 above.

  10. In a new text editor, create a php test file - something along the lines of <? print "welcome home"; ?> and save this as "index.html" in whatever path you specified in number 5 and 6 above.

« Previous Page
Next Page »

Comment and Contribute

Your comment has been submitted and is pending approval.

Heath Boutwell



(Maximum characters: 1200). You have characters left.