Monday, June 11, 2007

PHP (Part: I):-Apache Installation

Apache 2.2.X:-

1.Download & Unpack

Download and install Apache from http://httpd.apache.org/download.cgi. Look for the "Win32 Binary (MSI Installer)" version. (you might want to change the download mirror first to get better speeds)

My file was named: apache_2.2.4-win32-x86-no_ssl.msi


2.Install

When you install Apache, you'll get a prompt for "Server Information." Here is the settings I used:Network Domain: localhost
Server Name: localhost
Admin Email: (your any email)
[checked]: for All Users, on Port 80, as a Service

3.Starting/Stopping Apache

After installing, Apache2 automatically starts. The icon in the System Tray means it started. The icon means the "Monitor Apache Servers" is running, but Apache2 isn't started.You can easily start/stop/restart Apache and Apache2 via that icon in your System Tray. If you get "The requested operation has failed!" error while starting apache use the "Test Configuration" shortcut in the Start Menu to find the error (if the text window pops up then closes before you can read it, your config file is fine).

4.Testing

Now the ultimate test. To see if it's serving. Open your browser and head to: http://127.0.0.1/ or http://localhost/If it shows the It works! you have your server software installed and running.

5.Making Apache point to your files

Using Notepad open E:\Apache2_2\conf\httpd.conf (in the start-menu there should also be a "Edit the Apache HTTP Server httpd.conf Configuration File" shortcut) and search for DocumentRoot. Change it from something like DocumentRoot "E:/Apache2_2" to the location where your HTML files and site are located. In my case: DocumentRoot "E:/public_html"


6.Then scroll down about one page and change: to point to the same location you set DocumentRoot to in the last step. Restart apache to make the changes take effect

No comments:

Search About OpenSource

Google