Rootop 服务器运维与web架构

2011-01-17
发表者 Venus
暂无评论

[warn] NameVirtualHost 1.1.1.2:80 has no VirtualHosts

[warn] NameVirtualHost 1.1.1.2:80 has no VirtualHosts

在阿帕奇中配置的虚拟主机,重启服务的时候报以上的错误。

配置文件如下:

NameVirtualHost 1.1.1.2:80
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#

<VirtualHost www2.dz.com:80>
Serveradmin
venuslinux@gmail.com
Servername www2.dz.com
Documentroot /wz/dz
Errorlog logs/error_log
Customlog logs/access_log common
Directoryindex index.php
</VirtualHost>

网上搜索的结果大多都是因为namevirtualhost 配置了多遍,导致的错误,但是我就配置了一次。

然后有一条解决方法还靠谱,屏蔽这一行试试,结果可以,但是郁闷中,这是为啥子呢?

随后用dig解析www2.dz.com 随后发现忘记配置dns,加上后,然后又解除namevirtualhost屏蔽后,重启OK了。原来是因为阿帕奇重启的时候会去查询虚拟主机的信息,因为是基于域名的虚拟主机嘛。

2011-01-14
发表者 Venus
暂无评论

内部错误,无法显示此内容 SQL:SELECT value FROM [Table]vars WHERE name=’noteexists1′

内部错误,无法显示此内容

UCenter info: MySQL Query Error
SQL:SELECT value FROM [Table]vars WHERE name=’noteexists1′
Error:Table ‘dz.dz_ucenter_vars’ doesn’t exist
Errno:1146

检查discuz的config_ucenter.php 文件中的配置。我的错误原因出现在数据库地址上,修改后没问题了。

define(‘UC_DBHOST’, ‘1.1.1.1’);

2011-01-13
发表者 Venus
暂无评论

Rose HA connect error

登陆备机热备软件时,提示:Rose HA connect error

开始没找到问题所在,将Cluster Monitor Service 服务,及Cluster Service (此服务重启时遇到问题,没成功)重启一遍,再次登陆OK了。

这双机软件···不用也罢。。。

2011-01-11
发表者 Venus
暂无评论

配置文件现在需要绝密的短语密码(blowfish_secret)。

      在登录phpmyadmin时,出现“配置文件现在需要绝密的短语密码(blowfish_secret)”错误提示。

       解决方法:到phpmyadmin里面找到config.inc.php文件,查找$cfg[‘blowfish_secret’]=’ ‘ 语句。在其单引号里面随便输入一些数字或字母(默认为空),最后保存。再到phpmyadmin\libraries目录下找到config.default.php文件。对其进行同样的操作。

       总结:

出现这样的错误,原因在于我们将config.inc.php和config.default.php里面的$cfg[‘Servers’][$i][‘auth_type’]设置为cookie(默认为config,但这样不是很安全,所以有必要改为cookie)而$cfg[‘blowfish_secret’]却是空的。既然将$cfg[‘Servers’][$i][‘auth_type’]设置为cookie,那么就应该通过某个cookie来访问它,这正是通过$cfg[‘blowfish_secret’]来设置。所以$cfg[‘blowfish_secret’]不能为空。