- 論壇徽章:
- 0
|
請教,在啟動apache時出現(xiàn)
httpd: Syntax error on line 98 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/mod_cgi.so into server: Cannot open "/usr/local/libexec/apache22/mod_cgi.so"
和
httpd: Syntax error on line 91 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/mod_ssl.so into server: Cannot open "/usr/local/libexec/apache22/mod_ssl.so"
錯誤,在/usr/local/libexec/apache22/下面確實沒有mod_cgi.so和mod_ssl.so
請教我哪兒出錯了 麻煩大家了
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
安裝步驟如下
===============================
//安裝openssl
cd /usr/ports/security/openssl
make install clean
升級expat2
cd /usr/ports/textproc/expat2
make deinstall
make install clean
================================
cd /usr/ports/www/apache22
make WITH_MPM=worker WITHOUT_IPV6=yes WITH_THREADS=yes WITHOUT_SSL=yes install clean
安裝apache的mod
cd /usr/ports/www/mod_fastcgi
make WITH_APACHE2=yes install clean
然后修改/usr/local/etc/apache22/httpd.conf
================================
//安裝php5
cd /usr/ports/lang/php5
make config
[X] CLI Build CLI version
[X] CGI Build CGI version
[X] APACHE Build Apache module
[ ] DEBUG Enable debug
[X]] SUHOSIN Enable Suhosin protection system
[X] MULTIBYTE Enable zend multibyte support
[ ] IPV6 Enable ipv6 support
[ ] REDIRECT Enable force-cgi-redirect support (CGI only)
[ ] DISCARD Enable discard-path support (CGI only)
[X] FASTCGI Enable fastcgi support (CGI only)
[X] PATHINFO Enable path-info-check support (CGI only)
make install clean
cp /usr/local/etc/php.ini-dist /usr/local/etc/php.ini
=====================================
//安裝php5-extensions
cd /usr/ports/lang/php5-extensions/
make config
[X] FTP FTP support
[X] GD
[X] GETTEXT
[X] MBSTRING
[X] MYSQL
[ ] POSIX
[ ] SQLITE
[X] ZLIB
make install clean
==============================
//安裝php5-openssl
cd /usr/ports/security/php5-openssl
make install clean
=============================
//安裝ZenOptimizer
cd /usr/ports/devel/ZendOptimizer/
make install clean
然后根據(jù)提示修改php.ini
============================
編輯php.ini
將safe_mode = Off,更改為safe_mode = On
======================================== |
|