我正在尝试运行安装程序脚本,这需要mod_rewrite模块,但它会抛出错误
Fatal error: Uncaught Error: Call to undefined function apache_get_modules() in /home/xx/public_html/install/index.php:19 Stack trace: #0 /home/xx/public_html/install/index.php(153): checkModRewrite() #1 {main} thrown in /home/xx/public_html/install/index.php on line 19
我的安装目录index.php第19行
function checkModRewrite() {
if(in_array('mod_rewrite', apache_get_modules())) {
return '<span class="label label-success">Yes</span>';
} else {
return '<span class="label label-danger">No</span>';
}
}
当他们通过快速CGI加载他们的模块时,此时无法安装脚本,是否有可能解决此问题?
编辑:忘记添加第153行
<p class="rq"> mod_rewrite module: <?=checkModRewrite()?> </p>