#native_company# #native_desc#

Configuring Windows98 For Local Dev Page 3

By Heath Boutwell
on July 30, 2000

  • Configure Apache:
  1. Load the file “C:program filesApache GroupApacheconfhttpd.conf”
    into a text editor. This is the Apache configuration file. Search for “#ServerName
    new.host.name” 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:usrbinhtml”
    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
    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.