|
发表于 2002-11-4 18:07:21
|
显示全部楼层
15、Install Apache
15、Install Apache
cd ../apache_1.3.24
SSL_BASE=/usr/local/ssl ./configure
--prefix=/www --enable-module=ssl --enable-module=so
--activate-module=src/modules/php4/libphp4.a
--enable-rule=SSL_SDBM --enable-module=rewrite
make
make certificate
make install
修改 /www/conf/httpd.conf,
Options Indexes FollowSymLinks MultiViews -> Options FollowSymLinks MultiViews
DirectoryIndex index.html -> DirectoryIndex index.html index.php3 index.php
增加
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/
vi /www/conf/mime.types 增加
application/x-httpd-php php php3
拷贝下载的 mod_webapp.so 到 /www/libexec
启动Apache
/www/bin/apachectl startssl
vi /etc/rc.d/init.d/httpd (可选)
#!/bin/sh
. /etc/rc.d/init.d/functions
case "$1" in
start)
echo -n "Starting httpd with SSL : "
/www/bin/apachectl startssl
;;
stop)
echo -n "Shutting down httpd: "
/www/bin/apachectl stop
;;
restart)
echo -n "Restarting httpd: "
/www/bin/apachectl restart
;;
status)
echo -n "Show httpd status: "
/www/bin/apachectl status
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
esac
exit 0
ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc3.d/S99httpd (开机自动运行)
16、最后测试
在/www/htdocs/下写个test.php,内容:,
http://localhost/test.php,看 ... 题了。如果有"with Zend Optimizer v1.2.0, Copyright (c) 1998-2001, by Zend Technologies",说明Zend Optimizer装好了。如果有"with Zend Cache v1.1.0, Copyright (c) 1999-2001, by Zend Technologies",说明Zend Cache装好了。同理,看Zend Accelerator装好没有。 |
|