免费注册 查看新帖 |

Chinaunix

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

[Web] 请求帮助 “请检查 PHP 或网站服务器日志,并正确配置 PHP 安装” [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-05-22 18:15 |只看该作者 |倒序浏览
本帖最后由 aselmy 于 2010-05-22 18:17 编辑

phpMyAdmin - 错误

无法在发生错误时创建会话,请检查 PHP 或网站服务器日志,并正确配置 PHP 安装。

linux系统 使用yum update php 升级到最新版。然后又这个错误。因为服务器是PHP版本是5.1.X的 无法使用phpmyadmin 所以升级了下

据说要编译php和apache?但是找了半天也没有找到应该如何编译,请教大家。知道的帮忙写一下。谢谢了
  1. PHP Version 5.2.10

  2. System         Linux localhost.localdomain 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:09:10 EDT 2010 i686
  3. Build Date         Nov 13 2009 11:25:53
  4. Configure Command         './configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--without-mime-magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--disable-json'
  5. Server API         Apache 2.0 Handler
  6. Virtual Directory Support         disabled
  7. Configuration File (php.ini) Path         /etc
  8. Loaded Configuration File         /usr/local/Zend/etc/php.ini
  9. Scan this dir for additional .ini files         /etc/php.d
  10. additional .ini files parsed         /etc/php.d/dbase.ini, /etc/php.d/dom.ini, /etc/php.d/gd.ini, /etc/php.d/json.ini, /etc/php.d/ldap.ini, /etc/php.d/mbstring.ini, /etc/php.d/mhash.ini, /etc/php.d/mysql.ini, /etc/php.d/mysqli.ini, /etc/php.d/pdo.ini, /etc/php.d/pdo_mysql.ini, /etc/php.d/pdo_sqlite.ini, /etc/php.d/xmlreader.ini, /etc/php.d/xmlwriter.ini, /etc/php.d/xsl.ini, /etc/php.d/zip.ini
  11. PHP API         20041225
  12. PHP Extension         20060613
  13. Zend Extension         220060519
  14. Debug Build         no
  15. Thread Safety         disabled
  16. Zend Memory Manager         enabled
  17. IPv6 Support         enabled
  18. Registered PHP Streams         https, ftps, compress.zlib, compress.bzip2, php, file, data, http, ftp, zip
  19. Registered Stream Socket Transports         tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
  20. Registered Stream Filters         zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed

  21. Zend logo This program makes use of the Zend Scripting Language Engine:
  22. Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
  23.     with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
  24.     with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
复制代码

论坛徽章:
0
2 [报告]
发表于 2010-05-22 22:22 |只看该作者
typelib.c:86: error: expected ‘)’ before numeric constant

论坛徽章:
0
3 [报告]
发表于 2010-05-22 22:23 |只看该作者
1.确保您的php安装正确。phpinfo可以正常预览
2.打开您的php.ini配置文件session.save_path = “某个路径”检查该项是否配置正确,尤其确定这个目录是否存在,我们经常会遇到我们只拷过来了配置文件,没有看环境路径的问题
3.如果是WINDOWS的服务器检查temp目录的权限,请确保有internet来宾账户权限
4.使用phpinfo函数查看您的php安装情况,并检查Loaded Configuration 该项配置是否正确,如果该项显示为none

论坛徽章:
0
4 [报告]
发表于 2010-05-25 09:21 |只看该作者
OK,非常感谢您的帮助。

论坛徽章:
0
5 [报告]
发表于 2010-05-25 09:49 |只看该作者
回复 1# aselmy


    don't recommand that you automatically install apache+php like this environment.the best way is to manually install which easily diagnose and solve your installation problem.

the junior usually use yum or apt,because it is convenient to install and configure your environment.but you don't know how they work?consequently the senior mmanually install apache nginx etc.

good luck.

论坛徽章:
0
6 [报告]
发表于 2010-05-29 17:47 |只看该作者
可 分别先yum安装l其它的,php和apache等
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP