Before installing Apache httpd2.4.18, you need to install several other software, namely pcre, Apr, Apr-util.
The three software were:
pcre:https://sourceforge.net/projects/pcre/files/pcre/8.38/
Apr and apr-util:http://mirrors.cnnic.cn/apache/httpd/
Because I do not know the need to install the above software, so in the installation process to eat a lot of loss (ashamed), will be a tortuous installation process written out, I hope to help you.
One, download Apache httpd-2.4.18 installation package
To download the installation package from the network using the wget command:
Decompression Pack: TAR-JXVF httpd-2.4.18.tar.bz2
Second, set up the installation environment
Enter the httpd-2.4.18 directory:
Execute command:
where "/opt/httpd-2.4.18" is the specified installation directory.
1, compatibility issues 1:
Solution: Install APR, download URL article at the beginning has been opened, the use of source installation, the process is not repeat.
2, compatibility issues 2:
Solution: Install apr-util, download URL article at the beginning has been opened, the use of source installation, the process is not repeat.
3, compatibility issues 3:
Solution: Install pcre, download URL article at the beginning has been opened, the use of source installation, the process is not repeat.
When the above problem does not occur, execute again
Third, compile
Execute command: Make
Four, installation
Execute command: Make install
V. Launch of HTTPD Service
Execute command:/opt/httpd-2.4.18/bin/apachectl-k start
Where:/opt/httpd-2.4.18 is the installation directory I specified.
It can be seen that an error occurred because ServerName was not modified.
Enter the httpd.conf file and modify the servername as shown:
After the modification succeeds, save the file. Start again
The startup succeeds as shown above.
VI. Testing
Enter the native IP in the browser, the IP of my host is 10.0.2.15. So enter 10.0.2.15 in the browser and the results are as follows:
Description The server has been installed successfully!!!
Vii. Summary
1, in the installation of files must read the Readme file, master software dependencies and other considerations, to avoid the installation failure problems;
2. Apr-util is dependent on APR, so the APR should be installed first.
I email [email protected], Welcome to Exchange!
Apache httpd2.4.18 Installation Tutorial