下载 http://www.php.net/downloads.php
PHP 5.0.5
Complete Source Code
PHP 5.0.5 (tar.bz2) [4,781Kb] - 05 Sep 2005
md5: b5d4ca75bbb11ee5b830fa67213d9f7f
PHP 5.0.5 (tar.gz) [5,940Kb] - 05 Sep 2005
md5: ae36a2aa35cfaa58bdc5b9a525e6f451
PHP 4.4.0 www.shengfang.org
Complete Source Code
PHP 4.4.0 (tar.bz2) [3,990Kb] - 11 Jul 2005
md5: e85b606fe48198bfcd785e5a5b1c9613
PHP 4.4.0 (tar.gz) [4,856Kb] - 11 Jul 2005
md5: 4c12d241216e4ca2f2ce2cb7ee5de48b
./configure --prefix=/home/sf/www/php --with-mysql=/home/sf/www/mysql41 --with-apxs2=/home/sf/www/apache/bin/apxs
自行编译 PHP 源码 ./configure --prefix=/home/sf/www/php --with-mysql=/home/sf/www/mysql41 --enable-mbstring=all --with-apxs2=/home/sf/www/apache/bin/apxs && make && make install
增加 MBSTRING支持 解决: linux 安装 PHP APACHE mb_string (2005-9-15) 问题
make www.shengfang.org
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
make install www.shengfang.org
修改 HTTPD.CONF
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
loadmodule php4_module modules/libphp4.so
注意:要 apxs2 www.shengfang.org
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... configure: error: You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2 www.shengfang.org
--with-mysql=/home/sf/www/mysql41 要指定正确,否则~~
configure: error: Cannot find MySQL header files under /home/sf/www/mysql ?
最后: www.shengfang.org
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
&line; License: &line;
&line; This software is subject to the PHP License, available in this &line;
&line; distribution in the file LICENSE. By continuing this installation &line;
&line; process, you are bound by the terms of this license agreement. &line;
&line; If you do not agree with the terms of this license, you must abort &line;
&line; the installation process at this point. &line;
+--------------------------------------------------------------------+
&line; *** NOTE *** &line;
&line; The default for register_globals is now OFF! &line;
&line; &line;
&line; If your application relies on register_globals being ON, you &line;
&line; should explicitly set it to on in your php.ini file. &line;
&line; Note that you are strongly encouraged to read &line;
&line; http://www.php.net/manual/en/security.globals.php &line;
&line; about the implications of having register_globals set to on, and &line;
&line; avoid using it if possible. &line;
+--------------------------------------------------------------------+
Thank you for using PHP.
PHP Version 4.4.0 www.shengfang.org
System Linux mobile 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686
Build Date Sep 16 2005 13:33:32
Configure Command './configure' '--prefix=/home/sf/www/php' '--with-mysql=/home/sf/www/mysql41' '--with-apxs2=/home/sf/www/apache/bin/apxs'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /home/sf/www/php/lib/php.ini
PHP API 20020918 www.shengfang.org
PHP Extension 20020429
Zend Extension 20050606
Debug Build no www.shengfang.org
Zend Memory Manager enabled
Thread Safety disabled v
Registered PHP Streams php, http, ftp