#1
scp [email protected]:/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 测试
时间: 2024-10-19 22:21:42