14 12
发新话题
打印

directadmin安装方法

directadmin安装方法

什么是DirectAdmin(DA)?
复制内容到剪贴板
代码:
  DirectAdmin 是一套国外开发的功能非常强劲的虚拟主机在线管理系统,通过这个管理系统您可以方便的管理您的服务器,设置EMAIL、设置DNS、开通FTP、在线文件管理、数据库管理等,方便管理员、客户及代理商在线操作虚拟主机信息
可装系统
复制内容到剪贴板
代码:
DA只支持安装Unix/linux/freebsd等OS。对于WindowsXP/2000/2003等系统不支持
在CentOS 4.2中安装DirectAdmin

  官方安装说明上说, ”gcc installed (these are usually standard with 99% of systems)”, 而我装了三次了, 也没有见哪个系统是默认装了GCC的. 至少CentOS系列的应该是没有装. 只好自己先装一下了. 另外, 官方说明上没有说要装gcc-c++, 而实际上也是需要的. 

1. 安装gcc, gcc-c++


yum install gcc
yum install gcc-c++
想当然第一次装的时候, 是一个header, 一个header,??一个RPM, 一个RPM慢慢装的啊, 哪里知道这两条命令就能全搞定. 幸好遇到这个新的公司的这个技术, 要不然还不一辈子当傻子了?

2. 之后开始安装DirectAdmin了, 其实只是按官方步骤就OK了, 我只是用中文转述一下, 哈哈. 

   安装之前请一定准备好DirectAdmin的授权信息, client ID, license ID, 并确定使用系统和IP都是正确的. 否则无法成功安装

   1) 用root帐号登录系统, 下载setup.sh文件, 运行


wget http://www.directadmin.com/setup.sh
   2)改setup.sh属性,


chmod 755 setup.sh
3) 运行程序


./setup.sh
    如果不出意外, 到最后你会看到

     The following information has been set:

Admin username:? ?admin
Admin password:? ?********
Admin email:? ?? ?admin@hostname
Server IP: xxx.xxx.xxx.xxx

Server Hostname: your.own.host.name

To login now, follow this link:

http://serverIP:2222

? ???把这些信息记住就可以了. 之后记得更改密码哦. 


3. 在CentOS 4.2中安装好DirectAdmin, 默认安装的MySQL是 4.1.x版的, 要把它降为4.0版的, 可以看这里

http://www.rongzheng.net/?p=9



4. OK 了. 希望看过文章的朋友也成功安装了DirectAdmin

TOP

FreeBSD 6.2 下 DirectAdmin 安装过程

二、安装DirectAdmin

注意:安装directadmin必须以root直接登陆。不能登陆到其它用户再su到root。具体方法很简单,设置一下ssh就可以了。我就不多介绍了。

# wget http://www.directadmin.com/setup.sh


Hint: Use “fetch” instead of “wget” on FreeBSD systems.

Change permissions on the setup.sh file


# chmod 755 setup.sh

Run the setup script!

# ./setup.sh

You will be prompted for a client ID number, license ID number, and hostname.

安装完成后,即可用http://IP:2222 来访问你的directadmin管理后台了。

输入你在安装过程中定义的admin的密码登陆即可。

由于directadmin默认给安装的是apache1.3、php4和mysql5.0.

mysql5.0倒是很正常。不过apache和php版本是低了点。可能大部分朋友都不喜欢用这个版本。那么如何升级呢?遵循官方给的文档,按以下方法升级apache和php5:

To update to php5, the build script will still work. All that you need to do is swap out the version, compile normally and make a few modifications to your /etc/httpd/conf/httpd.conf file.

1) download the php-5.2.2.tar.gz from php.net into your customapache directory:

cd /usr/local/directadmin/customapache
wget http://files.directadmin.com/ser ... he/php-5.2.2.tar.gz
2) change your build script for the new version:

#ee build

change: PHP_VER=4.4.4
to: PHP_VER=5.2.2

3) build php normally:

#./build clean
#./build php n


