六个免费的虚拟主机管理系统

2010年8月29日 香草吧噗 31 views 没有评论

在此之前一直在苦苦寻找免费或者破解的类似于DirectAdmin的虚拟主机管理系统,没想到开源界已经产生了如此多优秀的免费的虚拟主机管理系统:ZPanel,web-cp,VHCS,virtualmin,PHPMyWebHosting,SysCP。
1. ZPanel – 在Windows下的免费Hosting Panel
ZPanel已经更名为RapidCP,最新版本为RapidCP 3.0
网址:

http://sourceforge.net/projects/zpanel/
http://www.rapidcp.com/
RapidCP新功能介绍:http://www.rapidcp.com/features/
ZPanel 2.6 is the latest stable release. It is recommended for production environments.
RapidCP 3.0 is the latest beta release. It is intended for testing purposes only.

2. web-cp – *nix的虚拟主机管理
网址:
http://sourceforge.net/projects/webcp/
http://www.web-cp.net/
用PHP-CLI写的一个Web服务器
支持多种脚本Scripting PHP,sun asp,cf,perl…
支持shell access
支持 SSI
支持.htacess
支持多种DNS服务 bind,powerdns,mydns,tinydns
完全使用PHP开发,支持Shell Access
要安装PHP CLI(Command-LIne ) 控制面板的后端服务器 server/webcp.php 和 httpd服务器 server/webcp-httpd.php 都需要 PHP CLI二进制支持,以便能够操作系统进程
个人:个人信息,密码,邮件,ftp
域:允许域的所有者在该域下增删用户,设定别名,子域名,数据库
销售商:增加domain
服务器: 监视服务,管理服务

3. VHCS – Virtual Hosting Control System
支持*nix系统的,用Perl和C实现核心功能,PHP实现管理界面。
网址:
http://sourceforge.net/projects/vhcs/
http://www.vhcs.net/

4、webmin的虚拟主机管理模块virtualmin
webmin是一个可运行于Linux/freebsd的web界面的主机管理系统,有中文包
而virtualmin则是它的一个虚拟主机管理模块,提供中文支持。
webmin官方站: http://www.webmin.com/
virtaulmin站点: http://www.swelltech.com/virtualmin/

5、基于php/mysql的虚拟主机控制程序PHPMyWebHosting
PHPMyWebHosting是个开源的,基于php/mysql的虚拟主机控制面板程序,你可以用它建立带有邮箱,mysql支持的多域名虚拟主机,它须建立在Linux/freebsd之上,不支持windows。
安装phpmywebhosting你必须拥有系统管理员(root)权限,并依次安装以下套件:
MySQL
Apache and PHP
Postfix
Maildrop
Courier
ProFTPd
PHPMyWebHosting
官方站上有基于各平台详细的安装说明 http://www.ladse.de
phpmywebhosting下载:http://www.ladse.de/index.php/Files

6、SysCP虚拟主机管理系统[全php版]
1.有中文包
2.admin,reseller,client 三级管理
3.全部为php代码构成
4.有不少模块(modules)供选择安装
5.开源,免费(基于GPL)
6.Linux/bsd环境,特别是debian(最初是专为它开发的)
是德国人写的,有简体中文,英文,法文,德文语言包,是多语言的
具有以下特性:
Customer Interface
* managing email accounts
* managing email forwarders
* managing subdomains
* managing mysql databases
* managing additional ftp account
* managing .htaccess password protections for directories
* managing path options for example directorylisting
Admin Interface:
* managing of customers: you can define exactly what kind of resources your customers get (e.g. amount of pop accounts, amount of mysql databases etc.)
* manage domains: you can individualy edit zone files and directory index per domain
支持以下配套服务器或引擎:
# webserver: [Apache 1.3] with [PHP4] (apache2.0.x也可以)
# mail transfer agent: [Postfix]
# pop/imap server: [Courier]
# ftp server: [ProFTPd]
# database server: [MySQL]
# nameserver: [Bind9]
# traffic accounting and statistics: [Webalizer]
官方站:http://www.syscp.de/
下载:http://www.syscp.de/wiki/EnDownloads
模块下载:http://modules.syscp.de/
在线演示:http://www.syscp.de/onlinedemo/index.php#p#副标题#e#
Webmin是目前功能最强大的基于Web的Unix系统管理工具
Webmin 是目前功能最强大的基于Web的Unix系统管理工具。管理员通过浏览器访问Webmin的各种管理功能并完成相应的管理动作。目前Webmin支持绝大 多数的Unix系统,这些系统除了各种版本的linux以为还包括:AIX、HPUX、Solaris、Unixware、Irix和FreeBSD等。
Webmin 让您能够在远程使用支持 HTTPS (SSL 上的 HTTP)协议的 Web 浏览器通过 Web 界面管理您的主机。这在保证了安全性的前提下提供了简单深入的远程管理。这使得 Webmin 对系统管理员非常理想,因为所有主流平台都有满足甚至超出上述需求的 Web 浏览器。而且,Webmin 有其自己的“Web 服务器”,因此不需要运行第三方软件(比如 Web服务器)。万事具备。Webmin 的模块化架构允许您在需要时编写您自己的配置模块。除了在此介绍的模块之外,Webmin 还包括许多模块。尽管目前我们将主要关注网络服务,但是您会看到,几乎您系统的每一部分都能够通过 Webmin 来配置和管理。
开源主机/虚拟主机管理系统

