Configure Apache:
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 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')
Around line 458, add this:
ScriptAlias /php3/ "c:/php3/"
Around line 506, add this:
AddType application/x-httpd-php3 .php3
Around line 643, add this:
Action application/x-httpd-php3 "/php3/php.exe"
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.
Around line 264 - change the line to point to the same directory tree specified in No. 5 above.
Create a cgi-bin directory for your perl scripts. I recommend this be "/cgi-bin" ABOVE the DocumentRoot path from step 5 above.
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"
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.
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.
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 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')
Around line 458, add this:
ScriptAlias /php3/ "c:/php3/"
Around line 506, add this:
AddType application/x-httpd-php3 .php3
Around line 643, add this:
Action application/x-httpd-php3 "/php3/php.exe"
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.
Around line 264 - change the line to point to the same directory tree specified in No. 5 above.
Create a cgi-bin directory for your perl scripts. I recommend this be "/cgi-bin" ABOVE the DocumentRoot path from step 5 above.
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"
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.
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.