Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Nov 2002
    Posts
    180
    Thanks
    0
    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?

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •