The first and foremost thing that should be installed in the system is the web server. Normally, the Apache web server Configuration on a Linux system with PHP and MySQL finalizing the popular LAMP design (L – Linux, A – Apache, M – MySQL and P – PHP). On a CentOS Linux system, the Apache Web Server Configuration in Linux can be done by opening the terminal and entering “yum install httpd”. Then the set of commands needs to be followed for efficacious installation of the Apache web server.
How Apache Web Server Configuration is done in Linux? There are things you should consider before we start configuring your server. A web server is software that runs on a computer and allows other computers to download files from it.
To set up a web server you need:
1. A Linux PC
2. A broadband Internet connection
Step 1: Apache Web Server Configuration/ installation
The process begins with the disabling of any firewall software that you may have been running on your system. Close all programs that are running on your computer.
Start the installation process by accepting the agreement. Locate the default location for the Apache files. After that, just enter your own e-mail address and server domain. Complete the process with “Typical installation” setting checked.
Then restart on demand. Then open your browser and enter localhost. “If you can see this, it means that the installation of the Apache Web Server Configuration in Linux system was successful.”
Step 2: Configuring Apache
Open httpd.conf file with notepad.exe. It is the Apache config file, which looks long, and messy. You might not understand the text. However, you should employ the default settings. We need to change a few things to make the server better.
About 19 or 20 lines below that you will see a line containing:
Modify this line to:
Now, just save the httpd.conf file. Then, in the task bar click the Apache icon then chooses to “Restart”. If it restarted without an error, then visit the localhost again. If you got an error message, then you have messed up, or if it shows up its fine.
You now have a working web server! Make sure you have port 80 unblocked on your firewall and router.
No Comments »
No comments yet.