- 論壇徽章:
- 0
|
因?yàn)橐褂肎oogle Sitemap Generator。安裝完成以后發(fā)現(xiàn)只要打開http:/ipaddress:8181,就直接下載admin-console.cgi.
我在服務(wù)器上使用的是編譯安裝,系統(tǒng)使用的是CentOS 5.5,使用的apache版本是Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.13 with Suhosin-Patch編譯參數(shù)如下- ./configure
- --prefix=/usr/local/lamp/apache2
- --enable-mods-shared=all
- --enable-deflate=shared
- --with-mysql=/usr/lib/mysql
- --enable-cache
- --enable-file-cache
- --enable-mem-cache
- --enable-disk-cache
- --enable-static-support
- --enable-static-htpasswd
- --enable-static-htdigest
- --enable-static-rotatelogs
- --enable-static-logresolve
- --enable-static-htdbm
- --enable-static-ab
- --enable-static-checkgid
- --with-mpm=worker
- --with-apr=/usr/local/lamp/apr/
- --with-apr-util=/usr/local/lamp/apr-util/
- --enable-ssl --with-ssl=/usr
- --enable-module=rewrite
- --enable-shared=rewrite
- --enable-modules=so
- --enable-shared=max
- --enable-rewrite
- --enable-cgid
- --disable-cgi
復(fù)制代碼 安裝完成后使用phpinfo()查看環(huán)境變量信息,發(fā)現(xiàn)APACHE都不支持CGI
以下是phpinfo()獲取到的信息- core worker http_core mod_so mod_authn_file mod_authn_dbm mod_authn_anon mod_authn_dbd mod_authn_default mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_dbm mod_authz_owner mod_authz_default mod_auth_basic mod_auth_digest mod_file_cache mod_cache mod_disk_cache mod_mem_cache mod_dbd mod_dumpio mod_reqtimeout mod_ext_filter mod_include mod_filter mod_substitute mod_deflate mod_log_config mod_log_forensic mod_logio mod_env mod_mime_magic mod_cern_meta mod_expires mod_headers mod_ident mod_usertrack mod_unique_id mod_setenvif mod_version mod_ssl mod_mime mod_dav mod_status mod_autoindex mod_asis mod_info mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_imagemap mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_php5 mod_sitemap
復(fù)制代碼 我也重新編譯了多次,包括還其他的版本,比目前的版本低的跟高的都嘗試過了(編譯安裝使用參數(shù)還是上面的,沒有使用默認(rèn)安裝),都不支持CGI模式.請(qǐng)問要怎么才能使用CGI模塊,或者是說系統(tǒng)要更新安裝什么軟件才能使用CGI。(PS:我在本地用VM虛擬機(jī)使用同樣的編譯參數(shù)卻是可以使用CGI的) |
|