Manually compiling and installing Apache with a Linux virtual machine

Source: Internet
Author: User

Manually compiling and installing Apache with a Linux virtual machine
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.
Experimental steps:
1. Download the Apache RPM package (official website: httpd.apache.org/), place the downloaded package in a folder and share the folder. Open the virtual machine terminal to log in, enter the SMBCLIENT-L command to scan the shared file

2. Create a new clip to mount the desired Apache folder to the new folder/www, enter the ls/www command to view the installation package information in the folder.

3. Switch to the ABC folder to unzip the installation package and place the extracted folder in the OPT directory
First installation package

A second installation package

A third installation package

4. Switch to the OPT directory and copy the extracted folders recursively into the Apr folder

5. Install GCC, gcc-c++, make toolkit in the Yum Warehouse, where the three packages are stored in the Yum warehouse and installed in the Yum warehouse.


The Make toolkit is not required to install if it is already installed, and vice versa. Enter rpm-q make view

Pcre-devel Kit in RPM so use RPM to install

6. Enter ' cd/opt/httpd-2.4.2 ' switch to the extracted folder for configuration file configuration

7. Enter the ' make ' command to convert the configuration file to a binary file

If the end is no Erroy (error), you can proceed to the next step, enter the ' make install ' command to compile the binary files and install

Switch to/usr/local/apache and filter out the comment description for the script file that contains the # number.

Enter VI/ETC/INIT.D/HTTPD edit mode, press ' O ' to insert a line above the beginning of the script to add, Wq save exit.


8. Set boot Auto-on 3 (INIT3 character interface, network), 5 (init5 GUI, network)

9 establishing a soft connection for easy management

10. Edit the httpd configuration file


11. Turn on httpd

12. Turn off its firewall and open the Web page to enter the IP address of the virtual machine to log in.


Connection Successful

Manually compiling and installing Apache with a Linux virtual machine

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.