每当我从 VPS 打开 phpMyAdmin 时,都会收到以下错误:
无法启动会话且没有错误,请检查 PHP 和/或 Web 服务器日志文件中给出的错误并正确配置 PHP 安装。
我已经研究过它,但似乎找不到解决方案,我已完成以下操作:
- 清除缓存和 cookies
- 检查了 php.ini(见下文)
- 检查了日志(未发现任何相关信息)
- 赋予正确的权限。[通过
sudo chown -R root:nginx /home/humza/pma
]
我正在使用 PHP-FPM 运行 Nginx,我有 php-mysql,所有东西都运行良好,但我无法让 phpMyAdmin 工作。我从 phpMyAdmin 的网站下载并解压,就这样。
http://pastebin.com/raw.php?i=6n57cW8H- 我的 php.ini 会话位
http://pastebin.com/raw.php?i=VaNP2TLi- 我的整个 php.ini
我的日志中没有任何相关内容。我的错误日志中有其他 PHP 错误,但没有这个,我的访问日志中也没有任何内容。
我已经检查了我的 nginx 日志和 PHP-FPM 日志。
我尝试通过 yum 安装 phpMyAdmin 但遇到了一大堆依赖性错误。
[root@infinity ~]# yum install phpmyadmin
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package phpMyAdmin.noarch 0:2.11.11.3-1.el5 set to be updated
--> Processing Dependency: php-mcrypt >= 4.1.0 for package: phpMyAdmin
--> Processing Dependency: php >= 4.1.0 for package: phpMyAdmin
--> Processing Dependency: php-mbstring >= 4.1.0 for package: phpMyAdmin
--> Running transaction check
---> Package php.i386 0:5.1.6-27.el5_5.3 set to be updated
--> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php
--> Processing Dependency: php-cli = 5.1.6-27.el5_5.3 for package: php
---> Package php-mbstring.i386 0:5.1.6-27.el5_5.3 set to be updated
--> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-mbstring
---> Package php-mcrypt.i386 0:5.1.6-15.el5.centos.1 set to be updated
--> Processing Dependency: php-api = 20041225 for package: php-mcrypt
--> Running transaction check
---> Package php.i386 0:5.1.6-27.el5_5.3 set to be updated
--> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php
---> Package php-cli.i386 0:5.1.6-27.el5_5.3 set to be updated
--> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-cli
---> Package php-mbstring.i386 0:5.1.6-27.el5_5.3 set to be updated
--> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-mbstring
---> Package php-mcrypt.i386 0:5.1.6-15.el5.centos.1 set to be updated
--> Processing Dependency: php-api = 20041225 for package: php-mcrypt
--> Finished Dependency Resolution
php-5.1.6-27.el5_5.3.i386 from base has depsolving problems
--> Missing Dependency: php-common = 5.1.6-27.el5_5.3 is needed by package php-5.1.6-27.el5_5.3.i386 (base)
php-cli-5.1.6-27.el5_5.3.i386 from base has depsolving problems
--> Missing Dependency: php-common = 5.1.6-27.el5_5.3 is needed by package php-cli-5.1.6-27.el5_5.3.i386 (base)
php-mbstring-5.1.6-27.el5_5.3.i386 from base has depsolving problems
--> Missing Dependency: php-common = 5.1.6-27.el5_5.3 is needed by package php-mbstring-5.1.6-27.el5_5.3.i386 (base)
php-mcrypt-5.1.6-15.el5.centos.1.i386 from extras has depsolving problems
--> Missing Dependency: php-api = 20041225 is needed by package php-mcrypt-5.1.6-15.el5.centos.1.i386 (extras)
Error: Missing Dependency: php-api = 20041225 is needed by package php-mcrypt-5.1.6-15.el5.centos.1.i386 (extras)
Error: Missing Dependency: php-common = 5.1.6-27.el5_5.3 is needed by package php-cli-5.1.6-27.el5_5.3.i386 (base)
Error: Missing Dependency: php-common = 5.1.6-27.el5_5.3 is needed by package php-5.1.6-27.el5_5.3.i386 (base)
Error: Missing Dependency: php-common = 5.1.6-27.el5_5.3 is needed by package php-mbstring-5.1.6-27.el5_5.3.i386 (base)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
[root@infinity ~]#
有任何想法吗?
答案1
session.save_path = "/var/lib/php/session"
运行 PHP 的用户帐户是否对该目录具有读/写权限?