準(zhǔn)備學(xué)習(xí)php框架Laravel,但PHP版本要求5.4+,目前用的wamp默認(rèn)版本5.3,所以準(zhǔn)備使用xampp,以下為記錄
卸載wamp,略過
> ps:注意卸載wamp會(huì)刪除PHP目前下的文件,因?yàn)镻HP的擴(kuò)展redis,memcache也會(huì)刪除,記得備份,也可重下版本,還有MySQL數(shù)據(jù)庫也記得備份
https://www.apachefriends.org/zh_cn/index.html點(diǎn)此下載軟件
啟動(dòng)Apache,MySQL,打開localhost成功安裝
配置,因?yàn)閤ampp默認(rèn)根目錄有新的www,因此需要為原來的wamp的www目錄配置虛擬域名
編輯httpd.conf ,修改
1 2 3 4 5 6 7 8 | <Directory /> #AllowOverride none #Require all denied Options All AllowOverride All Order deny,allow Allow from all </Directory> |
編輯httpd-vhosts.conf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot "D:/soft/xampp/htdocs" ServerName localhost </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot "D:/soft/wamp/www" ServerName vhallapp.com ServerAlias www.vhallapp.com ErrorLog "D:/soft/wamp/apacheerror.log" CustomLog "D:/soft/wamp/apacheaccess.log" common </VirtualHost> |
編輯hosts
5. 下載redis
6. 編輯php.ini
7. 打開xdebug
1 2 3 4 5 6 7 8 9 10 11 | [XDebug] zend_extension = "D:\soft\xampp\php\ext\php_xdebug.dll" xdebug.profiler_append = 0 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir = "D:\soft\xampp\tmp" xdebug.profiler_output_name = "cachegrind.out.%t-%s" xdebug.remote_enable = 0 xdebug.remote_handler = "dbgp" xdebug.remote_host = "127.0.0.1" xdebug.trace_output_dir = "D:\soft\xampp\tmp" |
8.打開www.app.com
over
以上所述就是本文的全部內(nèi)容了,希望能夠?qū)Υ蠹沂煜づ渲肵AMPP有所幫助。
分享題目:從wamp到xampp的升級(jí)之路
文章起源:http://aaarwkj.com/article40/gseo.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供微信公眾號(hào)、網(wǎng)站制作、軟件開發(fā)、ChatGPT、響應(yīng)式網(wǎng)站、網(wǎng)站內(nèi)鏈
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)