Linux Redhat6.5 compiled and installed Apache

Source: Internet
Author: User

Apache Web server: As the front end of the lamp architecture, it is a powerful and stable Web server program that provides website access directly to users, sending Web pages, images and other file contents.
1: Get the installation package
Create a directory to share the Apache installation package in a shared file on a host.
2: Then unzip httpd, Apr, Apr-util compress package to/opt directory



3: View under the/OPT directory
Copy the APR and Apr-util under the directory to the Srclib directory under the httpd directory and name the APR, Apr-util
Installing GCC gcc-c++ environment with Yum

4: Install Pcre-devel
Then configure the installation in the/opt/httpd-2.4.2 directory

5: Compiling and compiling the installation

6: Filter Apachectl # REDIRECT saved to/etc/init.d/httpd
VI edit this file
Start by adding
#!/bin/sh

chkconfig:2345 85 15
# description:Apache is a World Wide Web server.


7: Open Execute permission to httpd
Add httpd Service
View HTTPD Services
Open 3 5 of the HTTPD service

8: Create a soft connection for httpd.conf easy to manage
Edit httpd.conf
① put Listen "#" in the back to add your listening IP and port number
② below listen 80 Plus "#" comment on this line
③ find servername to remove the "#" from the back to add the domain name
: Wq Save Exit



9: Restart httpd service

10: Turn off the firewall

11: Enter the previously set listening IP on the browser

12: Edit/usr/local/apache/htdocs/index/html
You can modify the content on a Web page

Linux Redhat6.5 compiled and installed Apache

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.