热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

phpMyAdmin不能在CentOS6.5上运行PHP5.5.8。-phpMyAdmincan'trunonCentOS6.5withPHP5.5.8

IhaveaCentOS6.5x64serverrunningnginx1.0.15,PHP(FPMFastCGI)5.5.8andMySQL5.5.35.我有一个C

I have a CentOS 6.5 x64 server running nginx 1.0.15, PHP (FPM/FastCGI) 5.5.8 and MySQL 5.5.35.

我有一个CentOS 6.5 x64服务器运行nginx 1.0.15, PHP (FPM/FastCGI) 5.5.8和MySQL 5.5.35。

I've installed phpMyAdmin 4.1.5 and configured an nginx vhost with the html_root linked with a symlink to the directory of phpMyAdmin.

我安装了phpMyAdmin 4.1.5,并配置了带有html_root的nginx vhost与phpMyAdmin目录的符号链接。

My problem is that when I open the address (https://172.28.65.80:8060) I get from phpMyAdmin this error:

我的问题是,当我打开地址(https://172.28.65.8:8060)时,我从phpMyAdmin那里得到这个错误:

Fatal error: Call to undefined function __() in /usr/share/phpMyAdmin/libraries/core.lib.php on line 229

What am I doing wrong?

我做错了什么?

Edit:

编辑:

If I try to run phpMyAdmin from console using php (not php-fpm) it says:

如果我尝试使用php(而不是php-fpm)从控制台运行phpMyAdmin,它会说:

# php /usr/share/phpMyAdmin/index.php

Warning: require(./libraries/Error_Handler.class.php): failed to open stream: No such file or directory in /usr/share/phpMyAdmin/libraries/common.inc.php on line 57

Fatal error: require(): Failed opening required './libraries/Error_Handler.class.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/phpMyAdmin/libraries/common.inc.php on line 57

obviously Error_Handler.class.php is correctly stored in /usr/share/phpMyAdmin/libraries/

显然Error_Handler.class。php被正确地存储在/usr/share/phpMyAdmin/libraries/中。

Edit2:

Edit2:

This is the configuration of the virtualhost used by phpMyAdmin:

这是phpMyAdmin使用的虚拟主机的配置:

#
# HTTPS phpmyadmin virtual host configuration
#

server {
    listen       8060;
    server_name  172.28.65.80;

    ssl                  on;
    ssl_certificate      /root/rootCA.pem;
    ssl_certificate_key  /root/rootCA.key;

    ssl_session_timeout  5m;

    ssl_protocols  SSLv2 SSLv3 TLSv1;
    ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
    ssl_prefer_server_ciphers   on;

    location / {
        root   /usr/share/phpMyAdmin;
        index  index.php;
    }

    location ~ \.php$ {
         root           /usr/share/phpMyAdmin;
         fastcgi_pass   unix:/var/run/php-fpm.sock;
         fastcgi_index  index.php;
         fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
         include        fastcgi_params;
    }

}

Edit3:

Edit3:

These are the permissions of the phpMyAdmin files:

这些是phpMyAdmin文件的权限:

# ll
total 692
-rw-r--r--.  1 nginx nginx  1569 Jan 17 14:21 browse_foreigners.php
-rw-r--r--.  1 nginx nginx  4829 Jan 17 14:21 changelog.php
-rw-r--r--.  1 nginx nginx   308 Jan 17 14:21 chk_rel.php
-rw-r--r--.  1 nginx nginx   852 Jan 17 14:21 composer.json
-rwxr-xr-x.  1 nginx nginx  4236 Jan 23 15:18 config.inc.php
-rw-r--r--.  1 nginx nginx  4236 Jan 17 14:21 config.sample.inc.php
-rw-r--r--.  1 nginx nginx  4178 Jan 17 14:21 db_create.php
-rw-r--r--.  1 nginx nginx  8870 Jan 17 14:21 db_datadict.php
-rw-r--r--.  1 nginx nginx   401 Jan 17 14:21 db_events.php
-rw-r--r--.  1 nginx nginx  2788 Jan 17 14:21 db_export.php
-rw-r--r--.  1 nginx nginx   505 Jan 17 14:21 db_import.php
-rw-r--r--.  1 nginx nginx  9297 Jan 17 14:21 db_operations.php
-rw-r--r--.  1 nginx nginx  5269 Jan 17 14:21 db_printview.php
-rw-r--r--.  1 nginx nginx  1987 Jan 17 14:21 db_qbe.php
-rw-r--r--.  1 nginx nginx   454 Jan 17 14:21 db_routines.php
-rw-r--r--.  1 nginx nginx  1636 Jan 17 14:21 db_search.php
-rw-r--r--.  1 nginx nginx   872 Jan 17 14:21 db_sql.php
-rw-r--r--.  1 nginx nginx  9465 Jan 17 14:21 db_structure.php
-rw-r--r--.  1 nginx nginx  8277 Jan 17 14:21 db_tracking.php
-rw-r--r--.  1 nginx nginx   364 Jan 17 14:21 db_triggers.php
drwxr-xr-x.  5 nginx nginx  4096 Jan 23 15:00 doc
-rw-r--r--.  1 nginx nginx  3122 Jan 17 14:21 error_report.php
drwxr-xr-x.  2 nginx nginx  4096 Jan 23 15:00 examples
-rw-r--r--.  1 nginx nginx 37639 Jan 17 14:21 export.php
-rw-r--r--.  1 nginx nginx 18902 Jan 17 14:21 favicon.ico
-rw-r--r--.  1 nginx nginx  2143 Jan 17 14:21 file_echo.php
-rw-r--r--.  1 nginx nginx 15581 Jan 17 14:21 gis_data_editor.php
-rw-r--r--.  1 nginx nginx 21171 Jan 17 14:21 import.php
-rw-r--r--.  1 nginx nginx  2679 Jan 17 14:21 import_status.php
-rw-r--r--.  1 nginx nginx 19846 Jan 17 14:21 index.php
drwxr-xr-x.  9 nginx nginx  4096 Jan 23 15:00 js
drwxr-xr-x. 13 nginx nginx 12288 Jan 23 15:00 libraries
-rw-r--r--.  1 nginx nginx   728 Jan 17 14:21 license.php
drwxr-xr-x. 42 nginx nginx  4096 Jan 23 15:00 locale
-rw-r--r--.  1 nginx nginx  1988 Jan 17 14:21 navigation.php
-rw-r--r--.  1 nginx nginx   389 Jan 17 14:21 phpinfo.php
-rw-r--r--.  1 nginx nginx   746 Jan 17 14:21 phpmyadmin.css.php
-rw-r--r--.  1 nginx nginx  1808 Jan 17 14:21 phpunit.xml.nocoverage
-rw-r--r--.  1 nginx nginx  2051 Jan 17 14:21 pmd_display_field.php
-rw-r--r--.  1 nginx nginx 36692 Jan 17 14:21 pmd_general.php
-rw-r--r--.  1 nginx nginx  5081 Jan 17 14:21 pmd_pdf.php
-rw-r--r--.  1 nginx nginx  4560 Jan 17 14:21 pmd_relation_new.php
-rw-r--r--.  1 nginx nginx  2194 Jan 17 14:21 pmd_relation_upd.php
-rw-r--r--.  1 nginx nginx  2589 Jan 17 14:21 pmd_save_pos.php
-rw-r--r--.  1 nginx nginx  2594 Jan 17 14:21 prefs_forms.php
-rw-r--r--.  1 nginx nginx 14308 Jan 17 14:21 prefs_manage.php
-rw-r--r--.  1 nginx nginx  1213 Jan 17 14:21 print.css
-rw-r--r--.  1 nginx nginx  6222 Jan 17 14:21 querywindow.php
-rw-r--r--.  1 nginx nginx  4004 Jan 17 14:21 schema_edit.php
-rw-r--r--.  1 nginx nginx  1734 Jan 17 14:21 schema_export.php
-rw-r--r--.  1 nginx nginx  1075 Jan 17 14:21 server_binlog.php
-rw-r--r--.  1 nginx nginx   735 Jan 17 14:21 server_collations.php
-rw-r--r--.  1 nginx nginx  2634 Jan 17 14:21 server_databases.php
-rw-r--r--.  1 nginx nginx   615 Jan 17 14:21 server_engines.php
-rw-r--r--.  1 nginx nginx   698 Jan 17 14:21 server_export.php
-rw-r--r--.  1 nginx nginx   452 Jan 17 14:21 server_import.php
-rw-r--r--.  1 nginx nginx  1465 Jan 17 14:21 server_plugins.php
-rw-r--r--.  1 nginx nginx 11668 Jan 17 14:21 server_privileges.php
-rw-r--r--.  1 nginx nginx  2054 Jan 17 14:21 server_replication.php
-rw-r--r--.  1 nginx nginx   577 Jan 17 14:21 server_sql.php
-rw-r--r--.  1 nginx nginx   889 Jan 17 14:21 server_status_advisor.php
-rw-r--r--.  1 nginx nginx  3538 Jan 17 14:21 server_status_monitor.php
-rw-r--r--.  1 nginx nginx  1369 Jan 17 14:21 server_status.php
-rw-r--r--.  1 nginx nginx  1663 Jan 17 14:21 server_status_queries.php
-rw-r--r--.  1 nginx nginx  1507 Jan 17 14:21 server_status_variables.php
-rw-r--r--.  1 nginx nginx  1625 Jan 17 14:21 server_user_groups.php
-rw-r--r--.  1 nginx nginx  1283 Jan 17 14:21 server_variables.php
drwxr-xr-x.  4 nginx nginx  4096 Jan 23 15:00 setup
-rw-r--r--.  1 nginx nginx  1039 Jan 17 14:21 show_config_errors.php
-rw-r--r--.  1 nginx nginx  5507 Jan 17 14:21 sql.php
-rw-r--r--.  1 nginx nginx  3474 Jan 17 14:21 tbl_addfield.php
-rw-r--r--.  1 nginx nginx  5763 Jan 17 14:21 tbl_change.php
-rw-r--r--.  1 nginx nginx  4400 Jan 17 14:21 tbl_chart.php
-rw-r--r--.  1 nginx nginx  2650 Jan 17 14:21 tbl_create.php
-rw-r--r--.  1 nginx nginx  2880 Jan 17 14:21 tbl_export.php
-rw-r--r--.  1 nginx nginx  1657 Jan 17 14:21 tbl_find_replace.php
-rw-r--r--.  1 nginx nginx  1334 Jan 17 14:21 tbl_get_field.php
-rw-r--r--.  1 nginx nginx  3452 Jan 17 14:21 tbl_gis_visualization.php
-rw-r--r--.  1 nginx nginx   590 Jan 17 14:21 tbl_import.php
-rw-r--r--.  1 nginx nginx  1205 Jan 17 14:21 tbl_indexes.php
-rw-r--r--.  1 nginx nginx  2828 Jan 17 14:21 tbl_move_copy.php
-rw-r--r--.  1 nginx nginx 12498 Jan 17 14:21 tbl_operations.php
-rw-r--r--.  1 nginx nginx  1474 Jan 17 14:21 tbl_printview.php
-rw-r--r--.  1 nginx nginx  4616 Jan 17 14:21 tbl_relation.php
-rw-r--r--.  1 nginx nginx 13504 Jan 17 14:21 tbl_replace.php
-rw-r--r--.  1 nginx nginx  3904 Jan 17 14:21 tbl_row_action.php
-rw-r--r--.  1 nginx nginx  2175 Jan 17 14:21 tbl_select.php
-rw-r--r--.  1 nginx nginx  1014 Jan 17 14:21 tbl_sql.php
-rw-r--r--.  1 nginx nginx  4577 Jan 17 14:21 tbl_structure.php
-rw-r--r--.  1 nginx nginx  3927 Jan 17 14:21 tbl_tracking.php
-rw-r--r--.  1 nginx nginx   144 Jan 17 14:21 tbl_triggers.php
-rw-r--r--.  1 nginx nginx  5996 Jan 17 14:21 tbl_zoom_select.php
drwxr-xr-x.  4 nginx nginx  4096 Jan 23 15:00 themes
-rw-r--r--.  1 nginx nginx   863 Jan 17 14:21 themes.php
-rw-r--r--.  1 nginx nginx  1348 Jan 17 14:21 transformation_overview.php
-rw-r--r--.  1 nginx nginx  3961 Jan 17 14:21 transformation_wrapper.php
-rw-r--r--.  1 nginx nginx   507 Jan 17 14:21 url.php
-rw-r--r--.  1 nginx nginx  6883 Jan 17 14:21 user_password.php
-rw-r--r--.  1 nginx nginx   550 Jan 17 14:21 version_check.php
-rw-r--r--.  1 nginx nginx  8914 Jan 17 14:21 view_create.php
-rw-r--r--.  1 nginx nginx  3613 Jan 17 14:21 view_operations.php
-rw-r--r--.  1 nginx nginx  1128 Jan 17 14:21 webapp.php

5 个解决方案

#1


9  

I've found the solution.

我发现解决方案。

The /var/lib/php/session/ folder was not writeable by nginx/php-fpm, I've just edited the permissions to 777 and now it works.

这个/var/lib/php/session/文件夹不是nginx/php-fpm写的,我刚刚编辑了对777的权限,现在它可以工作了。

#2


1  

Not sure why, but I could solve this issue only when made chmod 755 to file config.inc.php

我不知道为什么,但是我可以解决这个问题,只有当chmod 755到file config.inc.php。

#3


0  

Make sure gettext is listed in php -m and if not install it.

确保gettext在php -m中列出,如果不安装它。

#4


0  

@Fez Vrasta

@Fez Vrasta

How did you do to install and get to run it... I'm dying in here... I've tryed manually and nginx never got to see the files... and I've tryed almost everything. symlinks, directly in root folder.

你是如何安装和运行它的?我死在这里……我已经手动输入了,nginx从来没有看到过文件…我几乎把所有的事情都搞砸了。符号链接,直接在根文件夹中。

And If I try to install from the public repositories I get things like this at the end:

如果我尝试从公共存储库中安装,我最终会得到这样的东西:

Error: Package: phpMyAdmin-4.1.6-1.el6.remi.noarch (remi)
       Requires: php-gmp
       Available: php-common-5.3.3-26.el6.i686 (base)
           php-gmp
       Available: php-common-5.3.3-27.el6_5.i686 (updates)
           php-gmp
       Available: php-common-5.4.23-1.el6.remi.i686 (remi)
           php-gmp
       Available: php-common-5.4.24-1.el6.remi.i686 (remi)
           php-gmp
       Installed: php-common-5.5.8-1.el6.remi.i686 (@remi-php55)
           Not found
Error: Package: php-tidy-5.4.24-1.el6.remi.i686 (remi)
       Requires: php-common(x86-32) = 5.4.24-1.el6.remi
       Installed: php-common-5.5.8-1.el6.remi.i686 (@remi-php55)
           php-common(x86-32) = 5.5.8-1.el6.remi
       Available: php-common-5.3.3-26.el6.i686 (base)
           php-common(x86-32) = 5.3.3-26.el6
       Available: php-common-5.3.3-27.el6_5.i686 (updates)
           php-common(x86-32) = 5.3.3-27.el6_5
       Available: php-common-5.4.23-1.el6.remi.i686 (remi)
           php-common(x86-32) = 5.4.23-1.el6.remi
       Available: php-common-5.4.24-1.el6.remi.i686 (remi)
           php-common(x86-32) = 5.4.24-1.el6.remi
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

===================================

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

My LEMP settings:

我LEMP设置:

  • Centos 6.5
  • Centos 6.5
  • Php 5.5.8
  • Php 5.5.8
  • Nginx
  • Nginx
  • MySQL 5.1.71
  • MySQL 5.1.71

===================================

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

#5


0  

The /var/lib/php/session/ folder was not writeable by nginx/php-fpm, I've just edited the permissions to 777 and now it works.

这个/var/lib/php/session/文件夹不是nginx/php-fpm写的,我刚刚编辑了对777的权限,现在它可以工作了。

This solution helped!

这个解决方案帮助!


推荐阅读
  • Nginx使用AWStats日志分析的步骤及注意事项
    本文介绍了在Centos7操作系统上使用Nginx和AWStats进行日志分析的步骤和注意事项。通过AWStats可以统计网站的访问量、IP地址、操作系统、浏览器等信息,并提供精确到每月、每日、每小时的数据。在部署AWStats之前需要确认服务器上已经安装了Perl环境,并进行DNS解析。 ... [详细]
  • 搭建Windows Server 2012 R2 IIS8.5+PHP(FastCGI)+MySQL环境的详细步骤
    本文详细介绍了搭建Windows Server 2012 R2 IIS8.5+PHP(FastCGI)+MySQL环境的步骤,包括环境说明、相关软件下载的地址以及所需的插件下载地址。 ... [详细]
  • Centos7.6安装Gitlab教程及注意事项
    本文介绍了在Centos7.6系统下安装Gitlab的详细教程,并提供了一些注意事项。教程包括查看系统版本、安装必要的软件包、配置防火墙等步骤。同时,还强调了使用阿里云服务器时的特殊配置需求,以及建议至少4GB的可用RAM来运行GitLab。 ... [详细]
  • http:my.oschina.netleejun2005blog136820刚看到群里又有同学在说HTTP协议下的Get请求参数长度是有大小限制的,最大不能超过XX ... [详细]
  • 本文介绍了Web学习历程记录中关于Tomcat的基本概念和配置。首先解释了Web静态Web资源和动态Web资源的概念,以及C/S架构和B/S架构的区别。然后介绍了常见的Web服务器,包括Weblogic、WebSphere和Tomcat。接着详细讲解了Tomcat的虚拟主机、web应用和虚拟路径映射的概念和配置过程。最后简要介绍了http协议的作用。本文内容详实,适合初学者了解Tomcat的基础知识。 ... [详细]
  • 在重复造轮子的情况下用ProxyServlet反向代理来减少工作量
    像不少公司内部不同团队都会自己研发自己工具产品,当各个产品逐渐成熟,到达了一定的发展瓶颈,同时每个产品都有着自己的入口,用户 ... [详细]
  • 如何在服务器主机上实现文件共享的方法和工具
    本文介绍了在服务器主机上实现文件共享的方法和工具,包括Linux主机和Windows主机的文件传输方式,Web运维和FTP/SFTP客户端运维两种方式,以及使用WinSCP工具将文件上传至Linux云服务器的操作方法。此外,还介绍了在迁移过程中需要安装迁移Agent并输入目的端服务器所在华为云的AK/SK,以及主机迁移服务会收集的源端服务器信息。 ... [详细]
  • imx6ull开发板驱动MT7601U无线网卡的方法和步骤详解
    本文详细介绍了在imx6ull开发板上驱动MT7601U无线网卡的方法和步骤。首先介绍了开发环境和硬件平台,然后说明了MT7601U驱动已经集成在linux内核的linux-4.x.x/drivers/net/wireless/mediatek/mt7601u文件中。接着介绍了移植mt7601u驱动的过程,包括编译内核和配置设备驱动。最后,列举了关键词和相关信息供读者参考。 ... [详细]
  • 本文介绍了在Linux下安装和配置Kafka的方法,包括安装JDK、下载和解压Kafka、配置Kafka的参数,以及配置Kafka的日志目录、服务器IP和日志存放路径等。同时还提供了单机配置部署的方法和zookeeper地址和端口的配置。通过实操成功的案例,帮助读者快速完成Kafka的安装和配置。 ... [详细]
  • 本文详细介绍了SQL日志收缩的方法,包括截断日志和删除不需要的旧日志记录。通过备份日志和使用DBCC SHRINKFILE命令可以实现日志的收缩。同时,还介绍了截断日志的原理和注意事项,包括不能截断事务日志的活动部分和MinLSN的确定方法。通过本文的方法,可以有效减小逻辑日志的大小,提高数据库的性能。 ... [详细]
  • 本文介绍了在开发Android新闻App时,搭建本地服务器的步骤。通过使用XAMPP软件,可以一键式搭建起开发环境,包括Apache、MySQL、PHP、PERL。在本地服务器上新建数据库和表,并设置相应的属性。最后,给出了创建new表的SQL语句。这个教程适合初学者参考。 ... [详细]
  • 本文介绍了RPC框架Thrift的安装环境变量配置与第一个实例,讲解了RPC的概念以及如何解决跨语言、c++客户端、web服务端、远程调用等需求。Thrift开发方便上手快,性能和稳定性也不错,适合初学者学习和使用。 ... [详细]
  • 计算机存储系统的层次结构及其优势
    本文介绍了计算机存储系统的层次结构,包括高速缓存、主存储器和辅助存储器三个层次。通过分层存储数据可以提高程序的执行效率。计算机存储系统的层次结构将各种不同存储容量、存取速度和价格的存储器有机组合成整体,形成可寻址存储空间比主存储器空间大得多的存储整体。由于辅助存储器容量大、价格低,使得整体存储系统的平均价格降低。同时,高速缓存的存取速度可以和CPU的工作速度相匹配,进一步提高程序执行效率。 ... [详细]
  • 本文介绍了计算机网络的定义和通信流程,包括客户端编译文件、二进制转换、三层路由设备等。同时,还介绍了计算机网络中常用的关键词,如MAC地址和IP地址。 ... [详细]
  • web.py开发web 第八章 Formalchemy 服务端验证方法
    本文介绍了在web.py开发中使用Formalchemy进行服务端表单数据验证的方法。以User表单为例,详细说明了对各字段的验证要求,包括必填、长度限制、唯一性等。同时介绍了如何自定义验证方法来实现验证唯一性和两个密码是否相等的功能。该文提供了相关代码示例。 ... [详细]
author-avatar
沈智强619
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有