Tuesday, March 25th, 2008
You can display the current root password for mysql (if the host is running ensim), by using the following command.
# ensim-python -c "import sys;sys.path.append(\"/usr/lib/opcenter/mysql\");import mysqlbe;print mysqlbe.read_mysqlpass()"
Share This
Tags: Ensim
Posted in Quick Tip | No Comments »
Friday, February 22nd, 2008
We ran into an issue when installing Fantastico. After clicking the installation button, everything seemed to download just fine, but every time you go back to the Fantastico link it says it is not installed.
It turns out, Fantastico uses wget to download files. wget is called with the ‘-P’ option, which is not honored in the recent version of wget. In order to get around this, I found the following post useful: http://www.netenberg.com/forum/index.php?topic=5430.0
Read the rest of this entry »
Share This
Tags: cPanel, Fantastico, Install, WHM
Posted in Linux, Quick Tip, cPanel | No Comments »
Saturday, January 19th, 2008
We have all been there before. Your server crashed, nothing indicates what happened. You check /var/log/messages and all you see is.. well.. nothing. With no sign of what happened, or indication of why it happened you are left to.. wait until it happens again.
On Red Hat based systems, you have an answer. NetDump (diskdump may work as well, more on that another time). Below we will explore the steps required to setup and test netdump.
Read the rest of this entry »
Share This
Tags: crash, kernel panic, Linux, netdump
Posted in Linux | No Comments »
Friday, January 4th, 2008
If you have a dedicated Linux server, this list is for you. Below are a few items you need to do, to ensure your 2008 will be a bit brighter. This list is by no means comprehensive, but hopefully gets you started in the right direction this year.
- Check your backups and perform a full system backup (or setup a backup routine! Now!).
If you have backups configured, validate they are actually being run. Check the last date / time of the backups to ensure they are running as expected. If possible, test the restore process.
Perform a full system backup and copy this backup offsite, to a provider like rsync.net
Read the rest of this entry »
Share This
Tags: Checklist, Linux
Posted in Linux, Quick Tip | No Comments »
Friday, December 7th, 2007
Here was the scenario I faced. RHEL4 machine will not boot (according to data center), receives various library not found errors on bootup (Later, I found these errors were from an intruder who tried to install a rootkit, and it didn’t go so well. Most of /bin was corrupt).
The data center recommends that the operating system be reloaded onto a separate disk, which will become the primary, and then mount the old disk as a different mount point for reference / restore. The data center reloaded the operating system, and the customer then found our services online and asked for assistance.
Read the rest of this entry »
Share This
Tags: Backup, Linux, Plesk, Restore
Posted in Linux, MySQL, Security | No Comments »
Wednesday, December 5th, 2007
When running a ‘yum check-update’, I would receive an error. The error continued even after running ‘yum clean all’.
The error is shown below:
# yum check-update
Setting up repositories
core 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 1.2 kB 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 1.0 MB 00:00
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
Read the rest of this entry »
Share This
Tags: error, Linux, yum
Posted in Linux | 1 Comment »
Wednesday, October 17th, 2007
We deal with security related issues nearly every day. Many of these issues could be prevented with a few minor changes to php.ini along with the installation of mod_security. It is simply amazing how many machines are hacked, and then used for the sole purpose of sending spam, denial of service (DoS) attacks or Botnets.
Read the rest of this entry »
Share This
Tags: Apache, Firewall, PHP, Security
Posted in Apache, Linux, Quick Tip, Security | 1 Comment »