Deploying HTTPD Services
Apache is a modular design services, the so-called modular is to separate the functions, features are separate, so that the benefits of design is strong scalability, the dependence of each function is relatively weak, in the late modification, upgrade, add new features is very convenient. Different modules can be statically compiled into the program, or they can be dynamically loaded. Dynamic loading is an Apache feature (Dso,dynamic shared object), when the so-called dynamic loading requires new functionality, simply compile the function module and load it into the Apache service via the config file without recompiling Apache.
Apache version has 2.0, 2.2, 2.4 Three version of the use of more, each version of the use of the installation of a little difference, I introduced today is the version of 2.2, the brothers use to look carefully, 2.4 version of the next update will be the first time and everyone said.
Start the installation below:
Required Software Links: Https://pan.baidu.com/s/1qYWWCck Extract code: R5DM permanently valid
We generally do not have to bring their own httpd, so it is generally uninstalled the HTTPD software.
Unzip the downloaded httpd software.
Configure the HTTPD service installation path, enable character set support, and so on, compile and install later.
Confirm the installation results
/data/soft/httpd/bin: Various execution Program files for HTTPD service, including main program httpd, Service Control tool APACHECTL, etc.
/data/soft/httpd/conf: Storage of httpd configuration files, including Master profile httpd.conf, enhanced configuration subdirectory extra, etc.
/data/soft/httpd/htdocs: Store Web documents, including default home file index.html, etc.
/data/soft/httpd/logs: Log file to store httpd service
/data/soft/httpd/modules: Various module files for storing httpd services
/data/soft/httpd/cgi-bin: Storing various CGI program files
Configure and start the httpd service, edit the configuration file vim/data/soft/httpd/conf/httpd.conf
After configuration file modification, use the-t option to check for syntax errors
You can add your own effect in the index.html, wait for the service to be able to see the effect on the browser.
No nonsense, start the service to try.
After the start of the service to see the Linux firewall settings, there are generally two ways to release httpd service port, if you add a one-time there are three kinds of, the following are explained, friends do when you look at the specific situation, if the test is selected the first and third, if the production environment to choose the second type.
The first way to release 80 port, add a one-time firewall rule, this situation reload, restart will lose this rule, only for testing use.
The second way to release 80 port, add a permanent firewall rule, firewall does not shut down, this is recommended.
The third way to release the 80 port is to close the firewall directly, which is also recommended when testing.
The following is a map entry in the Hosts file of your client's access terminal to facilitate quick access
HTTPD installed, the following installation of a statistical access information software Awstats, combined with httpd use to see the effect.
Start without saying, the same, unzip, and then move the directory.
Create a profile for statistical site simplification
Encountered y/n is all input y can
Modify the Site Statistics profile VIM//etc/awstats/awstats.www.test.com.conf. Change the following two lines
Create a directory of analysis statistics written above
Execute Log Analysis Script
View Visit Website Analysis page
At this point, quickly access www.test.com again, refresh a few more times, and then perform the following command view.
View the Analysis page again
This analysis tool requires real-time monitoring, so it is convenient to do a scheduled task, which is updated every 5 minutes and is very useful in production environments.
Well, a simple httpd service and Awstats Log Analysis tool is installed, in fact, awstat not only to do statistics on the site access information, but also to analyze the log analysis of various services, here I do not list, there are difficult friends can leave a message below, I see must try to help you solve the installation process problems! Thank you again for your attention!!!
apache2.2 Version Installation Instructions