1、阿里雲伺服器如何將默認站點phpwind替換為自己的站點?
導航。默認首頁
2、如何修改阿里雲centos網站的默認根目錄phpwind
修改apache:/etc/httpd/conf下的配置文件,把路徑改成你所需要的www. PHPWIND重新上傳到這個路徑安裝. 記得備份資料庫和網站.
3、phpwind一鍵部署在阿里雲,FTP上傳文件,在線修改文件都無法操作!求大神給詳細解答!
一個過時的系統有啥子好用的,早就停止更新了,內核連php5.3的特性都沒有
暫時phpwind看起來還行,阿里的各種活動,讓phpwind看起來表面上還風光一下
一個不更新的系統現在早就該淘汰了。
4、阿里雲linux伺服器刪除phpwind後怎麼配置二級網站
如果你的伺服器沒有什麼重要資料,可以直接重裝一個新系統。
特別提醒,重回裝會刪除上面的數據答,注意做好備份!!
登錄阿里雲平台=》管理控制平台=》打開對應的實例,先停止該實例的主機,在配置信息的左側,有個更換系統盤的功能(未停止主機時是灰色不可用的),進入後就可以重裝系統了。
之前操作過幾次,重裝時會作手機驗證,不知道現在什麼策略了。
5、阿里雲nginx+php+mysql默認根目錄為alidata/www/phpwind,怎麼修改?謝謝。
在伺服器安裝rz命令
yum install lrzsz
rz 選擇要上傳文件sh.zip
安裝解壓命令:
yum install unzip #本機已經安裝了.所以這里不安裝
解壓
unzip -x sh.zip #解壓後腳本的許可權不夠
chmod -R 755 sh #-R 遞歸將目錄裡面所有文件許可權都改為755
在sh目錄下執行
./install.sh
安裝完畢後,檢查
ps -ef|grep nginx
ps -ef|grep mysql
在sh目錄下執行
cat account.log #查看mysql賬號密碼
FTP:
account:www
password:zzzzzz
MySQL:
account:root
password:zzzzzz
netstat -nat #查看3306埠有沒有listen
rpm -q mysql #查詢發現是mysql-server沒有安裝
yum install mysql-server #安裝mysql-server服務
service mysqld restart
mysql #查看mysql信息
mysql -p3306 -u用戶名 -p密碼 #登錄mysql
mysql -p3306 -uroot -pzzzzzzz
use mysql #進入mysql這個資料庫
show tables
desc user
select Host,User,Password from user; #查看資料庫用戶
exit #退出
mysql -p3306 -u用戶名 -p密碼 #登錄mysql
use mysql
update user set Host='%' where Host='localhost' #%表示任意的,這樣就可以在其他電腦連接ip
flush privileges #刷新
在外部電腦:
瀏覽器輸入:伺服器ip #對phpwind進行設置
Nginx添加網站:
在伺服器目錄: /alidata/server 有下面目錄:
mysql mysql-5.6.21 nginx nginx-1.4.4 php php-5.5.7
進入目錄: /alidata/server/nginx/conf
cat nginx.conf #這個文件找到最後一行
include /alidata/server/nginx/conf/vhosts/*.conf;
#包含了vhosts下面所有配置文件,一個網站一個conf
進入目錄:alidata/server/nginx/conf/vhosts/
查看文件: cat phpwind.conf
文件開始:::::
server {
listen 80;
server_name localhost; #這里localhost,所以瀏覽器輸入ip可以訪問,如果輸入www.xxx.com,瀏覽器就只能輸入相關域名
index index.html index.htm index.php;
root /alidata/www/phpwind;
location ~ .*\.(php|php5)?$
{
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 1h;
}
#偽靜態規則
include /alidata/server/nginx/conf/rewrite/phpwind.conf;
access_log /alidata/log/nginx/access/phpwind.log;
文件結束:::::::::
添加站點:www.paidaxue.com
cp default.conf.bak paidaxue.conf
修改文件:vim paidaxue.conf
修改: server_name localhost;
修改為:
server_name www.paidaxue.com;
修改: root /alidata/www/phpwind;
修改為:
root /alidata/www/paidaxue.com;
修改: 如果原來沒有這一段就忽略修改
log_farmat aliyun '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
' "$http_user_agent" "$http_x_forwarded_for"';
修改為:
log_farmat paidaxue '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
' "$http_user_agent" "$http_x_forwarded_for"';
修改:
access_log /alidata/log/nginx/access/default.log;
修改為:
access_log /alidata/log/nginx/access/paidaxue.com;
保存
進入目錄:
/alidata/server/nginx/sbin/nginx -s reload #重啟nginx
瀏覽器輸入:www.paidaxue.com #會顯示404not found 因為沒有對應目錄
新建目錄:alidata/www/paidaxue.com
mkdir -p /alidata/www/paidaxue.com
查看新建的目錄: #paidaxue.com是在root的用戶,root用戶組中
drwxr-xr-x 2 root root 4096 Jan 13 17:00 paidaxue.com
drwxr-xr-x 26 www www 4096 Jan 13 16:15 phpwind
瀏覽器輸入:www.paidaxue.com #會顯示403Forbidden 因為沒有許可權訪問
所以要對 paidaxue.com的許可權進行更改,變成和下面一樣的www
cd /alidata/www/
chown -R www:www /alidata/www/paidaxue.com
瀏覽器輸入:www.paidaxue.com #會顯示403Forbidden 因為裡面沒有文件
cd /alidata/www/paidaxue.com
在上面文件夾新建index.html
瀏覽器輸入:www.paidaxue.com #正常
6、阿里雲一鍵安裝web環境怎麼刪掉phpwind
用鏡像裝的嗎,鏡像裝的好像不好單獨刪除某一個哦,也可以咨詢下您買的鏡像服務專商是否可以單獨刪除屬phpwind
您得重裝系統了 重裝系統的時候 建議換個其他的 沒有phpwind的鏡像裝
當然買阿里雲之前,先領取阿里雲的代金券,可以實惠很多。
7、怎麼把phpwind安裝到阿里雲伺服器
如果配置好環境的話直接安裝就行,phpwind9需要安裝pdo_mysql的擴展,如果不會安裝可以讓阿里雲工程師給你安裝環境,免費的。
8、阿里雲主機怎麼建phpwind
你可以用阿里雲主機—專業版:多線機房,2G空間,500M的資料庫,支持A SP/N ET/PHP4/ 5/,能備案。每年230元。
現在在線。