phpmyadmin (Invalid hostname for server 1. Please review your configuration)
来源:互联网 发布:杭州谷川服饰好吗知乎 编辑:程序博客网 时间:2024/06/03 03:50
from http://www.t44.nl/uncategorized/phpmyadmin-invalid-hostname-for-server-1/
phpMyAdmin was complaining about “Invalid hostname for server 1. Please review your configuration.”
The error is in /var/lib/phpmyadmin/config.inc.php and seems to be a security bug in Lenny.
$cfg['Servers'][$i]['host']=''; phpinfo();//'] = 'localhost';
should be:$cfg['Servers'][$i]['host']= 'localhost';
After saving your file, no error occurs anymore
However, this error is due to a security leak in phpMyAdmin. Upgrade your Debian and you should be fine. However, just to be sure, you can do the following:
sudo nano /usr/share/phpmyadmin/.htaccess
and paste:
<Files "config.inc.php">
Order allow,deny
Deny from all
</Files>
Save and check whether http://www.yourdomain.nl/phpmyadmin/config.inc.php gives a 403-error. If it does, you’re good
- phpmyadmin (Invalid hostname for server 1. Please review your configuration)
- phpMyAdmin The mbstring extension is missing. Please check your PHP configuration.
- phpMyAdmin - Error(The mbstring extension is missing. Please check your PHP configuration.)
- 使用phpmyadmin出现The mbstring extension is missing. Please check your PHP configuration是什么原因?
- phpmyadmin提示:The mbstring extension is missing. Please check your PHP configuration.
- 解决:phpMyAdmin:The mbstring extension is missing. Please check your PHP configuration
- phpMyAdmin 表底部出现 Connection for controluser as defined in your configuration failed.
- ubuntu 下解决phpmyadmin error: “Connection for controluser as defined in your configuration failed”
- Connection for controluser as defined in your configuration failed phpmyadmin xampp
- 解决Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the co
- hadoop出现Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name
- This app has been built with an incorrect configuration. Please configure your build for VectorDra
- This app has been built with an incorrect configuration. Please configure your build for VectorDrawa
- This app has been built with an incorrect configuration. Please configure your build for VectorDrawa
- This app has been built with an incorrect configuration. Please configure your build for VectorDrawa
- This app has been built with an incorrect configuration. Please configure your build for VectorDrawa
- This app has been built with an incorrect configuration. Please configure your build for VectorDrawa
- This app has been built with an incorrect configuration. Please configure your build for VectorDra
- 一闪一闪的企鹅,撬动了互联网的世界
- epoch time
- symbian 程序的打包(Carbide.c++_v2.0.exe+S60-SDK-0616-3.0-mr)
- 笑一笑十年少
- 空当接龙纸牌生成算法
- phpmyadmin (Invalid hostname for server 1. Please review your configuration)
- 关于域名管理别名的设置
- ATL Thunk机制学习
- Mac OS X:禁止崩溃报告
- JfreeChart和struts2集成方案
- 如果要学习JSON,
- DragonLibrary.Controls控件库 1.0.0.0 for VS2003 & 源代码
- escape、encodeURI、encodeURIComponent等方法的区别
- 将一个对话框复制到另一个VC开发的程序中