Linux 6.5 Apache Installation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.