免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1973 | 回复: 6
打印 上一主题 下一主题

各位大哥救救小弟:3天了,apache+mysql+php未成功! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-02-25 20:47 |只看该作者 |倒序浏览
系统:redhat8.0
安装:mysql+apache+php先是mysql无问题,
安装apache
./configure --prefix=/www --enable-module=so
make
make install
安装php
./configure --prefix=/usr/local/php --with-apxs=/www/bin/apxs --with-config-file-path=/usr/local/lib --enable-track-vars --with-xml with-mysql
make
make install
然后按照一些说明配置/www/conf/httpd.conf
启动/www/bin/apachectl
结果没有用/www/conf/httpd.conf ,用的是/etc/httpd/conf/httpd.conf
屏蔽/etc/httpd/conf/httpd.conf后,apachectl restart
error: /etc/httpd/conf/httpd.conf找不到!
用apachectl -d /www
error: Cannot load /www/libexec/libphp4.so into server: /www/libexec/libphp4.so:undefined symbol:ap_black_alarems!
这是咋回事?

论坛徽章:
0
2 [报告]
发表于 2003-02-25 23:30 |只看该作者

各位大哥救救小弟:3天了,apache+mysql+php未成功!

Did you installed apache when you installed your operating system? It seems there are two apaches in your machine. So, you can check with "rpm -aq|grep httpd" to make sure if there is apache in your machine or not. If so, you should delete the previous one and see what happn. Hope it can give you some help.

Good luck

论坛徽章:
0
3 [报告]
发表于 2003-02-26 11:55 |只看该作者

各位大哥救救小弟:3天了,apache+mysql+php未成功!

我并不是这样装的。下午我把我的安装过程贴出来

论坛徽章:
0
4 [报告]
发表于 2003-02-26 15:31 |只看该作者

各位大哥救救小弟:3天了,apache+mysql+php未成功!

编译apache及php4,
cd /usr/src/apache_1.3.x
./configure --prefix=/www
cd ../php-4.0.x
./configure --with-mysql=/www/mysql --with-apache=../apache_1.3.x --enable-track-vars
make
make install
cd ../apache_1.3.x
./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
make
make install
cd ../php-4.0.x
cp php.ini-dist /usr/local/lib/php.ini
apache及php4已安装成功,下面配置apache及php4

配置php4
php4的配置文件为/usr/local/lib/php.ini文件

可以用vi 来编辑,如果你安装了MC也可以用MC来编辑

在[mysql]下修改

mysql.default_port = 3306
mysql.default_host = localhost
mysql.default_user = root

保存文件。

配置apache
apache的配置文件为/www/conf/httpd.conf

去掉
#AddType application/x-httpd-php .php
行的注册号"#"加入行
AddType application/x-httpd-php .php3
保存文件。

论坛徽章:
0
5 [报告]
发表于 2003-04-28 10:49 |只看该作者

各位大哥救救小弟:3天了,apache+mysql+php未成功!

原帖由 "wuyong" 发表:
系统:redhat8.0
安装:mysql+apache+php先是mysql无问题,
安装apache
./configure --prefix=/www --enable-module=so
make
make install
安装php
./configure --prefix=/usr/local/php --with-apxs=/www/bi..........



安装过程有没有出错,没有那个libphp.o的文件,你手工拷过丢去看看

论坛徽章:
0
6 [报告]
发表于 2003-08-30 18:30 |只看该作者

各位大哥救救小弟:3天了,apache+mysql+php未成功!

原帖由 "wuyong" 发表:
系统:redhat8.0
安装:mysql+apache+php先是mysql无问题,
安装apache
./configure --prefix=/www --enable-module=so
make
make install
安装php
./configure --prefix=/usr/local/php --with-apxs=/www/bi..........
   

兄弟你用的APACHE ,MYSQL,PHP是那个版本,我怎用老是出错

论坛徽章:
0
7 [报告]
发表于 2003-09-28 23:29 |只看该作者

各位大哥救救小弟:3天了,apache+mysql+php未成功!

nnfirst, 你的mysql是先装的吗?装在那个目录下的?
cd ../php-4.0.x是什么含义的,也就是说它切换到哪个目录下
--with-mysql=/www/mysql --with-apache=../apache_1.3.x --enable-track-vars 它的含义是什么??
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP