Skip to Content

tag

Tag Archives: linux

post

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 Read more »

post

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 “http://www.basicconfig.com/linux/vi” (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 : http://192.168.99.10/index.php

— 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.

post

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/

Attachments:

backupmng.zip(106Kb)

http://kb.parallels.com/9351