Compile and install encounter too many problems, record some of the pits encountered
System CentOS 7.3 http version 2.4.27
1. Install APR, apr-util
./configure--prefix=/usr/local/aprmakemakeinstall./configure--prefix=/usr/local/apr-util/--with-apr=/usr/local /apr/make make Install
./configure--prefix=/usr/local/apr-util-httpd/
--with-apr=/usr/local/apr-httpd/
Make
Make instal
Apr
/
Apr-util
Apr
/
Apr-util
2. Installing Apache
./configure--prefix=/etc/httpd/--with-apr=/usr/local/apr/--with-apr-util=/usr/local/apr-util/
The error when making an Apache is as follows:
MAKE[2]: * * * [htpasswd] Error 1make[2]: Leaving directory '/usr/local/directadmin/custombuild/httpd-2.0.63/support ' MAKE[1]: * * * [all-recursive] Error 1make[1]: Leaving directory '/usr/local/directadmin/custombuild/httpd-2.0.63/ Support ' Made: * * * [all-recursive] Error 1 Copy the APR, aprutil directory to httpd directory Cp-r APR-1.6.2/OPT/HTTPD-2.4.27/SRCLIB/APRCP- R apr-util-1.6.0/opt/httpd-2.4.27/srclib/apr-util./configure--prefix=/etc/httpd/--with-apr=/usr/local/apr/-- with-apr-util=/usr/local/apr-util/--with-included-aprmake make Install
3. Add httpd as a system service
CP/ETC/HTTPD/BIN/APACHECTL/ETC/RC.D/INIT.D/HTTPD vi/etc/rc.d/init.d/httpd# chkconfig:345 15# Description:activat Es/deactivates Apache Web Server Note: "#" should also have
Adding a self-starter
Systemctl Enable httpd
Installing apache2.4.27 Notes