ISPCONFIG:安装简单,可以满足基本的虚拟主机服务商需求.
VHCS:感觉安装复杂,相关说明文档少.
WEB-CP,SYSCP:功能有点弱.
PHPMyWebHosting:需要改动的东西很多.
GNUHH:功能最强大,管理模块最多,用户和管理员的操作流程也比较清晰.推荐系统管理员和IDC使用.
评价参考

用户群最多的 VHCS. 而 Web-CP,DTC和SysCp也都有许多用户
功能最强大的 GNU Hosting Helper 支持机群,文档,订单
单机版本功能最强大的是ISPConfig
结构最好的 SysCP, 采用类似结构的有Web-Cp,DTC,VHCS
结论:大型IDC,推荐GNU Hosting Helper,备选ISPMan
单台主机,推荐 VHCS2,备选 Web-CP,DTC,ISPConfig,WHT,RavenCore(推荐程度依次降低,其实这几个系统都不错,看个人的喜好了)
DTC是一个即适合单机使用,也适合集群使用的主机管理系统,Apple欧洲公司就是选用这套系统在Mac OS X上使用
——————————–华丽的分割线———————————-
Case1: ISPConfig
Download ==) http://www.ispconfig.org/downloads.htm
Forums ==) http://www.howtoforge.com/forums
The current version is: 2.2.22 (== 2008/15/04

Case2: ISP-Manager
Download ==) http://www.projektfarm.com/updates_en.html
The current version is: 2.0.4 (== 2005/24/10

ispconfig使用手冊
ispconfig user_guide ==) http://ispconfig.org/downloads/manual_big5/toc.html
中文版的管理員手冊_chinese: Administrator manual
ref: http://ispconfig.org/downloads/manua…n_big5_src.htm
中文版的reseller手冊_chinese: Reseller manual
ref: http://ispconfig.org/downloads/manua…r_big5_src.htm
中文版的客戶手冊_chinese: Clients manual
ref: http://ispconfig.org/downloads/manua…e_big5_src.htm

———————————-再分————————————–
一些獨立主機之_Control_Panel_全部都免費.

1. xpanel.com
2. webmin
3. webcp ==) http://web-cp.net/
4. vhcs.net
5. isp-control.net
6. syscp ==) http://www.syscp.de
7. dtc ==) http://www.gplhost.com/?rub=softwares&sousrub=dtc
8. zpanel ==) http://www.thezpanel.com/
9. http://phpanel.net
0. http://www.ispconfig.org/
a. http://www.parsv.com/winpanel.htm
b. http://cubepanel.com/download/index.htm

php截取html摘要,自动检查html标签闭合

2010年8月27日 香草吧噗 24 views 没有评论

日志一般需要生成摘要,手动填写太麻烦,于是使用mb_substr自动截取,问题来了。如果纯文本还基本准确,要是html代码过多,截取出来的差得太 多。比如设定摘要300字,前面空格、html代码就可能占了100。怎么办呢?最好的办法是遇到html代码,跳过,不计数。这样较为准确,当然,美中 不足的是,万一是 img 标签呢?什么事都不能十全十美,就这样了。

