Source code installation apache
Source code installation apache because the mode of apache is specified at compile time, it is recommended that you recompile apache manually and install it. Install aprcd/apr./configure--prefix=/usr/local/aprmake&&makeinstallcd../apr-util./configure--prefix=/usr/local/apr-util--with-apr=/usr/local/apr/make&&makeinstall before compiling and installing apache./configure--prefix=/usr/local/apache2--with-apr=/usr/local/apr/--with-apr-util=/usr/local/apr-util/--enable-so--enable-rewrite--with-mpm=worker
Modify the configuration file httpd.conf to add ServerNamebbstest
Source code compilation and installation of PHP./configure--prefix=/usr/local/php5--with-apxs2=/usr/local/apache3/bin/apxs--with-mysql=/www/wdlinux/mysql-5.1.63--with-gd--with-zlib--with-png--with-jpeg--with-freetype--enable-sockets--with-iconv--enable-mbstring--enable-track-vars--enable-force-cgi-redirect--with-config-file-path=/usr/local/php5/etc