lygyh9985825 发表于 2018-11-19 09:32:51

yum 安装apache 发现没有phplib5.so解决办法

  #1
scproot@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


   ServerName www.test.com
   ServerAlias test.com
   DocumentRoot /application/apache/htdocs



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 测试





页: [1]
查看完整版本: yum 安装apache 发现没有phplib5.so解决办法