本站网址: YippeeSoft开心软件
本文链接: 20070318 php5 apache2.2
20070318 php5 apache2.2
想弄弄PHP,结果弄了半天,以为以前弄过应该简单
http://www.yippeesoft.com/blog/p/zendphpapacheinsta.php
结果发现错了。
服务器的环境:
Apache 1.3.34
php 5.2.0
mysql 5.0.27
跑去下载:
IMPORTANT NOTE FOR APACHE USERS: Apache 1.3 was designed for Unix OS variants. While the ports to non-Unix platforms (such as Win32, Netware or OS2) will function for some applications, Apache 1.3 is not designed for these platforms. Apache 2 was designed from the ground up for security, stability, or performance issues across all modern operating systems. Users of any non-Unix ports are strongly cautioned to move to Apache 2.
The Apache project no longer distributes non-Unix platform binaries from the main download pages for Apache 1.3. If absolutely necessary, a binary may be available at http://archive.apache.org/dist/httpd/. apache_1.3.34-win32-x86-no_src.msi 18-Oct-2005 18:32 1.8M
PHP 5.2.0 Released
[02-Nov-2006] The PHP development team is proud to announce the immediate release of PHP 5.2.0. This release is a major improvement in the 5.X series, which includes a large number of new features, bug fixes and security enhancements. Further details about this release can be found in the release announcement 5.2.0, the full list of changes is available in the ChangeLog PHP 5.
All users of PHP, especially those using earlier PHP 5 releases are advised to upgrade to this release as soon as possible. This release also obsoletes the 5.1 branch of PHP.
For users upgrading from PHP 5.0 and PHP 5.1 there is an upgrading guide available here, detailing the changes between those releases and PHP 5.2.0.
# PHP 5.2.0 installer [18,879Kb] – 02 Nov 2006
md5: 1521d6e9b273299ebd8081d174146d22
MYSQL是一个多线程的,结构化查询语言(SQL)数据库服务器。SQL 在世界上是最流行的数据库语言。MySQL 的执行性能非常高,运行速度非常快,并非常容易使用。是一个非常捧的数据库。
MySQL 5.2 Community Edition – Alpha Development Release (Falcon Preview)
NOTE: This alpha release, as any other pre-production release, should not be installed on production level systems or systems with critical data. It is good practice to back up your data before installing any new version of software. Although MySQL has worked very hard to ensure a high level of quality, protect your data by making a backup as you would for any other software beta release. MySQL generally recommends that you dump and reload your tables from any previous version to upgrade to 5.2.
Note that the only new feature that 5.2 contains at this time (over 5.1) is the Falcon storage engine.
Windows (x86) ZIP/Setup.EXE 5.2.0-falcon-alpha 36.1M Pick a mirror
用的是PHP安装包,它自己改了HTTPD.CONF
结果
发现The Apache service named Apache.exe reported the following error:
>>> Syntax error on line 990 of e:/php/apache/apache/conf/httpd.conf: <<<
before the error.log file could be opened.
More information may be available in the error.log file. .
The Apache service named Apache.exe reported the following error:
>>> Invalid command \’PHPIniDir\’, perhaps mis-spelled or defined by a module not included in the server configuration <<<
before the error.log file could be opened.
More information may be available in the error.log file. .
实在莫名其妙,发现是顺序问题,于是把PHPINIDIR放到最后,结果APACHE虽然启动了,可是不能解析PHP
于是下载APACHE最新的
Apache HTTP Server 2.2.4 is the best available version
The Apache HTTP Server Project is pleased to announce the release of Apache HTTP Server, version 2.2.4. This release represents ten years of innovation by the project, and is recommended over all previous releases! In particular, this release fixes an \’important\’ security vulnerability in mod_rewrite.
结果报告
想想The Apache service named reported the following error:
>>> httpd.exe: Syntax error on line 115 of E:/php/apache/conf/httpd.conf: API module structure `php5_module\’ in file E:/php/php5/php5apache2.dll is garbled – perhaps this is not an Apache module DSO? .
看了一大堆资料,都是说
PI module structure `php5_module\’ in file /etc/httpd/modules/libphp5.so is garbled – perhaps this is not an Apache module DSO?
我用google和baidu查了很多页面了,有不少人有这个问题,但都没有很好的解决方法;哪位达人能帮忙解决,不胜感激;
hbird 2006-5-23 02:52
我在solaris9上安装apache2.2+php5得到你一样的错误,后来改为apache2+php5,并且按照sunfreeware上的说明打包,结果就正常了,希望对你有用。
小虎牙 2006-5-23 06:34
apache编译安装的时候没有加上–enable-so
现在加载共享模块加载不了
我也在redhat9遇到了这问题兄台你解决了 没郁闷现在一打开测试页面 就弹出自动保存PHP页面的窗口,apache没解析PHP
LoadModule php5_module modules/libphp5.so 写入了/usr/local/apache/conf/httpd.conf(/usr/local/apache/我apache安装目录) 里面但是有效的却是:/etc/httpd/conf/httpd.conf ,在:/etc/httpd/conf/httpd.conf 下加入LoadModule php5_module modules/libphp5.so 重启apache时候就出提示跟你一样的错误 把LoadModule php5_module /usr/local/apache/modules/libphp5.so换成这样也不行
最后发现
[28 Nov 2006 6:14pm UTC] oldimp at gmail dot com
try
LoadModule php5_module "%php%/php6apache2_2.dll"
By me it works
改为使用php5apache2_2.dll就OK了
原创文章,转载请注明: 转载自YippeeSoft开心软件
本文链接地址: 20070318 php5 apache2.2
历史博文
- 移植U-Boot-2010.03到友善之臂mini2440(四) - bootloader学习与移植 - Dracula_Tepes - 2010
- 20071112 IoC AOP Attribute url - 2008
- 0401 smartphone mpx 220 技巧 - 2006
- Asterisk install - 2005
评论