xmapp是很多初學者使用的PHP環境內建包,用yum在linux安裝的php和mysql版本現在都很低,xmapp可以解決這個問題,下面我們直接進入正題,安裝一個php內建環境。
我使用的是vm虛拟機,安裝的是centos7。
第一步:下載下傳xmapp
到https://www.apachefriends.org/zh_cn/index.html下載下傳內建包,選擇xmapp for linux,我選擇的版本是xampp-linux-x64-5.6.30-1-installer.run。點選下載下傳,可以得到下載下傳連結https://downloadsapachefriends.global.ssl.fastly.net/xampp-files/5.6.30/xampp-linux-x64-5.6.30-1-installer.run?from_af=true,在linux終端輸入以下指令:
wget -c “https://downloadsapachefriends.global.ssl.fastly.net/xampp-files/5.6.30/xampp-linux-x64-5.6.30-1-installer.run?from_af=true” -O xampp.run
我們就會得到下載下傳好的檔案 xmapp.run(如果你的下載下傳位址不是這個,請替換下載下傳的連結即可)
第二步:安裝xmapp
輸入:chmod +x xmapp.run
執行結束後再輸入:./xmapp.run
xmapp就可以執行安裝了,剩下就是等待安裝完畢
打開浏覽器,輸入localhost,可以看到以下界面就是安裝成功