荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: georgehill (清风浮云 人生), 信区: Linux
标  题: apache+php+...(转寄)
发信站: BBS 荔园晨风站 (Thu Nov  2 23:07:49 2000), 站内信件

【 以下文字转载自 georgehill 的信箱 】
【 原文由 georgehill.bbs@smth.org 所发表 】
发信人: snofe ([听潮阁主人]), 信区: FreeBSD
标  题: apache+php+...(转寄)
发信站: BBS 水木清华站 (Wed Nov  1 20:02:49 2000)

apache-1.3.14 + mysql-3.22.32 + php-4.0.3pl1 + gd1.3 + mod_ssl-2.7.1-1.3.14 +
mod_perl-1.24
+openssl-0.95a
At /usr/local/src
all the source code is copied here!
ok!start
1:First install openssl
# ./config
# make
# make test
# make install
It will install openssl at /usr/local/ssl
and you must have install perl first!

2:then install gd 1.3
Notice:gd1.3 support gif,but gd 1.73 is no longer support gif,it only support
png

# make all
#cp libgd.a /usr/lib
#cp gd*.h  /usr/local/include

3: mysql
# ./configure --prefix=/usr/local/mysql
> --with-named-thread-libs=-lc_r \
> --with-charset=gb2312
# make
# make check
# make install
# cd /usr/local/mysql/bin
# ./mysql_install_db
after this
# /usr/local/mysql/bin/safe_mysqld &
if you want this autoboot ,
you should add this script to /usr/local/etc/rc.d/mysql-server.sh
-----------------cut here-----------------------------------
#!/bin/sh
#

if [ -x /usr/local/mysql/bin/safe_mysqld ]
then
        /usr/local/mysql/bin/safe_mysqld --user=mysql > /dev/null & && echo -n '
 mysql'
fi
-----------------end here-------------------------------------
then add this to /usr/local/etc/rc.d/mysql-client.sh
-----------------cut here-----------------------------------
#!/bin/sh
#
/sbin/ldconfig -m /usr/local/mysql/lib/mysql
-----------------end here------------------------------------


4: apache 1.3.14 + php 4.03pl1 + mod_perl- + mod_ssl-2.7.1-1.3.14
# tar xzvf apache-1.3.14.tar.gz
# tar xzvf mod_ssl-2.7.1-1.3.14.tar.gz
# tar xzvf mod_perl-1.24.tar.gz
# tar xzvf php-4.0.3pl1.tar.gz
# cd /mod_ssl-2.7.1-1.3.14
# ./configure \
> --with-apache=../apache-1.3.14
# cd ..
# cd mod_perl-1.24
# perl Makefile.PL \
> EVERYTHING=1 \
> APACHE_SRC=../apache-1.3.14/src \
> USE_APACI=1 \
> PREP_HTTPD=1 \
> DO_HTTPD=1
# make
# make install
# cd ..
:preconfigure for php4
# cd apache-1.3.14
# ./configure \
> --prefix=/usr/local/apache
# cd ..
:configure PHP4 and apply it to the Apache source tree
# cd ../php-4.0.3pl1
# CFLAGS='-O2 -I/path/to/openssl/include' \
> ./configure \
> --with-apache=../apache_1.3.14 \
> --with-mysql=/usr/local/mysql \
> --with-gd=/usr/local/gd1.3 \
> --with-ftp \
> --with–charset=gb2312
> --enable-memory-limit=yes \
> --enable-debug=no \
> --enable-track-vars
# gmake
# gmake install
# cd ../php-4.0.3pl1
# cp php.ini-dist /usr/local/lib/php.ini
:build/install Apache with mod_ssl and mod_perl and PHP3
# cd apache-1.3.14
# SSL_BASE=/usr/local/ssl ./configure \
> --prefix=/path/to/apache \
> --enable-module=ssl \
> --activate-module=src/modules/perl/libperl.a \
> --enable-module=perl \
> --activate-module=src/modules/php4/libphp4.a \
> --enable-module=php4
# make
# make certificate
# make install
# cd ..
Config apache
#cd /usr/local/apache/conf
# vi httpd.conf
search "AddType application/x-httpd-php .php" then uncomment the #
search "ServerName http://........" uncomment the #
search and change "Listen XXX.XXX.XXX:8080"
change Port: 8080
search "AddType application/x-httpd-php4 .php" and uncomment the #
search "AddType application/x-httpd-php4-source .phps" and uncomment the #
add these to support php3:
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
------------------------------------------------
Config php4
#vi /usr/local/lib/php.ini
search [mysql] and change
mysql.default_port = 3306
mysql.default_host = localhost
mysql.default_user = root
ok,save the file!
All have done!




--

※ 来源:·BBS 水木清华站 smth.org·[FROM: 202.199.66.62]
--
※ 转载:·BBS 荔园晨风站 bbs.szu.edu.cn·[FROM: 192.168.1.115]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店