utf编码,unicode字符1 – 6个字节都有可能,但 html 代码肯定都是 1 字节,并且以 < 开始,以 > 结束,所以稍候分析一下,就出来了。但有个问题,html 标签不能成为对闭合,比如 300 个字符满了,后面还有几个 html 标签,这就造成标签不闭合,页面布局全乱了。记得 php 有个扩展库,专门检查 html 规范的,但一般主机都没装,就试着写了一下。逻辑相当复杂,自己看了都头晕,觉得有些地方多余了,但也没找到另好的办法。

在这几天的测试中,都能正确处理未闭合的 html 标签。但是如果使用 php 过滤器,就会比较麻烦,php 代码内可能会出现非常多的 < 和 >,现在的解决办法是,如果是输入格式中包含有 php 过滤器,就不处理。字符串中没有 html 标签,直接调用  mb_substr 处理,含有摘要截取标记,优先从标记处截断。

下面是代码:

001 /**
002 * 生成摘要
003 * @param (string) $body
004 *  正文
005 * @param (int) $size
006 *  摘要长度
007 * @param (int) $format
008 *  输入格式 id
009 */
010 function blog_summary($body, $size, $format = NULL){
011 $_size = mb_strlen($body, 'utf-8');
012
013 if($_size <= $size) return $body;
014
015 // 输入格式中有 PHP 过滤器
016 if(!isset($format) && filter_is_php($format)){
017 return $body;
018 }
019
020 $strlen_var = strlen($body);
021
022 // 不包含 html 标签
023 if(strpos($body, '<') === false){
024 return mb_substr($body, 0, $size);
025 }
026
027 // 包含截断标志,优先
028 if($e = strpos($body, '<!-- break -->')){
029 return mb_substr($body, 0, $e);
030 }
031
032 // html 代码标记
033 $html_tag = 0;
034
035 // 摘要字符串
036 $summary_string = '';
037
038 /**
039 * 数组用作记录摘要范围内出现的 html 标签
040 * 开始和结束分别保存在 left 和 right 键名下
041 * 如字符串为:<h3><p><b>a</b></h3>,假设 p 未闭合
042 * 数组则为:array('left' => array('h3', 'p', 'b'), 'right' => 'b', 'h3');
043 * 仅补全 html 标签,<? <% 等其它语言标记,会产生不可预知结果
044 */
045 $html_array = array('left' => array(), 'right' => array());
046 for($i = 0; $i < $strlen_var; ++$i) {
047 if(!$size){
048 break;
049 }
050
051 $current_var = substr($body, $i, 1);
052
053 if($current_var == '<'){
054 // html 代码开始
055 $html_tag = 1;
056 $html_array_str = '';
057 }else if($html_tag == 1){
058 // 一段 html 代码结束
059 if($current_var == '>'){
060 /**
061 * 去除首尾空格,如 <br /  > < img src="" / > 等可能出现首尾空格
062 */
063 $html_array_str = trim($html_array_str);
064
065 /**
066 * 判断最后一个字符是否为 /,若是,则标签已闭合,不记录
067 */
068 if(substr($html_array_str, -1) != '/'){
069
070 // 判断第一个字符是否 /,若是,则放在 right 单元
071 $f = substr($html_array_str, 0, 1);
072 if($f == '/'){
073 // 去掉 /
074 $html_array['right'][] = str_replace('/', '', $html_array_str);
075 }else if($f != '?'){
076 // 判断是否为 ?,若是,则为 PHP 代码,跳过
077
078 /**
079 * 判断是否有半角空格,若有,以空格分割,第一个单元为 html 标签
080 * 如 <h2> <p>
081 */
082 if(strpos($html_array_str, ' ') !== false){
083 // 分割成2个单元,可能有多个空格,如:<h2 id="">
084 $html_array['left'][] = strtolower(current(explode(' ', $html_array_str, 2)));
085 }else{
086 /**
087 * * 若没有空格,整个字符串为 html 标签,如:<b> <p> 等
088 * 统一转换为小写
089 */
090 $html_array['left'][] = strtolower($html_array_str);
091 }
092 }
093 }
094
095 // 字符串重置
096 $html_array_str = '';
097 $html_tag = 0;
098 }else{
099 /**
100 * 将< >之间的字符组成一个字符串
101 * 用于提取 html 标签
102 */
103 $html_array_str .= $current_var;
104 }
105 }else{
106 // 非 html 代码才记数
107 --$size;
108 }
109
110 $ord_var_c = ord($body{$i});
111
112 switch (true) {
113 case (($ord_var_c & 0xE0) == 0xC0):
114 // 2 字节
115 $summary_string .= substr($body, $i, 2);
116 $i += 1;
117 break;
118 case (($ord_var_c & 0xF0) == 0xE0):
119
120 // 3 字节
121 $summary_string .= substr($body, $i, 3);
122 $i += 2;
123 break;
124 case (($ord_var_c & 0xF8) == 0xF0):
125 // 4 字节
126 $summary_string .= substr($body, $i, 4);
127 $i += 3;
128 break;
129 case (($ord_var_c & 0xFC) == 0xF8):
130 // 5 字节
131 $summary_string .= substr($body, $i, 5);
132 $i += 4;
133 break;
134 case (($ord_var_c & 0xFE) == 0xFC):
135 // 6 字节
136 $summary_string .= substr($body, $i, 6);
137 $i += 5;
138 break;
139 default:
140 // 1 字节
141 $summary_string .= $current_var;
142 }
143 }
144
145 if($html_array['left']){
146 /**
147 * 比对左右 html 标签,不足则补全
148 */
149
150 /**
151 * 交换 left 顺序,补充的顺序应与 html 出现的顺序相反
152 * 如待补全的字符串为:<h2>abc<b>abc<p>abc
153 * 补充顺序应为:</p></b></h2>
154 */
155 $html_array['left'] = array_reverse($html_array['left']);
156
157 foreach($html_array['left'] as $index => $tag){
158 // 判断该标签是否出现在 right 中
159 $key = array_search($tag, $html_array['right']);
160 if($key !== false){
161 // 出现,从 right 中删除该单元
162 unset($html_array['right'][$key]);
163 }else{
164 // 没有出现,需要补全
165 $summary_string .= '</'.$tag.'>';
166 }
167 }
168 }
169 return $summary_string;
170 }
分类: 编程开发 标签:

