检查是否安装模块:
0 1 2 3 4 5 6 |
[root@lamp stat]# /usr/local/apache/bin/apachectl -l |grep cgi [root@lamp stat]# /usr/local/apache/bin/apachectl -M |grep cgi cgi_module (shared) #已经安装了! [root@lamp stat]# grep cgi_module /usr/local/apache/conf/httpd.conf #LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so LoadModule cgi_module modules/mod_cgi.so |
安装cgi_module模块:
0 1 2 3 4 |
[root@lamp generators]# pwd /byrd/tools/httpd-2.4.10/modules/generators [root@lamp generators]# /usr/local/apache/bin/apxs -c -i -a mod_cgi.c chmod 755 /byrd/server/httpd-2.4.10/modules/mod_cgi.so [activating module `cgi' in /byrd/server/httpd-2.4.10/conf/httpd.conf] |
申明:本文由BYRD原创(基于Centos6.4 X64、PHP5.5.11、APACHE2.4.9、MYSQL5.6.16),未经许可禁止转载! SourceByrd's Weblog-https://note.t4x.org/environment/apache-cgi-module/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!