Web Server and Hosting Arena Co-Powered by DomainStack.in and WebNinja.host

Directadmin: Nameservers setup

Setup Your Nameservers on Directadmin To setup your nameservers, simply do the following: – Login to your DirectAdmin panel as “admin”– Go to your IP Management section, and add two new IP addresses– Once...

Load monitoring

Load monitoring and controlling#top#ps -aufx | grep nobody#ps -aufx | grep pkgacct#ps -aufx | grep mysql====================YOU CAN KILL NOBODY PROCESSESS #kill -9 pid#kill -9 $(pgrep -u nobody)#kill -9 `ps -u nobody -o “pid=”`#/etc/init.d/restart httpd======================EXIMto...

Plesk: mailqueue

How do I check the mail queue sendmail -bpIt will print a list of emailsCommand of check the number of messages waiting to be sent on the server is: /var/qmail/bin/qmail-qstat How to force qmail...

Wget Error

for wget http://where.the.rpm it returns: Code: # wget http://——.rpmbash: wget: command not found **Fixed my wget problem with: #yum install wget Share it..

Migration

Whm transfer gives bad file descriptor error During a transfer you may run into the following error: ——————————————————————————–Connecting to Remote Server Failed: Unable to connect to IP.ADDRESS:22: Bad file descriptor——————————————————————————— This error is shown...

Lxadmin

Reset Default Lxadmin Password via commandline/backend Sometimes when you intially setup Lxadmin, you can have problems resetting it from default. To get around this can you can do the following:1. Login via SSH to...

phpmyadmin

Maximum execution time of 300 seconds exceeded If you get following error while uploding large SQL file. “Fatal error: Maximum execution time of 300 seconds exceeded in /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/import/sql.php on line 118” Then edit config.default.php...

htaccess file:

php_value register_globals 0========================================DirectoryIndex index.php index.html=====================================php_value upload_max_filesize 20M========================================php_value display_errors off======================================== How to redirect a website using .htaccess RewriteEngine onRewriteCond %{HTTP_HOST} ^mysite.com$ [OR]RewriteCond %{HTTP_HOST} ^www.mysite.com$RewriteRule ^(.*)$ http://www.mysite.com/forum/$1 [R=301,L] Using the above code www.mysite.com will be redirected...

Restore directadmin data from backup drive

Direct Admin rsync process to restore accounts from backup drive. #Transfer /home data rsync -av –progress /backup/root/home / #Transfer important files from /etc drive. rsync -av –progress /backup/root/etc/passwd /etcrsync -av –progress /backup/root/etc/shadow /etcrsync -av...

Restore cpanel data from backup drive

# /etc User / IP’s + passwd files rsync -av –progress /oldroot/etc/passwd /etc/ rsync -av –progress /oldroot/etc/shadow /etc/ rsync -av –progress /oldroot/etc/group /etc/ rsync -av –progress /oldroot/etc/wwwacct.conf /etc/ rsync -av –progress /oldroot/etc/quota.conf /etc/ rsync...

Optimization WordPress Plugins & Solutions by W3 EDGE