首先进行目录的切换cd /usr/src 其次获得这个包Get the package wget https://github.com/linuxadminio/mod_auth_mysql/raw/master/mod_auth_mysql-3.0.0.tar.gz 然后进行解压Extract the package tar xfvz mod_auth_mysql-3.0.0.tar.gz 然后去到这个目录下Go into the directory cd mod_auth_mysql-3.0.0 改变以下行Change the following lines 1.line 908 from return r->connection->remote_ip;>>return r->connection->client_ip; 2.Line 1273 from: const apr_array_header_t *reqs_arr = ap_requires(r);>>const apr_array_header_t *reqs_arr = NULL; 3.Line 1275 from: const array_header *reqs_arr = ap_requires(r);>>const array_header *reqs_arr = NULL;
参考链接为:作者参考此链接