CentOS5.5+Apache2.2.15+Mysql5.1.48+PHP5.2.13 编译安装

2010年8月27日 香草吧噗 41 views 没有评论

CentOS5.5+Apache2.2.15+Mysql5.1.48+PHP5.2.13 编译安装

httpd-2.2.15.tar.gz mysql-5.1.48.tar.gz php-5.2.13.tar.gz
请从各自的官方下载 PHP官方有发布新的5.3.2在centos5.5的gcc环境下编译会错误,所以选择比较稳定的5.2.13版本 1.yum update 检查系统更新
2.yum install gcc gcc-c++ 软件编译环境
3.yum erase httpd 卸载系统自带的httpd (apache2.2.3)
4.yum install zlib-devel libtool ncurses-devel libxml2-devel
(zlib-devel 安装apache需要,否则出错 .libtool安装mysql时候需要.同时附带了autoconf automake imake 编译mysql 5.1.48时候会出错 需要autoconf重新配置一下)
5.编译apache2.2.15

./configure –prefix=/usr/local/apache2 –enable-rewrite=shared –enable-track-vars –enable-cgi –enable-so –enable-mods-shared=all –with-config-file-path=/usr/local/apache2/conf –with-mpm=worker –enable-speling
make
make install
make clean

6.编译httpd.conf . 去掉#ServerName xxxxxx.com 前面的# 没有ServerName启动httpd服务会出错. 给LoadModule unique_id_module modules/mod_unique_id.so前面加上注释以取消加载.默认的centos5.5加载这个会启动不了httpd .
7.运行 grep -v “#” /usr/local/apache2/bin/apachectl > /etc/init.d/httpd
8.运行 chmod +x /etc/init.d/httpd (赋予httpd可以运行的权限)
9.编译/etc/init.d/httpd 在起始位置添加

#!/bin/sh
# chkconfig: 8854 85 15
# description: Apache is a World Wide Web server.

