1, uninstall the original existing httpd
[Email protected] ~]# rpm-e httpd httpd-manual webalizer subversion mod_python mod_ssl mod_perl system-config-httpd php Php-cli php-ldap php-common MySQL dovecot--nodeps
2. Insert Rhel-server-6.5-x86_64-dvd.iso and Mount (I'll hang the disc under/media) {Mount/dev/cdrom/media}
3, compile the source installation httpd
1) Unpacking
Cd/media
Tar zxf httpd-2.2.17.tar.gz-c/usr/src/
2) configuration
cd/usr/srchttpd-2.2.17
./configure--prefix=/usr/local/httpd--enable-so--enable-rewrite--enable-charset-lite--ENABLE-CG
4. Compiling and installing
Make && make install
Install the status during the compilation and installation process wait a minute.
5, confirm the installation results, results
6. Optimize Execution path
7. Add httpd System Services (when added, you can use Service command to turn on the server)
Modify the first line to add the 23rd line:
8. Configure and start httpd
find the location below and put the signature # Get rid of it and change it into your own domain
9. Open HTTPD Service
10. Write Web content
11. Change the IP Address test page
Linux 6.5 Apache Installation