If you’re using apache 2.x, use 如果你想使用apache 2.x版本,那么执行下面的
当然,直接输入
#./build
可以查看当前所能执行的命令,如升级一下当前的软件包 ./build update

#./build clean
#./build php_ap2 n

instead.

4) edit /etc/httpd/conf/httpd.conf
Remove any referce of:

LoadModule php4_module modules/libphp4.so

and make sure they’re replaced with:

LoadModule php5_module modules/libphp5.so

Remove any reference of:

AddModule mod_php4.c

and replace with:

AddModule mod_php5.c

5) find this piece of code:

<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi
</IfModule>
replace with:

<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php5 index.php3 index.phtml index.cgi
</IfModule>
Find this:

<IfModule mod_php4.c>
AddType application/x-httpd-php .inc .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
</IfModule>

(it might have AddHandler instead of AddType)
replace with:

<IfModule mod_php5.c>
AddHandler application/x-httpd-php .inc .php .php5 .php4 .php3 .phtml
AddHandler application/x-httpd-php-source .phps
</IfModule>

Then restart apache.

If you get the following error while compiling php:

checking whether to enable LIBXML support… yes
checking libxml2 install dir… no
checking for xml2-config path…
configure: error: xml2-config not found. Please check your libxml2
installation.

*** There was an error while trying to configure php. Check the configure.php file

Then edit the configure.php file (or configure.php_ap2 if you’re using apache 2), and change:

--with-xml \

to:

--disable-libxml \
--disable-dom \
--disable-xml \
--disable-simplexml \
--disable-xmlreader \
--disable-xmlwriter \

or else install the missing rpms/packages for xml. (libxml2-dev and libxml2-utils on debian). Redhats:

yum -y install libxml2-devel libxslt-devel

最后这个更改xml的可以不必更改。似乎没什么用。反正我没改它。因为装完apache2.x后,默认即可。

最后。zend可通过ports来安装。只需要改一下php的配置文件即可。

TOP

TOP

Steps for changing server ip and creating images.


**** Change server ip ****
Boot the server with the new server ip. (the new one you want to use)
DirectAdmin will not be running, as the license file will be invalid.
Contact DirectAdmin to obtain a new license file. They will change the ip in the license.
Get the new license file:
  
  cd /usr/local/directadmin/scripts
  ./getLicense.sh UID LID

Where UID and LID are your client ID and your license id.
Ensure the license downloaded properly by making sure the file contains no error messages.
Start DirectAdmin with the new license:

  service directadmin restart

(The taskq may have already started it, thus the restart instead of just "start")

Download the ipswap.sh script from directadmin:

  wget http://www.directadmin.com/ipswap.sh
  chmod 755 ipswap.sh
  
Execute that script with the old and and the new ip. Example:

  ./ipswap.sh 1.2.3.4 4.3.2.1

where 1.2.3.4 is your old ip and 4.3.2.1 is the new ip.
This script can be run on any ip, so if you want to change all ips with new ones, just run this script for each old ip with the new ip. Just ensure that you match the new server ip with the old one.

Restart everything:

  service httpd restart
  service proftpd restart
  service exim restart
  service vm-pop3d restart
  ...

Make sure they are correctly binding to the new ports by testing them.

You&#39;ll need to update the users list cache so that you see the new results in the show users lists:

echo "action=cache&value=showallusers" >> /usr/local/directadmin/data/task.queue

That&#39;s it :)


























**** Creating an Image ****

Install whatever additional services you want on the server (if you need up2date, this would be a good time)

Install a default copy of DirectAdmin on a server.
Be sure to install the customapache script.