10.运行 chkconfig –add httpd
chkconfig –level 35 httpd on
11.编译mysql 5.1.48
groupadd mysql
useradd -g mysql mysql
在源码文件夹目录运行

autoreconf –force –install
./configure –prefix=/usr/local/mysql –with-charset=utf8 –with-extra-charsets=all –enable-thread-safe-client –enable-assembler –with-readline –with-big-tables –with-plugins=all –with-tcp-port=3310 –with-unix-socket-path=/var/tmp/mysql.sock –with-mysqld-ldflags=-all-static –with-client-ldflags=-all-static
make
make install
make clean

以下命令在mysql安装目录下运行

cd /usr/local/mysql
cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf
cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysqld
chmod +x /etc/init.d/mysqld
chown -R mysql .
chgrp -R mysql .
scripts/mysql_install_db –user=mysql
chown -R root .
chown -R mysql var

12.编译安装php-5.2.13 需要先安装如下包

curl-7.16.1.tar.gz freetype-2.3.12.tar.gz jpegsrc.v8b.tar.gz libpng-1.4.2.tar.gz gd-2.0.35.tar.gz libmcrypt-2.5.8.tar.gz mhash-0.9.9.9.tar.gz mcrypt-2.6.8.tar.gz
可在如下地址下载需要的软件包

http://freakshare.net/files/jmoegk3h/centos5-apache2-mysql5-php5.zip.html
http://www.missupload.com/l9byv002i59z/centos5-apache2-mysql5-php5.zip.html
http://cid-39f70fff71231d5a.office.live.com/browse.aspx/PHP/CentOS5

直接./configure 编译安装curl-7.16.1.tar.gz freetype-2.3.12.tar.gz jpegsrc.v8b.tar.gz libpng-1.4.2.tar.gz libmcrypt-2.5.8.tar.gz mhash-0.9.9.9.tar.gz
安装gd的时候需要./configure –with-png=/usr/local/lib –with-freetype=/usr/local/lib –with-jpeg=/usr/local/lib
最后编译安装 mcrypt-2.6.8.tar.gz 需要指定LD_LIBRARY_PATH路径
LD_LIBRARY_PATH=/usr/local/lib ./configure
编译php开始

./configure –prefix=/usr/local/php5 –with-gd=/usr/local/lib –with-jpeg-dir=/usr/local/lib –with-zlib –with-png-dir=/usr/local/lib –with-freetype-dir=/usr/local/lib –with-mysql=/usr/local/mysql –with-pdo-mysql=/usr/local/mysql –with-iconv –enable-mbstring –with-pear –with-apxs2=/usr/local/apache2/bin/apxs –with-libxml-dir=/usr/lib –with-curl –with-mcrypt=/usr/local/lib –with-mhash=/usr/local/lib –with-config-file-path=/etc –enable-zip –with-config-file-path=/usr/local/php5/etc
make
make install
make clean
cp php.ini-dist /usr/local/php5/etc/php.ini
打开php.ini把dll后缀改为so

13.编译httpd.conf
添加下面的代码到相应的位置
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
index.php
如果启用了SELinux的话还需要执行如下命令
setenforce 0
chcon -t texrel_shlib_t /usr/local/apache2/modules/libphp5.so
service httpd restart
setenforce 1

重新启动之后就可以了
14.关于Zend 直接运行解压包里的pl文件安装即可..

分类: Linux相关 标签: ,

使用NSClassFromString

2010年8月27日 香草吧噗 23 views 没有评论

NSClassFromString是一个很有用的东西,尤其在进行iPhone toolchain的开发上。

正常来说,
id myObj = [[NSClassFromString(@"MySpecialClass") alloc] init];

id myObj = [[MySpecialClass alloc] init];
是一样的。但是,如果你的程序中并不存在MySpecialClass这个类,下面的写法会出错,而上面的写法只是返回一个空对象而已。
因此,在某些情况下,可以使用NSClassFromString来进行你不确定的类的初始化。

比如在iPhone中,NSTask可能就会出现这种情况,所以在你需要使用NSTask时,最好使用:
[[NSClassFromString(@"NSTask") …..]]
而不要直接使用[NSTask …]这种写法。

