免费注册 查看新帖 |

Chinaunix

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

[数据库] php连接informix时,出现错误:Warning: ifx_pconnect()......... [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-24 15:39 |只看该作者 |倒序浏览
我用php连接informix时,出现错误:
Warning: ifx_pconnect() [function.ifx-pconnect]: E [SQLSTATE=IX 000 SQLCODE=-951] in /usr/local/apache/htdocs/dbTest.php on line 2
database filed.
谁知道是甚么错误啊?如何解决?谢谢大虾
我的系统是 Red hat linunix 9.0 ,Apache Version是2.2.2 ,PHP Version 是5.1.4

我以前是在Red hat linunix 9.0下装的,Apache 装的2.0.48 ,PHP Version 是4.3.10用php连接informix上没有问题的,搞不懂新的还不如旧的版本。

[ 本帖最后由 HonestQiao 于 2006-5-24 16:34 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-05-25 08:26 |只看该作者
各位路过的大虾帮帮忙啊

论坛徽章:
0
3 [报告]
发表于 2006-05-25 16:04 |只看该作者
不好意思,路过一个菜鸟...

论坛徽章:
0
4 [报告]
发表于 2006-05-26 12:52 |只看该作者
怎么没有人回啊。我顶

论坛徽章:
0
5 [报告]
发表于 2006-05-29 10:17 |只看该作者
我再顶

论坛徽章:
0
6 [报告]
发表于 2006-06-22 11:39 |只看该作者
终于解决了.

我是从重装informix数据库的.
apache没有改
./configure --prefix=/usr/local/apache \
            --enable-track-vars  \
            --enable-cgi \
            --with-config-file-path=/usr/local/apache/conf \
            --enable-so \
            --enable-mods-shared=most

        $make
        $make install

重装了php的.
./configure  --prefix=/usr/local/php \
         --with-informix=/opt/informix \
         --with-mysql \
         --with-apxs2=/usr/local/apache/bin/apxs \
         --enable-track-vars \
         --enable-force-cgi-redirect \
         --with-config-file-path=/usr/local/php/etc \
         --with-libxml-dir=/usr/local/include/libxml2 \
         --with-xml \
         --with-gd \
         --with-jpeg-dir \
         --with-zlib-dir \
         --with-png-dir \
         --with-ttf \
         --enable-ftp
        $make
        $make install


修改了/usr/local/apache/bin/apachectl
   B. 更改apache的配置文件apachectl         #对于informix数据库
        # -------------------- file apachectl               --------------------
     DBPATH=/home/bit;export DBPATH
     LD_LIBRARY_PATH=/opt/informix/lib:/opt/informix/lib/esql;export LD_LIBRARY_PATH

论坛徽章:
0
7 [报告]
发表于 2006-06-22 21:19 |只看该作者

回复 6楼 zj5562 的帖子

我启动PHP出现:
Status: 404
Content-type: text/html
X-Powered-By: PHP/4.3.2

No input file specified.

这是怎么回事呀,哪位大哥指点一下呀?

还有:
cat /var/log/httpd/error_log
[Thu Jun 22 00:35:39 2006] [notice] Digest: generating secret for digest authent ication ...
[Thu Jun 22 00:35:39 2006] [notice] Digest: done
[Thu Jun 22 00:35:40 2006] [notice] Apache/2.0.46 (Red Hat) configured -- resumi ng normal operations
[Thu Jun 22 00:36:50 2006] [notice] child pid 15653 exit signal Segmentation fau lt (11)

这两个错误之间有什么联系没有呀?
我的系统是REDHAT9
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP