首页 Soft PlugIn RAN乱 Dev开发 Info资料 English WAP 留言 登陆 注册
-
Posted by Yippee | 评论(0) | 引用(0) | 阅读2484次
linux 安装 php

下载 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 


字体:

Permanant URI永久地址 http://www.shengfang.org/blog/p/linuxinstphp.php
Trackback URI引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1126851221

2005年9月16日14:13星期五  [Dev开发] 追踪此文的RSS
提示:
此文还没有评论。

称呼:    登陆   注册
   不注册,但记住我的信息
邮件:
(非必须)
评论: [UBB代码帮助]
粗体 斜体 下划线 链接 水平线 引用



验证码: 请输入你看见的数字
关闭UBB      提交时自动将内容复制到剪贴板

公告
Fire and Motion!

统计信息
[Yippee]||[统计]||日志:1790
在线: 13||用户: 2562 [列表]
今日:2434||到访:2671933
Rss:838510||评论:1584

最新日志

最新评论

友情链接

日历

最新引用

搜索

归档

杂项
Get RSS Feed (Version 2.0)
Get Atom Feed (Version 0.3)
编码:  UTF-8