1、按照官方帮助装好web环境,我选择的是apache
2、将按照程序上传到/alidata/www,我命名为sns
3、修改apache 配置文件:/alidata/server/httpd-2.2.22/conf/vhosts/phpwind.conf,添加虚拟主机,代码如下

<DirectoryMatch"/alidata/www/sns/(attachment|html|data)"> <Files~".php"> Orderallow,deny Denyfromall </Files> </DirectoryMatch> <VirtualHost*:80> DocumentRoot/alidata/www/sns ServerNamelocalhost ServerAliaslocalhost <Directory"/alidata/www/sns"> Options-IndexesFollowSymLinks AllowOverrideall Orderallow,deny Allowfromall </Directory> <IfModulemod_rewrite.c> RewriteEngineOn RewriteRule^(.*)-htm-(.*)$$1.php?$2 RewriteRule^(.*)/simple/([a-z0-9_]+.html)$$1/simple/index.php?$2 </IfModule> ErrorLog"/alidata/log/httpd/sns-error.log" CustomLog"/alidata/log/httpd/access/sns.log"common </VirtualHost>
4、重启apache
在putty下执行命令:
cd/alidata/server/httpd-2.2.22/bin ./apachectlstop ./apachectlgraceful 或者执行./apachectlrestart
5、访问ip地址安装程序
第二步的时候会提示文件不可写,进入安装目录,修改文件夹及其子文件权限
cd/alidata/www/sns chmod777-Rdata chmod777-R_runtime chmod777-Rinstall chmod777-Rconfig