- 注册时间
- 2012-9-20
- 最后登录
- 2024-10-29
- 阅读权限
- 200
- 积分
- 5472
- 精华
- 0
- 帖子
- 1151
|
这个是LOC的朋友发布的。
安装完的效果图
需要用到的:
1、鸡鸡一台(本次的鸡鸡使用的是VPSIO的KVM,猛戳签名白色字体购买)
2、干净的系统一个(本次使用乌班图12.04 64bit)
3、官方安装脚本(见附件:仅支持附件中列出的OS)
安装过程:
1、WINSCP上传适合你鸡鸡的shell脚本
2、通过SSH以ROOT身份连接你的鸡鸡,输入以下命令:- apt-get update
- apt-get remove bind
- apt-get remove httpd
- apt-get install dos2unix
- dos2unix 脚本.sh
- chmod +x 脚本.sh
- ./脚本.sh
复制代码
shell脚本以你使用的为准,首次执行完可能会要求你重启再执行一次。
3、分别输入本机外网IP、主域名、面板域名
4、安装完成 自动重启
5、输入http://你的IP/zpanel
汉化过程:
1、通过ZPANELX面板打开PHPMYADMIN,分别选中对应的表,执行以下SQL语句- ========core库=========
- ALTER TABLE `x_accounts` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_aliases` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_bandwidth` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_cronjobs` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_distlists` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_distlistusers` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_dns` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_faqs` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_forwarders` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_ftpaccounts` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_groups` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_htaccess` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_mailboxes` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_logs` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_mailboxes` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_modcats` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_modules` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_mysql` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_mysql_databases` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_mysql_dbmap` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_mysql_users` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_packages` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_permissions` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_profiles` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_quotas` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_settings` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_translations` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `x_vhosts` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ============postfix库===========
- ALTER TABLE `admin` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `alias` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `alias_domain` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `config` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `domain` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `domain_admins` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `fetchmail` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `log` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `mailbox` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `quota` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `quota2` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `vacation` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `vacation_notification` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ============proftpd库(实际上我觉得这一部分做不做无所谓)===========
- ALTER TABLE `ftpgroup` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `ftpquotalimits` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `ftpquotatallies` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `ftpuser` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ============roundcube库===========
- ALTER TABLE `cache` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `contactgroupmembers` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `contactgroups` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `contacts` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `identities` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `messages` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `session` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
- ALTER TABLE `users` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
复制代码
出错的地方,手动改一下编码吧。
2、在zpanel目录找到Driver.class.php文件,然后打开,需找public function query($query) { try { 在try里面加入$FIXSql1 = "set character_set_server='utf8'"; $FIXSql2 = "set names 'utf8'"; $FIX = parent::query($FIXSql1); $FIX2 =parent::query($FIXSql2); 保存
在zpanel目录找到master.ztml文件,然后打开,找到<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">,修改为<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 保存
ZPANEL的目录在:/etc/zpanel/,具体子目录自己找吧。
3、选中zpanel_core库,SQL命令- ALTER TABLE `x_translations` ADD `tr_Chinese_tx` TEXT NULL;
复制代码
4、还是core库
命令代码已上传附件,比较多,自己去掉第一行。
4、返回ZPANELX编辑账号,选择Chinese语言
皮肤安装 - Bootstrap Skin For Zpanelx
1、下载附件
[size=0.83em]2012-9-26 00:52 上传
点击文件名下载附件
2、WINSCP修改/etc/zpanel/panel/etc/styles/zpanelx为zpanelx_bak
3、新建zpanelx,CHMOD 0777,上传SKIN文件
转自Mr.Ra1n 主机头分享www.zhujitou.com
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
|