...

View Full Version : how to configure apache?



Aymen++
04-14-2004, 09:31 AM
i was reading article, i found this:
The first thing you should do is to edit the Apache configuration file (httpd.conf) because PHP needs Apache to run. The configuration file is found in the conf directory of Apache. The path is normally C:\Program Files\Apache Group\Apache\conf under Windows, and /usr/local/apache/conf under Unix.
You only need to add the following lines, and restart your server (Windows: either restart Windows or enter C:\Program Files\Apache Group\Apache\apache -k restart from Start Menu > Run. Unix: run /usr/local/apache/bin/apachectl restart).


ScriptAlias /php/ "c:/program files/php/" (for Windows only - change path accordingly)
Action application/x-httpd-php "/php/php.exe" (for Windows only)
AddType application/x-httpd-php .php

my question is: where can we add this? in the end? or in the middle?

Nightfire
04-14-2004, 12:36 PM
Usually best to add it at the bottom, so if you need to make any changes you don't have to hunt through the file



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum