Posted by zuzhihui in 控制面板 on 2013/11/21 with 1 Comment
怎样升级Kloxo控制面板里面PHP?我们提供的vps的Kloxo控制面板集成的PHP版本是5.2.6,本文介绍怎样升级到PHP 5.3和php5.4
升级到5.3
wget http://dl.iuscommunity.org/pub/ius/stable/CentOS/5/i386/ius-release-1.0-11.ius.centos5.noarch.rpm
wget http://dl.iuscommunity.org/pub/ius/stable/CentOS/5/i386/epel-release-5-4.noarch.rpm
rpm -ivh epel-release-5-4.noarch.rpm ius-release-1.0-11.ius.centos5.noarch.rpm
yum -y remove php php-common
yum -y install php53u php53u-cli php53u-devel php53u-gd php53u-imap php53u-mbstring php53u-mcrypt php53u-mysql php53u-pdo php53u-pear php53u-xml
升级到5.4
wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/el5.i386/remi-release-5-9.el5.remi.noarch.rpm
rpm -ivh remi-release-5-9.el5.remi.noarch.rpm epel-release-5-4.noarch.rpm
yum –enablerepo=remi install php-mbstring php-mhash php-mcrypt
另外修改下my.cnf注释掉下面3个配置
#skip-locking
#skip-bdb
#skip-innodb
Posted by zuzhihui in 控制面板 on 2013/11/21 with No Comments
怎样转移安装了Kloxo控制面板的VPS或者服务器到另外一台服务器上面去?要求转移之后,以前在Kloxo上配置的网站还能正常打开,不需要重新配置。Kloxo控制面板的默认管理员用户是admin,如果在控制面板上创建了多个用户,怎么转移?
如果新建了多个client,下面的文件和目录都转到新服务器上就可以了
/usr/local/lxlabs/kloxo/etc/conf/kloxo.pass
/usr/local/lxlabs/kloxo/etc/slavedb/dbadmin
/etc/pure-ftpd/pureftpd.passwd
/etc/passwd
/etc/passwd-
/etc/group
/etc/group-
/etc/shadow
/etc/shadow-
/var/lib/mysql
/var/qmail
/home
注意:
文件比较多,建议把单个文件直接打包之后移动
/var/lib/msyql 需要在关闭mysql的情况下打包这个目录
/home目录一般比较大,用rsync同步比较好
在上面的数据转到新服务器上之后,执行下面的命令fixweb下,然后重启apache
/script/fixweb
/etc/init.d/httpd restart
完成上面的操作之后,新服务器上的网站就可以访问了
Posted by zuzhihui in 域名 on 2013/11/15 with No Comments
新注册.dk域名后,.dk域名注册局会给注册人发一封Email,注册人需要按照Email里面的要求确认后才可以使用域名。没有确认的.dk域名是无法正常使用的。
如果客户没有收到注册局发的Email,可以提交服务单,让瑞豪开源的客服到后台查看域名的信息,并帮助确认一下即可。
如果.dk域名注册后3个月内没有确认,域名将被删除,并且不退款。确认过程如下:
To activate your registered .DK domain, please proceed as follows:
1. Visit http://dk-hostmaster.dk
2. Log in with the Login and Pincode you received by mail.
3. You will get to your “domain name list”, where your domain name(s), status, and expiration date is listed.
4. Click on your domain name.
5. You will see a site called “domain name information”, where the contact and nameserver information to your domain is listed.
6. On the right, you will find a Danish link: “aktiver domænenavnet”. Click it.
7. You will have to re-enter your Login and Pincode.
8. WARNING! The following steps are only available in Danish! Don’t click on the English link, it will guide you to the start page!
The first page again shows your owner contact data, which you have to confirm. After this confirmation, you will get a red warning message that your contact data will be provided in the official DK-WHOIS. The next page shows you 2 text areas with the General Terms and Agreements and the Policies of the .DK domain names. You have to scroll down and “read” those text areas. Then you have to click the second choose button below the text areas, which says that you have read and understood the Policies. Then you can click to the next page. The next (and last) page shows your domain name again and a checkbox. Please check the checkbox and click to the next step. Now your domain name is activated. You will receive another Danish email, confirming the activation of your domain.
Posted by zuzhihui in 互联网技术 on 2013/11/12 with No Comments
Zen Cart网站被坏人利用发送垃圾邮件怎么办? 这种情况一般是由于Zen Cart的Tell a friend功能的漏洞导致的。下面介绍怎么关闭这个Tell a friend功能。(本文参考了http://www.qicai.us/close-tell-a-friend-in-zen-cart-1-3-x)
为什么要关闭 tell a friend 功能,目的就是防止被人用来发垃圾邮件 Spam,导致服务器被投诉,轻则被服务器提供商警告,严重的就会被服务器提供商关闭账号了,有排名的站如果经此折腾,将导致损失惨重。
Zen Cart V1.5 已经去掉了 Tell a Friend 功能,因此不用设置。
以下设置只针对 Zen Cart V1.3.x 的版本。
第一步:打开 Tools –> Install SQL Patch 执行以下语句
UPDATE product_type_layout SET configuration_value="0" WHERE configuration_key="SHOW_PRODUCT_INFO_TELL_A_FRIEND";
UPDATE product_type_layout SET configuration_value="0" WHERE configuration_key="SHOW_PRODUCT_MUSIC_INFO_TELL_A_FRIEND";
UPDATE product_type_layout SET configuration_value="0" WHERE configuration_key="SHOW_DOCUMENT_GENERAL_INFO_TELL_A_FRIEND";
UPDATE product_type_layout SET configuration_value="0" WHERE configuration_key="SHOW_DOCUMENT_PRODUCT_INFO_TELL_A_FRIEND";
UPDATE product_type_layout SET configuration_value="0" WHERE configuration_key="SHOW_PRODUCT_FREE_SHIPPING_INFO_TELL_A_FRIEND";
UPDATE layout_boxes SET layout_box_status="0" WHERE layout_box_name="tell_a_friend.php";
友情提示:SQL语句里的表名如果你安装的时候设置了表前缀的,记得修改表前缀,否则会执行失败的。
第二步: 创建一个名为 deny_tell_a_friend.php 的文件,保存到目录 includesfunctionsextra_functions 里,文件内容如下
<?php
if ($_GET["main_page"] == FILENAME_TELL_A_FRIEND) {
zen_redirect(zen_href_link(FILENAME_DEFAULT));
}
?>
程序功能说明:当垃圾程序调用网站的 tell a friend 功能的时候,就自动跳转到网站首页,使其无法得逞。
上传 deny_tell_a_friend.php 到Zen Cart 安装目录的 includesfunctionsextra_functions 里。
近期评论