Install PHP step and Operation 1. configure pcre ?. /Configure -- prefix =/usr/local/pcre? Make & amp; makeinstall2. configure apr ?. /Configure -- prefix =/install PHP
1. configure pcre
? ./Configure -- prefix =/usr/local/pcre
? Make & make install
2. configure apr
? ./Configure -- prefix =/usr/local/apr
? Make & make install
3. configure apr-util
? ./Configure -- prefix =/usr/local/apr-util
? Make & make install
4. configure apache httpd
? . /Configure -- prefix =/usr/local/apache2 -- with-pcre =/usr/local/pcre -- with-apr =/usr/local/apr -- with-apr-util = /usr/local/apr-util -- enable-load-all-modules
? Make & make install
? Open httpd. conf and change ServerName to 127.0.0.1.
? Start the service httpd-k start or httpd-k restart
?
5. configure libiconv
?. /Configure -- prefix =/usr/local/libiconv
? Make & make install
6. configure php
? Yum install libtool-ltdl-devel
? Modify the libtool file, add/usr/lib64 (or wherever yours is) to sys_lib_search_path_spec AND sys_lib_dlsearch_path_spec
? . /Configure -- prefix =/usr/local/php5 -- with-apxs2 =/usr/local/apache2/bin/apxs -- with-iconv =/usr/local/libiconv -- with-freetype- dir -- with-jpeg-dir -- with-png-dir -- with-zlib -- with-curl -- with-gd -- enable-gd-native-ttf -- with-apxs2 =/usr/local /apache2/bin/apxs -- enable-sockets
? Make & make install
7. modify parameters of related configuration files