php版本升级切换
1.下载对应不带 nts 的php版本(http://windows.php.net/download/),然后解压放到laragoninphp目录下
2.记得改环境变量下php的path配置
3.laragon操作:菜单->PHP->版本->选择对应的php版本
4.需要重新配置下xdebug
https://www.cnblogs.com/cxscode/p/8933209.html
php.ini最后加
[xdebug] zend_extension="D:laragoninphpphp-7.1.14-Win32-VC14-x64extphp_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就可以实现切换