我最近安装了SSL证书来保护我们的phpmyadmin登录和数据,因为它位于公共互联网上。这工作正常,但在通过HTTPS成功登录后,此消息显示在一个粉红色的框中:
Error in Processing Request
Error code: 403
Error text: Forbidden
无法点击它,没有其他工作,唯一的选择是再次注销。同时,Apache开始在访问日志中记录大量403
/phpmyadmin/error_report.php?ajax_request=true
个错误:
123.xxx.22.170 - - [10/Jun/2015:11:47:26 +0800] "POST /phpmyadmin/db_structure.php?ajax_request=1&favorite_table=1&sync_favorite_tables=1&token=-censored- HTTP/1.1" 403 589 "https://www.-censored-.org/phpmyadmin/index.php?collation_connection=utf8mb4_general_ci&token=-censored-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36"
123.xxx.22.170 - - [10/Jun/2015:11:47:26 +0800] "GET /phpmyadmin/error_report.php?ajax_request=true&server=1&token=-censored-&get_settings=true&exception_type=js&_nocache=1433908072362921249 HTTP/1.1" 403 589 "https://www.-censored-.org/phpmyadmin/index.php?collation_connection=utf8mb4_general_ci&token=-censored-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36"
123.xxx.22.170 - - [10/Jun/2015:11:47:27 +0800] "GET /phpmyadmin/error_report.php?ajax_request=true&server=1&token=-censored-&get_settings=true&exception_type=js&_nocache=143390807256911515 HTTP/1.1" 403 589 "https://www.-censored-.org/phpmyadmin/index.php?collation_connection=utf8mb4_general_ci&token=-censored-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36"
....etc
该目录的Apache配置如下所示:
<Directory /var/www/www.--censored--.org/>
SSLOptions +StdEnvVars
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
使用Ubuntu 14.04 LTS手动安装phpmyadmin 4.4.7,Apache 2.4.7和PHP 5.5.9,来自Comodo SSL的SSL证书。
非常感谢任何帮助,到目前为止我能找到的所有建议都是我已经完成的allow from all
设置,或建议AJAX和SSL不兼容。由于phpmyadmin完全基于AJAX,这是否意味着无法通过HTTPS运行?
谢谢!