Linux 下发布应用到PHP

1、找到httpd的配置文件:先找httpd,再找conf

2  vi /etc/httpd/conf/httpd.conf 加入如下代码:

 

#Added by Zhenghua
<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /disk2/user/zhxue/ECShop/upload
    ServerName osg.cnic.cn
    ErrorLog /disk2/user/zhxue/ECShop/Ecshop_httpd_log
    CustomLog /disk2/user/zhxue/ECShop/Ecshop_aceess_log common

</VirtualHost>

你可能感兴趣的:(Linux 下发布应用到PHP)