CentOS Linux VMWare

Install VMware Tools in CentOS 6.1 command line

Here is how I went about installing VMware Tools on CentOS 6.1 using the command line.

1.In VMware Fusion or Sphere Client: Virtual Machine / Guest > Install/update VMware Tools
2. Within the VM – using command line (I’m not using x) at the prompt:
3. mkdir /mnt/cdrom
4. mount the virtual cdrom using; mount /dev/cdrom /mnt/cdrom
5. cd /tmp
6. tar -xvf /mnt/cdrom/VMwareTools* or tab to auto complete
7. cd vmware* or tab to auto complete
8. ./; accepting defaults throughout. (If not already installed – yum install perl)
9. umount /mnt/cdrom
10. In Fusion / Vsphere Client VMware tools should now display as installed. Check via Virtual Machine / Guest > Install/VMware Tools > will display as “Reinstall” or “OK” version dependant.

CentOS HowTo Guides Linux Plesk

1and1 default Plesk partition – resizing guide

1and1 have been regularly criticized for their unusual partitions on default installations of their dedicated servers – but this is the first time I have been affected. One of our dedicated servers started producing Postfix SMTP errors – caused by low disk space.

Upon investigation, the default partitions on my 1&1 Plesk 10.4 server came set at 4Gb, and my ‘var’ partition was full. The used space is all genuine files, so my only option was to increase the partition. On Windows this is quite a complex procedure, requiring additional applications – however following a simple guide made this a 5 minute procedure. Here are the steps that I took

CentOS Linux Plesk

MySQL 5.5 update breaks scheduled backups

Found that a recent update of our Plesk 9.5.4 server had broken the scheduled backups although manual backups were still working fine. Its seems that after updating PHP to 5.3 and MySQL to version 5.5 the Plesk Backup Manager was erroring

CentOS HowTo Guides Linux

Setup simple CentOS Linux webserver

We recently needed a quick and easy web server for internal development and testing. I decided to use CentOS as we have a few root servers with 1&1 which run the same Linux version, CentOS also comes pre-installed with Yum which is a feature that allows you to download and install software easily from the command line.

Installing CentOS was simple, and after choosing the command line server version, deselecting all additional packages – the install only took a few minutes… Infact, it took longer to download the ISO’s than it did to install the OS!

After the CentOS 5.5 Install :

— Update all the OS bits using yum (read more on yum)

yum update

— Install the Web server bits

yum install php php-mysql mysql-server php-gd postgres ImageMagick ImageMagick-devel

— Now add a test file to the root of HTML files we will us “” (read more on vi)

vi /var/www/html/index.php

Press “i” to start inserting test into your new file, type “<? phpinfo(); ?>” to allow us to check that PHP is up and running. Finish your file by returning to vi command by pressing “esc” then write and quit by typing “:wq

— To find the IP of your server (if provided by DHCP) to allow us to browse from our network

ifconfig | grep "inet addr"

— In your browser window, visit your web servers internal IP – you should see a PHP Info readout

eg :

— Now start the MySQL service

service mysqld start

— The service should start and display “OK” when it has, set a root password

/usr/bin/mysqladmin -u root password 'mynewpassword'

And that’s pretty much it. If you want to access the server without being on the server itself, you can access with SSH / SFTP / etc – and of course if you want to expose your server to the outside world, you can forward web traffic to the static IP of your web server.

CentOS Linux Plesk

Segmentation fault for backupmng

After a recent upgrade to Plesk 9.5 for Linux, I started receiving the following error messages on a daily basis :

/bin/sh: line 1: 2462 Segmentation fault /usr/local/psa/admin/sbin/backupmng> /dev/null 2>&1;

It seems that, when Plesk performs a backup using backupmng utility, there is an error, and you may find errors simliar to below in /var/log/messages log file :

Mar 24 01:33:02 : backupmng[30573]: segfault at 0000000000000010 rip 00000039b6a4a855 rsp 00007fff4fa91710 error 4

Resolution – provided by Plesk

Fixed backupmng utility for CentOS 5 and Debian 5 in attached file.

For fix installation replace %plesk_dir%/admin/sbin/backupmng file by file from attach and correct owner and permissions, it should be root:root, 750.

A simple command to ensure permissions are correct; chown and chmod:

chown root:root /usr/local/psa/admin/sbin/backupmng
chmod 750 /usr/local/psa/admin/sbin/backupmng

Note: %plesk_dir% is environment variable which points to Plesk installation folder. By default it is /usr/local/psa/