通过这样做改变uWamp中的apache版本:
从ApacheHaus下载 Apache 2.4 VC14 32位。
选择32位apache版本,即使windows为64位)
然后按照以下步骤操作:
- 将下载的apache解压缩到UwAmp \ bin目录(获取UwAmp \ bin \ apache24)
- 将原始UwAmp \ bin \ apache重命名为UwAmp \ bin \ apache_old
- 将UwAmp \ bin \ apache24重命名为UwAmp \ bin \ apache
- 将UwAmp \ bin \ apache_old \ certificat复制到UwAmp \ bin \ apache \ certificat
- 将UwAmp \ bin \ apache_old \ conf \ httpd_uwamp.conf复制到UwAmp \ bin \ apache \ conf \ httpd_uwamp.conf
- 将UwAmp \ bin \ apache_old \ php.ini复制到UwAmp \ bin \ apache \ php.ini
- 使用UwAmp \ bin \ apache \ conf \ extra合并UwAmp \ bin \ apache_old \ conf \ extra
(保留最新文件,只需将旧文件复制到新的apache目录:
httpd-ahssl.conf,httpd-deflate.conf,httpd-proxy-html.conf,httpd-vhosts.conf)
- 就是这样!通过启动uWamp验证然后打开localhost并查看apache版本号。在uWamp日志消息窗口中查找通知或错误(如果有)。
醇>
如果出现问题,只需通过重命名2个文件夹回滚到原始的apache:
- 关闭uWamp
- 将最新的UwAmp \ bin \ apache重命名为UwAmp \ bin \ apache_new
- 将原始UwAmp \ bin \ apache_old重命名为UwAmp \ bin \ apache
醇>