Aymen++
04-14-2004, 08: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?
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?