一、ReleaseLog
1.5.2 ReleaseLog:
- [New Feature] Added support fo multiple access logs (at most 4) for each Vhost.
- [Improvement] Only check-in plain conf file with when the conf file is updated.
- [Bug Fix] Fixed a bug where the “SERVER_ADDR” variable was not set.
- [Bug Fix] Fixed “listening port occupied” bug when using the service restart command.
- [Bug Fix] Fixed a VHost error log bug that where https content was only partially recorded.
- [Bug Fix] Fixed cache module not working when using a reverse proxy.
个人觉得最主要的是第5条,在博主未更新之前的1.5.1版本中,Vhost错误一直与服务器错误记录在同一个文件中,
调试时还得翻服务器日志。
二、更新
下载https://openlitespeed.org/packages/openlitespeed-1.5.2.src.tgz并以原参数编译
1. 1.5.X
复制src目录下的openlitespeed到安装目录bin目录覆盖,重新启动即可。
将mv中的安装路径替换成自己的,在解压目录运行以下命令即可完成升级
systemctl stop lsws && mv ./src/openlitespeed /usr/local/lsws/bin/ && systemctl stop lsws
2. 1.4.X
按照以上步骤覆盖后,如果编译时启用了recaptcha,需要替换管理界面。
复制dist/admin/html.open覆盖安装目录下的admin/html.open,并注意权限的修正。
如果有修改过后台界面,注意备份。
三、优化后台访问速度
在安装目录下,vim ./admin/html.open/view/inc/header.php
,替换Google字体和ajax
- 将fonts.googleapis.com替换为fonts.lug.ustc.edu.cn
- 将ajax.googleapis.com替换为ajax.lug.ustc.edu.cn
保存后刷新页面即可
四、注意
不推荐使用1.5.X版本,该版本虽功能更新较快,但稳定性不足,程序或多或少存在Bug。
已知在当前1.5.2版本中发现无法初始化SSLCache,当修改”会话缓存超时”、”会话缓存大小”、”SSL会话记录单生命周期”、”SSL会话记录单Key文件路径”中的一项或几项的值时,
重启OLS后将造成HTTPS链接无法访问。
转载请注明:神奇海域 » 升级OpenLiteSpeed1.5.2并优化后台访问速度