|
|
发表于 2004-10-23 16:50:49
|
显示全部楼层
给你的朋友设置一个帐户先!
# 给你的朋友设置一个帐户先,如 friend007
useradd friend007
passwd friend007
# 再到httpd.conf中设置站点虚拟目录,地址为 /home/friend007
<VirtualHost 192.168.1.5:81>
ServerAdmin strong@strongd.net
DocumentRoot /home/friend007
ServerName gina.strongd.net
.....
</VirtualHost>
# 修改httpd.conf中的php相关项目
添加以下内容
LoadModule php4_module modules/libphp4.so <==大約在 230 行處
AddType application/x-httpd-php .php
# 重启apache
# 请你的朋友上传网页文件到个人目录!
# 浏览,看看效果! |
|