1、按照官方幫助裝好web環(huán)境,我選擇的是apache
2、將按照程序上傳到/alidata/www,我命名為sns
3、修改apache 配置文件:/alidata/server/httpd-2.2.22/conf/vhosts/phpwind.conf,添加虛擬主機(jī),代碼如下

<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下執(zhí)行命令:
cd/alidata/server/httpd-2.2.22/bin ./apachectlstop ./apachectlgraceful 或者執(zhí)行./apachectlrestart
5、訪問ip地址安裝程序
第二步的時(shí)候會(huì)提示文件不可寫,進(jìn)入安裝目錄,修改文件夾及其子文件權(quán)限
cd/alidata/www/sns chmod777-Rdata chmod777-R_runtime chmod777-Rinstall chmod777-Rconfig
文章標(biāo)題:阿里云配置linux環(huán)境,安裝ThinkSNS
轉(zhuǎn)載來(lái)于:http://www.chinadenli.net/article0/cggsoo.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供外貿(mào)網(wǎng)站建設(shè)、定制網(wǎng)站、網(wǎng)站改版、用戶體驗(yàn)、定制開發(fā)、App開發(fā)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
移動(dòng)網(wǎng)站建設(shè)知識(shí)