Install Apache
We will now install and configure your Apache.
The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows NT. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.
Apache has been the most popular web server on the Internet since April of 1996. The July 2003 Netcraft Web Server Survey found that 63% of the web sites on the Internet are using Apache, thus making it more widely used than all other web servers combined.
- Run the install program located in your download directory (ex: c:\disks\apache\apache_1.3.28-win32-x86-no_src.msi)
- When prompted for 'Server Information' enter the name of the computer in the domain and server names. Enter your email address in the email address line.

If you are unsure of your computer name you should find it in your 'Network Identification' tab of your system properties

- Select 'Complete' for the install type.
- You should now see Apache listed in your services.

- To test your install open a browser and enter the address 'http:///' and you will see a welcome page from apache. ex: (http://v2k-spier/)
- Create a working directory for web sites. If you work with only one server you can have this match the live server you use, or you can set your own. I use c:\www this way I can backup one directory and have all my working web sites. ex: (c:\www)
- Open the httpd.conf file in your apache install directory. (C:\Program Files\Apache Group\Apache\conf)
This file control your web server and allows you to create web sites. We will simply update your working directory.
Locate 'DocumentRoot' and update this to your web root directory we just created. ex: DocumentRoot "C:/www"
Locate and update this to match the same as above. ex:
Locate 'DirectoryIndex' and add 'index.php, index.php3' the end of the line. (ex: DirectoryIndex index.php, index.php3, index.html)
- At the very bottom of this file add the following lines.
# <<<>>> Load PHP & USE vhost.conf for domains
LoadModule php4_module "C:\php\sapi\php4apache.dll"
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
#include conf/vhost.conf
This section will tell Apache to process all .php & .php3 files through PHP and in advanced features we can setup new domains on this web server. You can add different extensions for PHP if you wish, but for now this should work.
- From your 'Services' program restart Apache. NOTE: All changes to php.ini or httpd.conf REQUIRE your to restart apache for them to go into effect.
- Create a file named 'phpinfo.php' in your new web root (ex: c:\www) and add the following code to the file. This program will help you to text and find important information your server.
; Point your browser to http://your_server_name/phpinfo.php and you should see the phpinfo screen. This will tell you that you have apache working with PHP.
Congratulation you are all finished installing Apache!!
|
|