How to Set Up Apache Server
There are many reasons why you may want to set up a web server. You may want a development and testing platform for websites before you transfer them to a live server, share certain documents over a local intranet, or experiment with various web-based programs in a real server environment. A number of utilities come bundled with the complete server environment and only need to be installed via a wizard.
Instructions
-
-
1
Download the latest Apache version from the Apache website (See link in Resources). Alternatively, search for any of the bundled free software that comes with the complete Apache Web Server plus additional utility programs.
-
2
Launch the application. In Windows, simply double-click on the downloaded .exe file. In Linux, launch the command prompt using the command:
Sudo gedit /etc/apache2/httpd.conf
-
-
3
Click "I Agree" to the license agreement and click "Next."
-
4
Choose the directory to install Apache. A "Browse..." button will allow you to select the destination folder for all of your Apache Web Server files needed to run the server.
-
5
Choose the components to install. Ensure that "Apache HTTP Server" "MySQL Database" "PHP Hypertext Preprocessor" are ticked, then click "Next."
-
6
Specify the "Server Name" and the "Administrator's Email Address." By default, the "Server Name" is "localhost" and the "Administrator's Email Address" may vary depending on the version and the supporting utilities that come with the Apache Web Server, as well as the website from which it was downloaded.
-
7
Configure the "MySQL." Enter the root password that will be used to access the database, and leave the other settings at default.
-
8
Click "Install" to initiate the installation process.
-
9
Click on "Finish" to start running Apache immediately. Alternatively, untick the "Start Apache" and "Start MySQL" options if you want to run it later.
-
10
Verify the installation. Open your web browser (Firefox, Internet Explorer) and type the following on the address bar:
http://localhost
-
11
Press the "Enter" key. If successful, a web page showing configuration options will appear with a message that your installation was successful.
-
1
Tips & Warnings
Read the page that is displayed after you type "http://localhost" to identify the folder where the necessary web pages and files should be placed to be accessible.