Apache错误日志VirtualProtect() failed [87] 参数错误
更新:2022-04-17 09:58:38
人气:97
来源:本站原创
A+
最近一直在更新李雷博客的后台,发现Apache错误日志(error.log)中出现VirtualProtect() failed [87] 参数错误的提示信息。或者是“"VirtualProtect() failed [87] The parameter is incorrect"”但并不影响程序的运行,可一直这样放着心里总是不舒服,干脆花点儿时间解决它。
出现上述问题是因为开启了PHP的opcache缓存,知道问题的所在就好下手解决,方法有两种,其一是关闭opcache缓存
[opcache] zend_extension=php_opcache.dll ; Determines if Zend OPCache is enabled opcache.enable=1 以上是开启了缓存,关闭即可,如下注释掉就行了。 [opcache] ; zend_extension=php_opcache.dll ; Determines if Zend OPCache is enabled ; opcache.enable=1
如果不想关闭opcache还有一个方法,这个方法是在官网论坛中别人找到的,办法就是在PHP.ini文件中[opcache]的最后增加下面的代码:
; Absolute path used to store shared lockfiles (for *nix only). ;opcache.lockfile_path=/tmp opcache.jit=off //添加的是这行,其它只为了方便大家查看,不用理会 [curl]
经过一番折腾,解决后再次重启apache服务,任意访问李雷博客页面的链接,回过头再去看error.log中的记录,再也没有出现VirtualProtect() failed [87] 参数错误的信息。至此,问题解决。
另有一段记录在这里,用于参考,与PHP8.1有关,也是摘自PHP官网论坛。
I came from upgrading a PHP7 installation on Windows tzo PHP8.1 Because of dependencies in the Apace installation I have to use the x32 Version of apache and PHP. But the problem says the same. Hundreds of enties in error.log "VirtualProtect() failed [87] The parameter is incorrect"
推荐的文章
Ads by Google
随手记
- ● mysql的慢查询日志记录什么
- ● js获取上传文件类型以及大小的方法
- ● windows系统如何查询openssl.cnf文件位置及更换路径
- ● SSL证书工具之CSR的作用是什么?
- ● [ssl:warn]SessionCacheisnotconfigured[hint:SSLSessionCache]原因
- ● servercertificatedoesNOTincludeanIDwhichmatchestheservername
- ● jquery怎么删除元素本身
- ● LODOP不同电脑打印效果不同排查
- ● LODOP不同打印机出现偏移问题
- ● phpmyadmin绿色中文版百度云下载
PHP经验分享