Install vsftpd

login into the server as root. Go to the /usr/local/src/ folder and download the latest version of vsftpd……. # cd /usr/local/src/ # wget ftp://vsftpd.beasts.org/users/cevans…d-2.0.5.tar.gz untar the tar.gz file. # tar -zxvf vsftpd-2.0.5.tar.gz Go to the directory and run the make file. # cd vsftpd-2.0.5 # make Once it has finished compile and execute it #… Continue reading Install vsftpd

cPanel commands run from root.

Common cPanel commands that are used in root. Restart chkservd: /etc/init.d/chkservd restart Tail Apache log: tail -f /usr/local/apache/logs/error_log Updates the cpanel server software: /scripts/upcp Reinstalls exim: /scripts/exim4 View traffic or if you think a site is being DDoS: cd /usr/local/apache/domlogs tail -f targetsite.com Correct bandwidth issues /scripts/cleanbw To fix problem in webalizer that stop updating… Continue reading cPanel commands run from root.

Published
Categorized as cPanel

How to import and export a mysql database as root

MySQL Backup mysqldump -u root -p DBNAME > BKPNAME.sql ———– MySQL Restore mysql -u root -p DBNAME < BKPNAME.sql You pay leave out the “-p” and it won’t ask you for the root password – -p, –password[=name] Password to use when connecting to server. If password is not given it’s asked from the tty.

Installing Subversion

It’s best to upgrade to Apache 2.2 with the DAV module enabled, but you may be able to get away with Apache 1.3 with DAV. cd /usr/src wget http://www.webdav.org/neon/neon-0.25.5.tar.gz tar -xvzf neon-0.25.5.tar.gz cd neon-0.25.5 ./configure && make && make install cd ../ mv neon-0.25.5 neon After the installation, download the subversion sources from here: http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=260&expandFolder=74… Continue reading Installing Subversion

Installing DomainKeys

DomainKeys, similar to SPF records, authenticate that an email was sent from an authorized sender.  Several mail services such as Hotmail and Yahoo have started requiring these…luckily they are easy to set up in your cPanel. System requirements 1. cPanel/WHM v11.x with the latest build 2. Your Mail server must be using Maildir format and… Continue reading Installing DomainKeys

cPanel FAQ for VPS

From: http://www.cpanel.net/docs/whm/FAQ.htm Q: I’m having server problems but the problem is not listed below. What should I do? A: There are two options: You can search the Knowledgebase in WebHost Manager. The is explained in the support part of this manual. You can search the CPanel forums – http://support.cpanel.net/ Q: How do I login to… Continue reading cPanel FAQ for VPS

Cpanel disk used incorrect showing unlimited or 0MB

You can fix this by running the script  /scripts/fixquotas is this doesn’t work and you are using Virtuozzo or OpenVZ you will need to set the QUOTAUGIDLIMIT perimeter – this allows the system to allocate user IDs (UID) e.g (openvz) vzctl set 101 –quotaugidlimit 1000 –save then run the scrip “/scripts/fixquotas” and it should all… Continue reading Cpanel disk used incorrect showing unlimited or 0MB

Linux slow name resolution (DNS)

source # vi /etc/modprobe.conf add to the bottom of file: alias ipv6 off alias net-pf-10 off # reboot or before you reboot, also check out: # grep hosts /etc/nsswitch.conf #hosts: db files nisplus nis dns hosts: files dns Your /etc/nsswitch.conf should look similar to this: # # /etc/nsswitch.conf # # An example Name Service Switch… Continue reading Linux slow name resolution (DNS)

DirectAdmin yum.conf

vi /etc/yum.conf [main] cachedir=/var/cache/yum debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=centos-release tolerant=1 exactarch=1 retries=20 obsoletes=1 gpgcheck=1 # PUT YOUR REPOS HERE OR IN separate files named file.repo # in /etc/yum.repos.d exclude=apache* httpd* mod_* mysql* MySQL* da_* *ftp* exim* sendmail* php*