note 31217 added to ref.apache

From: Date: Mon, 14 Apr 2003 09:29:55 +0000
Subject: note 31217 added to ref.apache
Groups: php.notes 
Request: Send a blank email to php-notes+get-46586@lists.php.net to get a copy of this message
###################################### # Configuring Apache for Windows # ###################################### CAUTION:: 1) Read the tutorial completly and only then proceed. 2) BackUp the original Httpd.conf file. First; install PHP. Now, you will unzip the constance of that 5meg file you downloaded. Now create a folder in C:\Apache2 <ie: the Apache directory> and call it PHP. Now move the constance of the ziped file to that folder. Now go to your httpd.conf file. It is in your C:\apache2\conf directory. Now open that sucker up with notepad. Be sure to do not add the files in ( )'s First find the line: Setting up Httpd.conf ScriptAlias /cgi-bin/ "C:/Apache2/cgi-bin/" Go to the line under it and insert: ScriptAlias /php/ "C:/apache2/php/" (what this does is tell the server where the php folder is) Now find the lines: # Format: Action handler-name /cgi-script/location # Go to the line following it and insert this: Action application/x-httpd-php /php/php.exe (What this does is tell the server where the php program is) Now find the lines: # AddType allows you to add to or override the MIME configuration # file mime.types for specific file types # AddType application/x-tar .tgz Go to the line following it and insert these lines: AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 AddType application/x-httpd-php .phtml AddType application/x-httpd-php-source .phps (what this does is like the extensions on files) Now, look for <IfModule mod_mime_magic.c> MIMEMagicFile conf/magic </IfModule> Now add this below: <IfModule mod_dir.c> DirectoryIndex index.html index.php default.php main.php </IfModule> (What that does is when you go to a folder, it will go to one of thoes files) #There is not too much of risk involved as you can always reinstall the apache software, so take it easy# Apache is easily available at: http://www.apache.org/mirrors/ <Entire List of Mirrors> -- http://www.php.net/manual/en/ref.apache.php http://master.php.net/manage/user-notes.php?action=edit+31217 http://master.php.net/manage/user-notes.php?action=delete+31217 http://master.php.net/manage/user-notes.php?action=reject+31217

« previous php.notes (#46586) next »