#1
scp root@1.1.1.1:/home/yeqing/libphp5.so .
#2 vi http.conf
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php index.html
#3 vi conf.d/**.conf
<VirtualHost *:80>
ServerName www.test.com
ServerAlias test.com
DocumentRoot /application/apache/htdocs
</VirtualHost>
makdir /application/apache/htdocs -p
#4 vi /etc/hosts
127.0.0.1 www.test.com
#5 启动服务
/etc/init.d/httpd start
/etc/init.d/php-fpm start
scp root@1.1.1.1:/home/yeqing/libphp5.so .
#2 vi http.conf
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php index.html
#3 vi conf.d/**.conf
<VirtualHost *:80>
ServerName www.test.com
ServerAlias test.com
DocumentRoot /application/apache/htdocs
</VirtualHost>
makdir /application/apache/htdocs -p
#4 vi /etc/hosts
127.0.0.1 www.test.com
#5 启动服务
/etc/init.d/httpd start
/etc/init.d/php-fpm start
#6 测试
本文转自cloves 51CTO博客,原文链接:http://blog.51cto.com/yeqing/1876054