Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: how to configure apache?
04-14-2004, 09:31 AM #1
- Join Date
- Nov 2002
- Thanked 0 Times in 0 Posts
how to configure apache?
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?
04-14-2004, 12:36 PM #2
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