NSClassFromString的好处是:
1 弱化连接,因此并不会把没有的Framework也link到程序中。
2 不需要使用import,因为类是动态加载的,只要存在就可以加载。因此如果你的toolchain中没有某个类的头文件定义,而你确信这个类是可以用 的,那么也可以用这种方法。

分类: iPhone 标签: ,

PHP遍历文件夹

2010年8月18日 香草吧噗 38 views 没有评论

一个简单的目录递归函数 第一种实现办法:用dir返回对象 第二种实现办法:用readdir()函数
-
-
<pre>
<?php
/**********************
一个简单的目录递归函数
第一种实现办法:用dir返回对象
***********************/
function tree($directory)
{
$mydir=dir($directory);
echo “<ul>\n”;
while($file=$mydir->read()){
if((is_dir(“$directory/$file”)) AND ($file!=”.”) AND ($file!=”..”))
{echo “<li><font color=\”#ff00cc\”><b>$file</b></font></li>\n”;
tree(“$directory/$file”);
}
else
echo “<li>$file</li>\n”;
}
echo “</ul>\n”;
$mydir->close();
}
//开始运行
echo “<h2>目录为粉红色</h2><br>\n”;
tree(“F:/”);
/***********************
第二种实现办法:用readdir()函数
************************/
function listDir($dir){
if(is_dir($dir)){
if ($dh = opendir($dir)) {
while (($file= readdir($dh)) !== false){
if((is_dir($dir.”/”.$file)) && $file!=”.” && $file!=”..”){
echo “<b><font color=’red’>文件名:</font></b>”,$file,”<br><hr>”;
listDir($dir.”/”.$file.”/”);
}else{
if($file!=”.” && $file!=”..”){
echo $file.”<br>”;
}
}
}
closedir($dh);
}
}
}
//开始运行
listDir(E:/data/);
?>

分类: 编程开发 标签:

PHP查找字符串函数strstr()

2010年8月17日 香草吧噗 78 views 没有评论

定义和用法

strstr() 函数搜索一个字符串在另一个字符串中的第一次出现。

该函数返回字符串的其余部分(从匹配点)。如果未找到所搜索的字符串,则返回 false。

语法

strstr(string,search)
参数 描述
string 必需。规定被搜索的字符串。
search 必需。规定所搜索的字符串。如果该参数是数字,则搜索匹配数字 ASCII 值的字符。

提示和注释

注释:该函数是二进制安全的。

注释:该函数对大小写敏感。如需进行大小写不敏感的搜索,请使用 stristr()

例子

例子 1

<?php
echo strstr("Hello world!","world");
?>

输出:

world!

例子 2

在本例中,我们将搜索 “o” 的 ASCII 值所代表的字符:

<?php
echo strstr("Hello world!",111);
?>

输出:

o world!
分类: PHP 标签: ,

kloxo控制面板快速安装

2010年8月8日 香草吧噗 58 views 没有评论

很多人用到VPS时,需要安装kloxo控制面板,虽然按常规方法安装已经是很简单了,但是还是有人抱怨安装过程很繁琐,所以,有强人作出一行命令就直接全部安装完的安装包。也就是VPS用kloxo一键安装完就可以拿来用了,如下:

安装Kloxo和中文语言包,只要1行命令:登录SSH终端,输入账号密码登陆成功后,输入如下命令,也可以复制下面命令,然后在SSH终端里面点击右键就复制上去了。

wget http://www.CTOHome.com/linux-vps-pack/kloxo_with_chinese_language.sh;sh ./kloxo_with_chinese_language.sh;

将上面1行复制,粘贴到您的linux ssh控制台里,回车,等待完成即可!

如果安装不成功,可能是有软件冲突。请进入您的VPS系统面板,重新安装centos5-x86的操作系统。然后重试。

安装完成后:

请访问  http://你的IP:7778/   进行面板的语言设置

在Appearance -> Language里选择 Chinese,   然后点击update确认,面板就变成中文界面了!

分类: 建站相关 标签:

六个免费的虚拟主机管理系统

2010年8月8日 香草吧噗 70 views 没有评论

1. ZPanel – 在Windows下的免费Hosting Panel
ZPanel已经更名为RapidCP,最新版本为RapidCP 3.0
网址:

