directadmin

Enter your information here: Client ID (uid): License ID (lid): If you need to update your copy of DirectAdmin manually, you can do so by running the following commands: cd /usr/local/directadmin wget --no-check-certificate -O update.tar.gz

手工更新Updating DirectAdmin Manually

来源:梦飞科技 作者:梦飞 浏览量:343 更新:2016-10-22
Enter your information here:
Client ID (uid):  
License ID (lid): 

If you need to update your copy of DirectAdmin manually, you can do so by running the following commands:

cd /usr/local/directadmin
wget --no-check-certificate -O update.tar.gz 'https://www.directadmin.com/cgi-bin/daupdate?redirect=ok&uid=7353&lid=59232'
tar xvzf update.tar.gz
./directadmin p
cd scripts
./update.sh
/etc/init.d/directadmin restart

Where 7353 and 59232 are your Client ID and License ID, respectively.  Note that if you are running FreeBSD, you might need to add a \ before the ? character in the wget line, and use /usr/local/etc/rc.d/directadmin restart.  If there are errrors extracting the update.tar.gz file, then run:

head -n 1 update.tar.gz

to search for an error.  If there is an readble error inside the file, then you'll need to contact sales@directadmin.com to get your license activated or updated.

Using the above redirect=ok option in the download string will tell the daupdate that the downloader being used supports Location header redirects. The daupdate script will offload downloads when possible to other servers.


If you'd like automated DA updates, there a few ways of going about it. (we don't trigger updates from our end to your server anymore)
- CustomBuild can be set to cron auto update the services, and if you also use da_autoupdate=yes, CB will do it for you. However, automated CB updates isn't always recommended.
- A simple cronjob that runs this command is likely safer, if you only want DA to be auto-updated:

echo "action=update&value=program" >> /usr/local/directadmin/data/task.queue

Each night that the update is rejected, you'll get a note in your /var/log/directadmin/system.log.


Note Pre-release and regular updates to not issue full config rewrites.  If you need a template change, you must issue a full rewrite to get it:

cd /usr/local/directadmin/custombuild
./build rewrite_confs

部分文章来源与网络,若有侵权请联系站长删除!