Delete the license (doesn&#39;t really matter.. just so that nobody else gets a hold of it)

Create the image using whatever method you would like.


*** copy the image to the new server

Run the scripts you would normally run to setup the image properly.
Instead of manually changing the ip through DirectAdmin (as above), you can use the ipswap.sh script as decribed above to swap all instances of the IPs.

When you need to use the server, contact DirectAdmin, order a license using the new server&#39;s ip.
Once activated, use the getLicense.sh (see above) to download the license for this system.

Restart DirectAdmin and you should be up and running.

TOP

大DA里,能装mysql 4.0的话,可以联系我了,我愿意付费请人安装了. QQ:270576471 请注明 :DA

TOP

什么世道啊,如此忽悠人

继续支持没话说~ 楼主真强

问题:请教如何疏通马桶
  小Q:有个土方:可以买泥鳅来,丢进马桶,它会给你疏通的。
  —— 无语 (泥鳅)


  问题:如何成为百万富翁?
  小Q:用很少的钱换成越南盾,很容易就有100万了
  ——汗一个……


  问题:怎样才能打死人
  小Q:挖开坟墓就能打“死人”了
  ——小Q也看过《鬼吹灯》?



  问题:为什么减肥的都是女人呢?
  小Q:这个源于一个民间童话故事。就是一只公猪为了避免心爱的母猪惨遭主人宰杀,所以拼命吃胖,结果最后公猪被杀来吃肉!母猪伤心欲决。女孩子为了纪念这个生死爱情故事,开始减肥!
  ——晕死,女人=猪?


  问题:为什么老想睡觉呢?
  小Q:哥哥~因为你是猪猪投胎的~所以才那么想睡~懂了吧~
  ——看出来了,小Q跟猪有缘分


  问题:什么车最长
  小Q:塞车
  ——看来小Q受过脑筋急转弯的训练


  问题:请问你是谁
  小Q:我是谁?前世的躯体,今生的思维?在混沌的世界里,还是模糊吧。
  ——小Q=尼采???


  问:为什么说网络上的女性居多?
  小Q:因为蜘蛛精大多数是女的啊
  ——小Q有性别歧视啊?


  问题:1厘米等于多少英寸
  小Q:1公分=1厘米=1cm ,一英寸=0.0254m=2.54cm,一英尺=30.48cm,所以1厘米就是0.3937英寸
  ——强就一个字!


  问题:什么网站最黄最暴力
  小Q:人民网、网易
  上榜原因:还有什么好说的?一个很黄,一个很暴力
  上榜原因:无语


  问题:结婚之后为什么又要离婚呢?
  小Q:记住——男人能忍受不幸的爱情不能忍受不幸的婚姻,女人能忍受不幸的婚姻不能忍受不幸的爱情,看完后你自然就明白了!
  ——深奥啊


  问题:谁来告诉我,感情谁真谁假
  小Q:感情没有真也没有假,他真时你亦假,他假时你却当真。。。。。 问你自己了,对谁有情
  ——无语


  问题:乘车坐在什么位置最安全?
  小Q:如果司机开的好,哪里都安全。如果司机开的不好,坐哪里都不安全
  ——小Q学过辩证法?


  问题:品位是如何得到提升的呢
  小Q:经济实力,没有钱谈品位就是一句空话!
  ——小Q同志很实际啊


  问:魔镜魔镜告诉我,谁是世界上最美丽的人?
  小Q:芙蓉姐姐
  ——这个,这个……


  问:中国电信某分公司的待遇如何
  小Q:工资低的要命,干活的人少,领导还多.
-------------------------
Buy cheap WoW Gold , cheap wow gold & trade safe and fast website - world of warcraft gold,warcraft gold, face to face WoW Gold, world of warcraft gold, wow leveling

TOP

回帖是一种美德~~~顶一下~~


好贴是顶上去的 我顶~~~~~~

祖玛免费杀毒软件powerpoint拳皇瑞星

TOP

水控机

绝对的懵懂,还不知道你所云
我可是等了很久了,一直在你期待中…






















一卡通项目研发生产机构,包括水控机水控器彩钢复合机械设备 彩钢夹芯板设备IC卡等单片机开发  

TOP

震撼啊!~~~~~

为什么会有如此好的帖子!百家乐

TOP

震撼啊!~~~~~

为什么会有如此好的帖子!百家乐

TOP

 14 12
发新话题