Monthly Archive: February 2009

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...

Linux Directory structure and basic commands.

Linux Directory StructureLinux directory hierarchy: This includes the root directory and all of its subdirectories. =========================Table of Contents============================IntroductionThe Linux directory hierarchy at a glanceTop level directorySubdirectoriesThe Linux Filesystem Hierarchy//bin/boot/dev/etc/home/lib/mnt/lost+found/opt/proc/root/sbin/tmp/usr/var========================Introduction==================================In the Linux operating system, all...

DDOS Attack

First aid for DDOS attack on port 80 We can use the following steps to recover our server from a DDOS attack on the port 80. To do this you must have logged into...

Fantastico Installation And Troubleshotting

Fantastico Installation And troubleshotting:================================Installation of Fantasico.====================================To install fantastico run the following commands and then finish install from WHM.cd /usr/local/cpanel/whostmgr/docroot/cgiwget -N http://files.betaservant.com/files/free/fantastico_whm_admin.tgztar -xzpf fantastico_whm_admin.tgzrm -rf fantastico_whm_admin.tgz Now go to WHM, login as root and follow...

Optimization WordPress Plugins & Solutions by W3 EDGE