切换不同网站
yum install -y lrzsz.x86_64 #安装懒人方便传输文件
unzip phpwind_UTF8_8.7.1.zip #解压新网站框架
cp upload/ /web/ -Rf
chown apache:apache upload/ -Rf
chcon -R -t httpd_sys_rw_content_t upload/
vi /etc/httpd/conf/httpd.conf
DocumentRoot "/web/upload"
<Directory "/web/upload">
AllowOverride None
# Allow open access:
Require all granted
</Directory>
systemctl restart httpd.service
访问http://192.168.1.142/index.php测试
修改绑定端口
semanage port -l |grep http
semanage port -a -t http_port_t -p tcp 8091
vi /etc/httpd/conf/httpd.conf
systemctl restart httpd.service
访问192.168.1.142:8091 测试
原文:http://www.cnblogs.com/han1094/p/6367019.html