Category: Uncategorized

  • CloudLinux to CentOS

    To converts CloudLinux back to CentoOS [bash] wget http://repo.cloudlinux.com/cloudlinux/sources/cln/centos2cl yum remove liblve-devel sh centos2cl -c yum remove lve liblve lve-utils lve-stats [/bash] After the rebuild apache by running EasyApache and it’s done [bash] /scripts/easyapache [/bash]

  • DirectAdmin log files path

    Below are the path of directadmin log files DirectAdmin: [bash] /var/log/directadmin/error.log /var/log/directadmin/errortaskq.log /var/log/directadmin/system.log /var/log/directadmin/security.log [/bash] Apache: [bash] /var/log/httpd/error_log /var/log/httpd/access_log /var/log/httpd/suexec_log /var/log/httpd/fpexec_log /var/log/httpd/domains/domain.com.error.log /var/log/httpd/domains/domain.com.log [/bash] Proftpd: [bash] /var/log/proftpd/access.log /var/log/proftpd/auth.log [/bash] pop3/imap: [bash] /var/log/maillog /var/log/messages [/bash] Bind(named): [bash] /var/log/messages [/bash] exim(smtp): [bash] /var/log/exim/mainlog /var/log/exim/paniclog /var/log/exim/processlog /var/log/exim/rejectlog [/bash] NOTEO: On FreeBSD there may be prefix “exim_” MySQL: RedHat:…

  • Recover cPanel from crashed harddisk

    Today I got another issue of crashed hard-disk. The clients data center installed cPanel on new hard disk and attached the old hard disk as secondary device. Unfortunately if it happens on your server you can use the below steps to restore the data. mount the old hard disk [bash] mkdir /mnt/oldhd mkdir /mnt/oldhd/usr mkdir…

  • Move MySQL to new folder or hard drive

    You will ofter comes across time when partition containing MySQL will started to fill up and you need to move it to  a new directory. So to move MySQL to new directory first of all stop the MySQL service [bash] [root@servertechsupport ~]# /etc/init.d/mysql stop [/bash] Note: If you are using cPanel Make sure you disable…

  • cPanel tranfer large account

    If you are system administrator you will regularly come across tasks of migrating extremely large accounts, some have even size of terabytes. In this case you can’t simply use the pkgaccount function and transfer whole account. As it takes very long time to finish and 95% of the time you will always find files missing…

  • cPanel Exim route email to another server for single domain

    Recently we migrated our site to a new server and updated the DNS. But as you all know it take some for time for it to propagate. And during that time the emails may still be sent to old server. So I added the below lines to exim to configuration on our old server. It…

  • aspx page not working

    If you go to “Internet Information Services Manager” on your server you should see your “Web Sites” folder as well as a “Web Service Extensions” folder. In that folder there are some services listed there (depending on what you have installed) and you should have “ASP.NET v2.0.50215” listed. Make sure the service is set to…

  • Kloxo/Lxadmin reset admin password

    You can reset the kloxo admin password from the shell incase you forgot it. [bash] /script/resetpassword master newpassword [/bash] For LxAdmin [bash] cd /usr/local/lxlabs/lxadmin/httpdocs/ lphp.exe ../bin/common/resetpassword.php master newpassword [/bash]

  • Perl Send Error to Browser

    Displaying errors on the browser is insecure and not a good practice but if you want to debug the script and fix it then it will much easier if the errors are displayed on the browser itself and you can you disable it later. Add the following lines to script for sending debugging info to…

  • Free Public DNS Server

    Google 8.8.8.8 8.8.4.4 Dnsadvantage 156.154.70.1 156.154.71.1 OpenDNS 208.67.222.222 208.67.220.220 Norton 198.153.192.1 198.153.194.1 GTEI DNS (now Verizon) 4.2.2.1 4.2.2.2 4.2.2.3 4.2.2.4 4.2.2.5 4.2.2.6 ScrubIt 67.138.54.100 207.225.209.66