新聞中心
下載并安裝phpstudy
1、訪問(wèn)phpstudy官方網(wǎng)站:https://www.xp.cn/download.html,點(diǎn)擊“立即下載”按鈕,下載最新版本的phpstudy安裝包。

大理州網(wǎng)站建設(shè)公司成都創(chuàng)新互聯(lián)公司,大理州網(wǎng)站設(shè)計(jì)制作,有大型網(wǎng)站制作公司豐富經(jīng)驗(yàn)。已為大理州1000多家提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\外貿(mào)網(wǎng)站制作要多少錢(qián),請(qǐng)找那個(gè)售后服務(wù)好的大理州做網(wǎng)站的公司定做!
2、雙擊下載好的安裝包,按照提示進(jìn)行安裝,建議選擇“自定義安裝”,將phpstudy安裝在非系統(tǒng)盤(pán)(如D盤(pán))的根目錄下,避免因系統(tǒng)重裝導(dǎo)致配置丟失。
3、安裝完成后,啟動(dòng)phpstudy,點(diǎn)擊右下角的“啟動(dòng)”按鈕,等待所有服務(wù)啟動(dòng)成功。
配置phpstudy
1、打開(kāi)phpstudy,點(diǎn)擊左側(cè)菜單欄的“網(wǎng)站域名管理”。
2、在右側(cè)界面中,點(diǎn)擊“添加”按鈕,輸入你的項(xiàng)目域名(如:www.example.com),選擇網(wǎng)站根目錄(如:D:wwwexample),選擇PHP版本(如:PHP 7.4 nts x64)。
3、點(diǎn)擊“保存設(shè)置”按鈕,完成網(wǎng)站域名的配置。
創(chuàng)建數(shù)據(jù)庫(kù)
1、點(diǎn)擊左側(cè)菜單欄的“MySQL管理器”。
2、在右側(cè)界面中,點(diǎn)擊“新建”按鈕,輸入數(shù)據(jù)庫(kù)名稱(chēng)(如:example),字符集選擇“utf8mb4”。
3、點(diǎn)擊“創(chuàng)建”按鈕,完成數(shù)據(jù)庫(kù)的創(chuàng)建。
創(chuàng)建數(shù)據(jù)庫(kù)用戶
1、在“MySQL管理器”界面,點(diǎn)擊“權(quán)限”選項(xiàng)卡。
2、點(diǎn)擊“添加”按鈕,輸入用戶名(如:exampleuser),密碼(如:examplepassword)。
3、選擇剛剛創(chuàng)建的數(shù)據(jù)庫(kù)(如:example),勾選“所有權(quán)限”。
4、點(diǎn)擊“保存”按鈕,完成數(shù)據(jù)庫(kù)用戶的創(chuàng)建。
配置網(wǎng)站
1、打開(kāi)網(wǎng)站根目錄(如:D:wwwexample),創(chuàng)建以下文件:index.php、config.php、.htaccess。
2、編輯config.php文件,輸入以下內(nèi)容:
3、編輯index.php文件,輸入以下內(nèi)容:
4、編輯.htaccess文件,輸入以下內(nèi)容:
RewriteEngine On RewriteBase / RewriteRule ^index.php$ [L] RewriteCond %{REQUEST_FILENAME} !f RewriteCond %{REQUEST_FILENAME} !d RewriteRule . /index.php [L]
5、打開(kāi)瀏覽器,訪問(wèn)http://www.example.com,如果看到“Hello, PHPStudy!”字樣,說(shuō)明網(wǎng)站配置成功。
當(dāng)前標(biāo)題:phpstudy安裝和配置
分享鏈接:http://www.fisionsoft.com.cn/article/djoojdo.html


咨詢
建站咨詢
