First create a new user Lamper, and add the Sodu permission two methods:Is isn't in the sudoers file resolved (EXT)
XX is not in the sudoers file problem solved "reprint"
Then download and install APR 1.5.1, Apr-util 1.5.4, Pcre
wget http://ftp.cuhk.edu.hk/pub/packages/apache.org////http ftp.cuhk.edu.hk/pub/packages/apache.org//apr/apr-1.5.1.tar.gzftp://ftp.csx.cam.ac.uk/pub/software/ Programming/pcre/pcre-8.36.tar.gz
You need to specify the APR path manually when compiling Apr-util
./configure --with-apr=/usr/local/apr/bin
By default, Apr and Apr-util are installed in the/usr/local/apr/lib/
Installing Apache HTTPD
[Email protected] httpd-2.4.10]$/configure --enable-so
[[email protected] httpd-2.4.10]$ make
[[email protected] httpd-2.4.10]$sudo make install
The default Apache is installed in the/usr/local/apache2/
Compiling and installing PHP
./configure --with-apxs2=/usr/local/apache2/bin/apxs--with-mysql
centos7.0 manually compiling the lamp environment