Posts

Showing posts with the label DirectAdmin

DirectAdmin Upgrading CSF Firewall

(This post is meant for DirectAdmin beginners, like me.) Finally got the chance to play with one of the production server - to upgrade the CSF Firewall. For this, I have to SSH to the server because upgrading CSF needs root access. Due to restrictions in "DirectAdmin you must login to the root shell" to upgrade csf using csf -u So I SSH-ed to the server and ran the command " csf -u ". But this time, I get the following error. -bash: csf: command not found Okay, the path to CSF is not correct, so just need to cd /usr/sbin/ Then gain root access, su - That's it, can upgrade CSF using the command " csf -u " automatically! :)

[DirectAdmin] Clear Frozen Mail

Using Script to clear mail #!/bin/sh /usr/sbin/exim -bpr | grep frozen | awk {'print $3'} | xargs /usr/sbin/exim -Mrm Set cronjob in DirectAdmin /bin/sh /home/ <user> /domains/ <url> /cron/exim_clear_frozen.sh Put cronjob in /etc/cron.daily References: [1]  http://www.directadmin.com/forum/showthread.php?t=24018 [2]  http://help.directadmin.com/item.php?id=112 [3]  http://www.directadmin.com/forum/archive/index.php/t-23849.html

[DirectAdmin] Setting up Cronjob for Joomla jNewsletter

Method 1: URL access method curl http:// <domain.com> /index.php?option=com_jnews&act=cron wget -O - http:// <domain.com> /index.php?option=com_jnews&act=cron >/dev/null 2>&1 lynx -dump http:// <domain.com> /index.php?option=com_jnews&act=cron >/dev/null 2>&1 If you use 'wget' is better to add the '-O -' option for don't get writed the downloaded file to the disk, only to 'stdout' and if your file is in one protected dir you can add the options '--http-user=USERNAME --http-password=PASS', see bellow: wget -O - --http-user=USERNAME --http-password=PASS http:// <domain.com> /index.php?option=com_jnews&act=cron >/dev/null 2>&1 wget, lynx or curl doesn't work? If you having trouble getting lynx or wget to work. This may be the case if "localhost" is not permitted. Then wget, lynx or curl won't work on the local machine. Read more here  http://drupal.org/node...

DirectAdmin Reset Folder Recursively

(This is just a not for myself.) Parameters to append to links to reset folders recursively. http://www.example.com:2222/CMD_FILE_MANAGER/domains/example.com/public_html/folder ?action=resetowner&method=recursive