April 19th, 2013 |
admin |
As you know, Webalizer stats are usually updated once a day, when using a Directadmin server. What to do, if you need more current stats? Here are some solutions (work good for me on CentOS 5). If you need to update all server accounts, just type in the following command as root: echo “action=tally&value=all” >> [...]
April 17th, 2013 |
admin |
Download RPMForge Package. Check your system with uname -a command to get the suitable package. Below is the current one I got : 32-bit system: wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm 64-bit system wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm If you want to check for the latest one, check it from -> http://packages.sw.be/ My instruction will base on x86_64 package. 2. Install GPG [...]
March 16th, 2013 |
admin |
Past that, I’d use a script, similar to what Peter mentioned. I tend to just write simple perl regex’s to work right on the user.conf files. eg: disable spam: cd /usr/local/directadmin/data/users perl -pi -e ‘s/spam=ON/spam=OFF/’ *.user.conf for example (of course, that’s just a setting and hasn’t actually “done” anything.. to really disable spam, you must [...]
February 25th, 2013 |
admin |
Generally, this isn’t the best thing to have happen because all of the data is stored there. You’ll need to recreate all of the directory structures, as well as a few files required for DA to run: 1) Create the DA tmp directory so you can log into DA again: mkdir -p /home/tmp chmod 1777 [...]
February 16th, 2013 |
admin |
*** Note: If you’re running a VPS with a “simfs” file system, quotas usually cannot be enabled with normal means. Contact yoru VPS provider to enable quotas for you. DirectAdmin relies on the system quotas to return a value for how much space is being used. DirectAdmin will run /usr/sbin/repquota /home Where /homeis the quota_partition [...]
January 29th, 2013 |
admin |
Q: i install new directadmin on centos 6.2 x 64 and after install # cd /usr/local/directadmin/custombuild # ./build clean # ./build mod_perl and…. error File already exists: mod_perl-2.0.4.tar.gz MD5 Checksum on mod_perl-2.0.4.tar.gz passed. Found /usr/local/directadmin/custombuild/mod_perl-2.0.4.tar.gz Extracting … Done. Configuring mod_perl-2.0.4… Can’t locate ExtUtils/Embed.pm in @INC (@INC contains: lib Apache-Test/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 [...]
January 10th, 2013 |
admin |
this script to help install ruby on rails cd /usr/src wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.5.tar.gz tar -xzvf ruby-1.8.5.tar.gz cd ruby-1.8.5/ ./configure make make test make install cd /usr/src wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz tar -zxvf rubygems-0.8.11.tgz cd rubygems-0.8.11 ruby setup.rb gem update gem install rails –include-dependencies rails /usr/local/rails mv /usr/local/rails/public/.htaccess /usr/local/rails/public/.htaccessfile echo “RewriteBase /rails” > /usr/local/rails/public/.htaccess cat /usr/local/rails/public/.htaccessfile >> /usr/local/rails/public/.htaccess mv /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conffile [...]
December 29th, 2012 |
admin |
If your Directadmin server faces a brute-force attack or script-kiddies are trying to guess your password, your message queue is full of messages. If you don’t check them periodically, you will have some problems deleting them. I have been away for 2 weeks so I didn’t check my server for messages. When I came back, [...]
December 25th, 2012 |
admin |
One day my client asked me to migrate a Direct Admin Server to NEW server with improved hardware. He wants this migration with minimum down time. Below are the steps which I did for this migration. 01. Check the current versions of Apache, PHP and MySQL and then number of IPs on current running server. [...]
December 3rd, 2012 |
admin |
Securing Your Server Below given are some of the steps that can be used to secure your server. Disable identification output for Apache To disable the version output for proftp, SSH into server and login as root. At command prompt type: pico /etc/httpd/conf/httpd.conf Scroll (way) down and change the following line to ServerSignature Off Restart [...]