当前位置:网站首页>PHP環境搭建(推薦寶塔面板)
PHP環境搭建(推薦寶塔面板)
2022-07-21 20:52:00 【程序員wycto】
初學者推薦安裝集成環境,不建議分別安裝,集成環境包含php、mysql、apache、其他
php、mysql、apache分別安裝的需要相互之間配置,對初學者不友好,一般開發也不需要,特殊生產環境才需要;
widows:寶塔面板(推薦)、phpstudy(https://www.xp.cn/)
mac:使用brew安裝(監獄)mamp
linux:寶塔面板(https://www.bt.cn/new/index.html)
還是非常nice的,可以自用的安裝所需要的環境,PHP多個版本共存:
很簡單的添加一個站點(網站):
傻瓜式操作,支持各種界面化配置,特別適用於小白,大神使用也十分方便;
下面是針對PHP環境的搭建操作,不會的小白跟著做就可以了,來吧:
安裝(寶塔面板):
windows:直接下載.exe雙擊執行,下一步下一步
Linux:面板7.9.2安裝脚本
Centos安裝脚本:
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec
Ubuntu/Deepin安裝脚本:
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec
萬能安裝脚本:
if [ -f /usr/bin/curl ];then curl -sSO https://download.bt.cn/install/install_panel.sh;else wget -O install_panel.sh https://download.bt.cn/install/install_panel.sh;fi;bash install_panel.sh ed8484bec
安裝PHP環境(apache、mysql、php7以上):
等待安裝完成即可
mysql安裝:
mysql安裝和apache一樣,找到mysql,點擊【安裝】、選擇極速和編譯都可以,選擇極速比較快;
PHP安裝:
PHP選擇7.2以上安裝,新的PHP版本性能較好,以後的教程也是PHP7.2以上的
安裝有問題的下面評論,我會回複,下期就開始運行第一個PHP網站程序,下期見
边栏推荐
猜你喜欢
利用vscode插件 coderunner 编译运行 typescript,当输出有中文的时候,出现乱码
web安全--文件包含(本地包含,远程包含)
There are multiple heroes that share the same tag within a subtree
How to share files over IP
Koa2 fast build server
Openfoam programming: combination of VOF method and porous media model
npm相关资料
14. [string function Chapter 1]
BUUCTF [SUCTF 2019]EasySQL
php三行代码写测试接口
随机推荐
php百度人脸检测api测颜值评分(源码直接可用)
Nodemon +nodejs + Express file modification automatically restarts the server
网页服务器/客户端搭建(nodejs启动exe程序)
加快无人机智能巡检规模化应用,福建电力输电运检智能化建设提速
【文件上传绕过】--二次渲染
day1 poc与exp学习之pikachu字符注入
Wechat applet makes a slot machine lottery animation
Boundary layer integral equation and Marangoni effect
墨者学院-WebShell文件上传分析(第3-5题)
Flutter error record: navigator dart‘: Failed assertion: line 4041 pos 12: ‘!_ debugLocked‘: is not true.
Precision problems and solutions of JS decimal conversion percentage
Nodejs reads and parses the dom of XML
phpmyadmin后台文件包含漏洞分析
Oh my Zsh efficiency plug-in
解决uniapp编译后vendor.js文件过大(官方处理方案)
Buuctf web casual note
QML implements CSDN search box with irregular rounded corners
JWT realizes TP5 user login function
JS converts hexadecimal color to RGBA format
18. [precautions for pointer pointing to two-dimensional array]