laragon 使用(php版本升級切換)


php版本升級切換

1.下載對應不帶 nts 的php版本(http://windows.php.net/download/),然后解壓放到\laragon\bin\php目錄下

2.記得改環境變量下php的path配置

3.laragon操作:菜單->PHP->版本->選擇對應的php版本

4.需要重新配置下xdebug

https://www.cnblogs.com/cxscode/p/8933209.html

 php.ini最后加

[xdebug]
zend_extension="D:\laragon\bin\php\php-7.1.14-Win32-VC14-x64\ext\php_xdebug.dll"
xdebug.remote_enable=true    
xdebug.remote_host=127.0.0.1 
xdebug.remote_port=9000      
xdebug.remote_handler=dbgp
xdebug.idekey="PHPSTORM"

下載安裝對應版本xdebug:php_xdebug.dll

https://xdebug.org/download.php

放到對應php的ext文件夾下即可

 

nginx,mysql,apache同理

mysql需要初始化數據

How to add old version of MySQL for your case: (http://ftp.iij.ad.jp/pub/db/mysql/Downloads/MySQL-5.1/mysql-noinstall-5.1.73-win32.zip)

1、Backup your databases using mysqldump

2、Rename current data dir to data-backup

3、Copy your data dir in bin/mysql/mysql-noinstall-5.1.73-win32 to the former data dir place

4、Start Laragon and restore former databases from the dump file 將laragon/data/mysql/mysql

文件夾備份, 將新mysql 壓縮包中的data數據拷貝到laragon/data/mysql/mysql,然后重啟mysql就可以實現切換

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM