In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "detailed process of Apache installation", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "the detailed process of Apache installation"!
Step 1: install openssl
1. Decompression software:
# tar xvfz openssl-0.9.6b.tar.gz
2. Installation
# cd openssl-0.9.6b#. / config# make# make test# make install
Step 2: install mod_ssl
1. Decompress mod_ssl
# tar xvfz apache_1.3.20.tar.gz# tar xvfz mod_ssl-2.8.4-1.3.20.tar.gz
2. Install mod_ssl
# cd mod_ssl-2.8.4-1.3.2 with-apache=../apache_1.3.20. / configure-- with-apache=../apache_1.3.20
Step 3: install mod_perl
1. Decompression
# tar xvfz mod_perl-1.26.tar.gz
2. Installation
$perl Makefile.PL EVERYTHING=1 APACHE_SRC=../apache_1.3.20/src USE_APACI=1 PREP_HTTPD=1 DO_HTTPD=1$ make $make install
Step 4: configure apache
# cd apache_1.3.20#. / configure
Five steps: install php
1. Decompression
# tar xvfz php-4.0.6.tar.gz
2. Installation
# cd php-4.0.6# CFLAGS='-O2-I/usr/local/ssl/include/openssl'#. / configure-- with-apache=../apache_1.3.20-- with-mysql-- with-gd=../gd-1.8.4-- enable-memory-limit=yes-- enable-debug=no # gmake# gmake install
Step 6: install apache
# SSL_BASE=../openssl-0.9.6b#. / configure-- enable-module=ssl-- activate-module=src/modules/perl/libperl.a-- enable-module=perl-- activate-module=src/modules/php4/libphp4.a-- enable-module=php4 # make# make certificate # make install
Step 7: install gd
# make all# cp libgd.a / usr/lib# cp gd*.h / usr/include/
Step 8: install webalizer
1. Decompression
# tar xvfI webalizer-2.01-06-src.tar.bz2
2. Installation
# cd webalizer-2.01-0mm. / configure# make# make install
3. Configuration
Rename webalizer.conf.sample under / etc/ to webalizer.conf.
Modify the following according to the actual server:
LogFile / usr/local/apache/logs/access_log
Set the www access log file location
OutputDir / usr/local/apache/htdocs/usage
Set the web access statistics output directory
HistoryName webalizer.hist
Incremental yes
HostName www.test.com
PageType htm*PageType cgiPageType phtmlPageType php3PageType plPageType jsp
4. Set cron tasks
Add the following at the end of the / etc/crontab file:
02 4 * root / usr/local/bin/webalizer
Can
5. Create an output directory
# mkdir / usr/local/apache/htdocs/usage
Step 9: protect access statistics from illegal access
We certainly don't want our website access statistics to be browsed by others at will, so we need to protect the usage directory and allow only legitimate users to access it.
I. conditions
Www.test.com 's site pair "/" is set to: DocumentRoot / usr/local/apache/htdocsAccessFileName .htaccessAllowOverride All
II. Demand
Requirement: restrict access to the / usr/local/apache/htdocs/usage/ directory, allowing only user "admin" to access this directory with a password of "12345678".
Third, create user files using htpasswd
Htpasswd-c / usr/local/apache/.htpasswd admin
This program will ask the user for the password of "admin". If you enter "12345678", it will take effect twice.
Fourth, establish the .htaccess file
Use vi to create a file .htaccess in the / usr/local/apache/htdocs/usage/ directory and write the following lines:
AuthName admin-onlyAuthType BasicAuthUserFile / usr/local/apache/.htpasswdrequire user admin
5. Testing
At this time, accessing http://www.test.com/usage through the browser will pop up a request for a user name and password, and you can only access the directory by typing admin and 12345678.
Thank you for your reading, the above is the content of "the detailed process of Apache installation", after the study of this article, I believe you have a deeper understanding of the detailed process of Apache installation, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.