http://sourceforge.net/projects/zpanel/
http://www.rapidcp.com/
RapidCP新功能介绍:http://www.rapidcp.com/features/
ZPanel 2.6 is the latest stable release. It is recommended for production environments.
RapidCP 3.0 is the latest beta release. It is intended for testing purposes only.

2. web-cp – *nix的虚拟主机管理
网址:
http://sourceforge.net/projects/webcp/
http://www.web-cp.net/
用PHP-CLI写的一个Web服务器
支持多种脚本Scripting PHP,sun asp,cf,perl…
支持shell access
支持 SSI
支持.htacess
支持多种DNS服务 bind,powerdns,mydns,tinydns
完全使用PHP开发,支持Shell Access
要安装PHP CLI(Command-LIne ) 控制面板的后端服务器 server/webcp.php 和 httpd服务器 server/webcp-httpd.php 都需要 PHP CLI二进制支持,以便能够操作系统进程
个人:个人信息,密码,邮件,ftp
域:允许域的所有者在该域下增删用户,设定别名,子域名,数据库
销售商:增加domain
服务器: 监视服务,管理服务

3. VHCS – Virtual Hosting Control System
支持*nix系统的,用Perl和C实现核心功能,PHP实现管理界面。
网址:
http://sourceforge.net/projects/vhcs/
http://www.vhcs.net/

4、webmin的虚拟主机管理模块virtualmin
webmin是一个可运行于Linux/freebsd的web界面的主机管理系统,有中文包
而virtualmin则是它的一个虚拟主机管理模块,提供中文支持。
webmin官方站: http://www.webmin.com/
virtaulmin站点: http://www.swelltech.com/virtualmin/

5、基于php/mysql的虚拟主机控制程序PHPMyWebHosting
PHPMyWebHosting是个开源的,基于php/mysql的虚拟主机控制面板程序,你可以用它建立带有邮箱,mysql支持的多域名虚拟主机,它须建立在Linux/freebsd之上,不支持windows。
安装phpmywebhosting你必须拥有系统管理员(root)权限,并依次安装以下套件:
MySQL
Apache and PHP
Postfix
Maildrop
Courier
ProFTPd
PHPMyWebHosting
官方站上有基于各平台详细的安装说明 http://www.ladse.de
phpmywebhosting下载:http://www.ladse.de/index.php/Files

6、SysCP虚拟主机管理系统[全php版]
1.有中文包
2.admin,reseller,client 三级管理
3.全部为php代码构成
4.有不少模块(modules)供选择安装
5.开源,免费(基于GPL)
6.Linux/bsd环境,特别是debian(最初是专为它开发的)
是德国人写的,有简体中文,英文,法文,德文语言包,是多语言的
具有以下特性:
Customer Interface
* managing email accounts
* managing email forwarders
* managing subdomains
* managing mysql databases
* managing additional ftp account
* managing .htaccess password protections for directories
* managing path options for example directorylisting
Admin Interface:
* managing of customers: you can define exactly what kind of resources your customers get (e.g. amount of pop accounts, amount of mysql databases etc.)
* manage domains: you can individualy edit zone files and directory index per domain
支持以下配套服务器或引擎:
# webserver: [Apache 1.3] with [PHP4] (apache2.0.x也可以)
# mail transfer agent: [Postfix]
# pop/imap server: [Courier]
# ftp server: [ProFTPd]
# database server: [MySQL]
# nameserver: [Bind9]
# traffic accounting and statistics: [Webalizer]
官方站:http://www.syscp.de/
下载:http://www.syscp.de/wiki/EnDownloads
模块下载:http://modules.syscp.de/
在线演示:http://www.syscp.de/onlinedemo/index.php#p#副标题#e#
Webmin是目前功能最强大的基于Web的Unix系统管理工具
Webmin 是目前功能最强大的基于Web的Unix系统管理工具。管理员通过浏览器访问Webmin的各种管理功能并完成相应的管理动作。目前Webmin支持绝大 多数的Unix系统,这些系统除了各种版本的linux以为还包括:AIX、HPUX、Solaris、Unixware、Irix和FreeBSD等。
Webmin 让您能够在远程使用支持 HTTPS (SSL 上的 HTTP)协议的 Web 浏览器通过 Web 界面管理您的主机。这在保证了安全性的前提下提供了简单深入的远程管理。这使得 Webmin 对系统管理员非常理想,因为所有主流平台都有满足甚至超出上述需求的 Web 浏览器。而且,Webmin 有其自己的“Web 服务器”,因此不需要运行第三方软件(比如 Web服务器)。万事具备。Webmin 的模块化架构允许您在需要时编写您自己的配置模块。除了在此介绍的模块之外,Webmin 还包括许多模块。尽管目前我们将主要关注网络服务,但是您会看到,几乎您系统的每一部分都能够通过 Webmin 来配置和管理。
开源主机/虚拟主机管理系统

