Archive for 'Linux Tutorials'
WHM – How To change NameServer Ip
Posted on 14. Jan, 2012 by wiredgorilla.
TweetThe file that actually handles WHM > DNS Functions > Nameserver IPs area is at /var/cpanel/nameserverips.yaml location. If you want this to be changed, you’d want to make a backup of that file first and then modify it: cd /var/cpanel cp nameserverips.yaml nameserverips.yaml.bak110112 vi nameserverips.yaml
Continue Reading
How to change the hostname in Linux
Posted on 16. Jul, 2011 by wiredgorilla.
TweetIf you are new to linux you probably will wonder how to change the hostname of your computer or server. (A hostname is the unique name by which a network attached device is known on a network.) If you enter the wrong hostname during the installation, and you need to change the hostname, here is [...]
Continue Reading
Excluding Packages from Yum Update
Posted on 09. May, 2011 by wiredgorilla.
TweetWhen running a ‘yum update’ under CentOS, there are certain packages you may be running which you wish to remain static, or which can potentially cause errors with the update eg. Samba. In these situations it is useful to force yum to exclude certain packages from being updated under CentOS. Yum uses a configuration file [...]
Continue Reading
Fix corrupted RPM database on CentOS 5
Posted on 06. May, 2011 by wiredgorilla.
TweetIf rpm / yum command hangs during operations or you see error messages – it means your rpm database corrupted. /var/lib/rpm/ stores rpm database just delete the same and rebuild rpm database: Command to rebuild rpm database rm -f /var/lib/rpm/__db* rpm –rebuilddb -v -v
Continue Reading
cPanel transfer restore error
Posted on 06. May, 2011 by wiredgorilla.
TweetForcing the restore of a transfered cPanel account , even if the new system says the username is all ready in use /scripts/restorepkg –force –skipres <account.tar.gz>
Continue Reading
How to install CPAN libwww-perl
Posted on 02. May, 2011 by wiredgorilla.
TweetWhen installing the CSF firewall on your CentOS server, you need to make sure that you have libwww-perl installed This is easily done by installed it with yum on CentOS 5 yum install perl-libwww-perl
Continue Reading
How to remove Tomcat on cPanel
Posted on 24. Dec, 2010 by wiredgorilla.
TweetWant to remove Tomcat from cPanel? Log-into your server as root using ssh: Execute the following command to stop the Tomcat process: # /usr/sbin/stoptomcat …and to remove the next files, enter: # rm -f /usr/sbin/starttomcat # rm -f /usr/sbin/startomcat # rm -f /usr/sbin/stoptomcat Finally, remove all mod_jk lines from httpd.conf, including addmodule, loadmodule, and include [...]
Continue Reading
Apache logs
Posted on 14. Nov, 2010 by wiredgorilla.
TweetIssues with suhosin or mod_security , then best check your Apache error logs tail -f /usr/local/apache/logs/error_log
Continue Reading
Rebuilding/Restarting Exim Mail Server
Posted on 17. Feb, 2010 by wiredgorilla.
TweetWhen troubleshooting the Exim log file: tail -f /var/log/exim_mainlog If you need to restart or rebuild Exim, you can dump your databases * /etc/exim.conf * /var/spool/exim/db Which Exim just rebuilds automatically by issuing the following command via SSH: rm -fv /var/spool/exim/db/* Then to start Exim: /scripts/eximup –force
Continue Reading
Linux server tip: force reboot/shutdown
Posted on 23. Apr, 2009 by wiredgorilla.
TweetForcing reboot A Linux Server is not Windows XP and if reboot fail you usually still connect by SSH and do something. This commands will show you how to remotely hard reboot machine. Hard reboot mean that shutdown scripts will not run and machine reboot immediately without syncing hard disk drives, shutdown applications etc, it’s [...]

