- 论坛徽章:
- 0
|
系统:RedHat 9.0
版本信息:
MySQL-server-5.0.18-0.i386.rpm
MySQL-client-5.0.18-0.i386.rpm
MySQL-devel-5.0.18-0.i386.rpm
httpd-2.2.0.tar.gz
php-5.1.2.tar.gz
libxml2-2.6.23
gd库:jpeg freetype zlib libpng gd
都是最新的版本...
我用redhat 9.0安装Apche+MySQL+php+GD库。]
1、先安装mysql,服务器,客户端,开发包都已成功安装,然后装了个webmin,也ok了.都是rpm很快就安装完成。
然后安装apache也正常了,用编译方式安装的
2、安装httpd
#vi /root/.bash_profile
#tar zxvf httpd-2.2.0.tar.gz
#mv httpd… /etc/local/src
#cd /etc/local/src/httpd…
#configure --prefix=/etc/httpd \
> --enable-module=most --enable-shared=max
make clean
make
make install
vi /etc/httpd/conf/httpd.conf 改一下ServerName
service httpd start ……………………显示OK
3、然后安装gd库
jpeg ttf zlib png gd,很顺利,大部分都是configure make make install
4、更新libxml2到2.6.23
rpm -q libxml2 显示为新版本,也成功了,重启httpd也都ok了。可能问题就出在php上,大家帮我看看,我是这样安装的:
5、安装PHP:
#tar zxvf php-5.1.2.tar.gz
#把解压的目录 mv 到 /usr/local/src 下
#configure --prefix=/usr/local/php \
> --with apxs2=/etc/httpd/bin/apxs --with-gd \
> --with-jpeg-dir --with-ttf --with-zlib-dir --with-png-dir \
> --with-mysql --enable-track-vars
#make
#make test
--显示
iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt]
bug #35785(simple xml memory read error) [ext/simplexml/testsbug35785.phpt]
#make install
安装完成后重启httpd服务器就出问题了:
说:/etc/httpd/conf/httpd.conf中有一行错误,查看后是LoadModule php5_module modules/libphp5.so
API module structure 'php5_module' in file /etc/httpd/modules/libphp5.so is garbled - perhaps this is not an Apache module DSO?
这么说是php5模块与Apache之间有问题了,请问怎么修改,郁闷好几天了! |
|