ISPCONFIG:安装简单,可以满足基本的虚拟主机服务商需求.
VHCS:感觉安装复杂,相关说明文档少.
WEB-CP,SYSCP:功能有点弱.
PHPMyWebHosting:需要改动的东西很多.
GNUHH:功能最强大,管理模块最多,用户和管理员的操作流程也比较清晰.推荐系统管理员和IDC使用.
评价参考

用户群最多的 VHCS. 而 Web-CP,DTC和SysCp也都有许多用户
功能最强大的 GNU Hosting Helper 支持机群,文档,订单
单机版本功能最强大的是ISPConfig
结构最好的 SysCP, 采用类似结构的有Web-Cp,DTC,VHCS
结论:大型IDC,推荐GNU Hosting Helper,备选ISPMan
单台主机,推荐 VHCS2,备选 Web-CP,DTC,ISPConfig,WHT,RavenCore(推荐程度依次降低,其实这几个系统都不错,看个人的喜好了)
DTC是一个即适合单机使用,也适合集群使用的主机管理系统,Apple欧洲公司就是选用这套系统在Mac OS X上使用
——————————–华丽的分割线———————————-
Case1: ISPConfig
Download ==) http://www.ispconfig.org/downloads.htm
Forums ==) http://www.howtoforge.com/forums
The current version is: 2.2.22 (== 2008/15/04

Case2: ISP-Manager
Download ==) http://www.projektfarm.com/updates_en.html
The current version is: 2.0.4 (== 2005/24/10

ispconfig使用手冊
ispconfig user_guide ==) http://ispconfig.org/downloads/manual_big5/toc.html
中文版的管理員手冊_chinese: Administrator manual
ref: http://ispconfig.org/downloads/manua…n_big5_src.htm
中文版的reseller手冊_chinese: Reseller manual
ref: http://ispconfig.org/downloads/manua…r_big5_src.htm
中文版的客戶手冊_chinese: Clients manual
ref: http://ispconfig.org/downloads/manua…e_big5_src.htm

———————————-再分————————————–
一些獨立主機之_Control_Panel_全部都免費.

1. xpanel.com
2. webmin
3. webcp ==) http://web-cp.net/
4. vhcs.net
5. isp-control.net
6. syscp ==) http://www.syscp.de
7. dtc ==) http://www.gplhost.com/?rub=softwares&sousrub=dtc
8. zpanel ==) http://www.thezpanel.com/
9. http://phpanel.net
0. http://www.ispconfig.org/
a. http://www.parsv.com/winpanel.htm
b. http://cubepanel.com/download/index.htm

JavaScript获取系统时间

2010年7月24日 香草吧噗 113 views 2 条评论

/*获取系统时间*/
function getSysDate(){
var thetime = new Date();
return getFormat(thetime.getFullYear()) + “-” + getFormat(thetime.getMonth()+1) + “-” + getFormat(thetime.getDate()) + ” ” + getFormat(thetime.getHours()) + “:” + getFormat(thetime.getMinutes()) + “:” + getFormat(thetime.getSeconds());
}

分类: JavaScript 标签:

JavaScript转换时间格式

2010年7月24日 香草吧噗 94 views 没有评论

/*将2010-1-6 19:8:2的时间格式转换成2010-01-06 19:08:02的时间格式*/
function getFormat(timeformat){
if(String(timeformat).length == 1){
timeformat = “0″ + String(timeformat);
}
return timeformat;
}

分类: JavaScript 标签: