简洁的想法

仁爱、喜乐、和平、忍耐、恩慈、良善、信实、温柔、节制

PHP4 Update to PHP5

| Comments

patched gd lib:
http://www.rime.com.au/gd/
wget http://downloads.rhyme.com.au/gd/gd-2.0.26gif.tar.gz
./configure —prefix=/usr/local/gd2 —with-zlib=/usr/local/zlib2/ —with-png=/usr/local/libpng2/ —with-jpeg=/usr/local/jpeg6/ —with-freetype=/usr/local/freetype2/

./configure —prefix=/usr/share/php5 —datadir=/usr/share/php —mandir=/usr/share/man/php5 —bindir=/usr/bin —libdir=/usr/share —includedir=/usr/include —sysconfdir=/etc —with-lib=lib —with-config-file-path=/etc/php5 —with-exec-dir=/usr/lib/php5/bin —disable-debug —enable-inline-optimization —enable-memory-limit —enable-magic-quotes —enable-safe-mode —enable-sigchild —disable-ctype —enable-session —with-jpeg-dir=/usr/local —with-zlib-dir=/usr/local —with-png-dir=/usr/local —with-gd=/usr/local/gd2 —with-mysql —disable-cli —without-pear —with-openssl —with-apxs2=/usr/sbin/apxs2-prefork

/etc/sysconfig/apache2
APACHE_MODULES="access actions alias auth auth_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5 "

/etc/apache2/sysconfig.d/loadmodule.conf
LoadModule php5
module
/usr/lib/apache2-prefork/libphp5.so

在默认的情况下,服务器不会在系统开机时自动启动。它需要以root用户的身份执行以下命令才能启动:MyServer:#/etc/init.d/apache2 start
如果想让服务器在系统开机时自动启动,就要多执行一条命令:
MyServer:#/etc/init.dinsserv apache2

not finished…

Comments