标签:yum 安装apache 发现没有phplib5.so解决办法
#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
#6 测试
本文出自 “开发与运维” 博客,谢绝转载!
yum 安装apache 发现没有phplib5.so解决办法
标签:yum 安装apache 发现没有phplib5.so解决办法
原文地址:http://yeqing.blog.51cto.com/3159086/1876054