Archive for the ‘Plesk Linux’ Category

Error:
Latest update of the openssl package from CentOS breaks Parallels Panel 9.x. The following errors are displayed in the /var/log/sw-cp-server/error_log file when Panel is trying to start:

# tail /var/log/sw-cp-server/error_log
2010-04-07 01:56:38: (log.c.75) server started
2010-04-07 01:56:38: (network.c.336) SSL: error:00000000:lib(0):func(0):reason(0)
2010-04-07 01:57:59: (log.c.75) server started
2010-04-07 01:57:59: (network.c.336) SSL: error:00000000:lib(0):func(0):reason(0)
2010-04-07 01:57:59: (log.c.75) server started
2010-04-07 01:57:59: (network.c.336) SSL: error:00000000:lib(0):func(0):reason(0)
2010-04-07 02:13:38: (log.c.75) server started
2010-04-07 02:13:38: (network.c.336) SSL: error:00000000:lib(0):func(0):reason(0)
2010-04-07 02:13:38: (log.c.75) server started
2010-04-07 02:13:38: (network.c.336) SSL: error:00000000:lib(0):func(0):reason(0)

# service psa start
Starting xinetd service… done
Starting named service… done
Starting mysqld service… done
Starting postgresql service… not installed
Starting psa-spamassassin service… done
Plesk: Starting Mail Server… already started
Starting mail handlers tmpfs storage
Starting Plesk… failed
Starting drwebd service… not installed
#

Solution:
To fix this you need to update Parallels Panel web-engine. Please refer the following steps.

1. Download the appropriate package using the wget utility. Example for CentOS 5 x86:
#wget -c http://kb.parallels.com/Attachments/12669/Attachments/sw-cp-server-1.0-6.201004011105.centos5.i386.rpm

2. Install the downloaded package. Example for CentOS 5 x86:

#rpm -Uhv sw-cp-server-1.0-6.201004011105.centos5.i386.rpm

# rpm -Uhv sw-cp-server-1.0-6.201004011105.centos5.i386.rpm
Preparing… ########################################### [100%]
Stoppping SWsoft control panels server… stale pidfile. [ OK ]
1:sw-cp-server ########################################### [100%]
Starting SWsoft control panels server…[ OK ]
-bash-3.2# service psa start
Starting xinetd service… done
Starting named service… done
Starting mysqld service… done
Starting postgresql service… not installed
Starting psa-spamassassin service… done
Plesk: Starting Mail Server… already started
Starting mail handlers tmpfs storage
Starting Plesk… done
Starting drwebd service… not installed
-bash-3.2#

Please edit /etc/drweb/drweb_qmail.conf to stop receiving DrWeb notification messages…

Read the rest of this entry »

Login to shell using root user then tun following commands to install YUM.

[root@server]#mkdir /root/support  && cd /root/support

[root@server]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/gmp-4.1.4-10.el5.i386.rpm

[root@server]#rpm -Uvh gmp-4.1.4-10.el5.i386.rpm

[root@server]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/readline-5.1-3.el5.i386.rpm

[root@server]#rpm -Uvh readline-5.1-3.el5.i386.rpm

[root@server]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-2.4.3-27.el5.i386.rpm

[root@server]#rpm -Uvh python-2.4.3-27.el5.i386.rpm

[root@server]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/libxml2-2.6.26-2.1.2.8.i386.rpm

[root@server]#rpm -Uvh libxml2-2.6.26-2.1.2.8.i386.rpm

[root@server]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/libxml2-python-2.6.26-2.1.2.8.i386.rpm

[root@server]#rpm -Uvh libxml2-python-2.6.26-2.1.2.8.i386.rpm

[root@server]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/expat-1.95.8-8.2.1.i386.rpm

[root@server]#rpm -Uvh expat-1.95.8-8.2.1.i386.rpm

[root@server]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm

[root@server]#rpm -Uvh python-elementtree-1.2.6-5.i386.rpm

[root@server]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/sqlite-3.3.6-5.i386.rpm

[root@server]#rpm -Uvh sqlite-3.3.6-5.i386.rpm

[root@server]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm

[root@server]#rpm -Uvh python-sqlite-1.1.7-1.2.1.i386.rpm

[root@server]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/elfutils-0.137-3.el5.i386.rpm

[root@server]#rpm -Uvh elfutils-0.137-3.el5.i386.rpm

[root@server]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/rpm-python-4.4.2.3-18.el5.i386.rpm

[root@server]#rpm -Uvh rpm-python-4.4.2.3-18.el5.i386.rpm

[root@server]#It will throw following error.

[root@server]# rpm -Uvh rpm-python-4.4.2.3-18.el5.i386.rpm

warning: rpm-python-4.4.2.3-18.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
popt = 1.10.2.3-18.el5 is needed by rpm-python-4.4.2.3-18.el5.i386
rpm = 4.4.2.3-18.el5 is needed by rpm-python-4.4.2.3-18.el5.i386
rpm-libs = 4.4.2.3-18.el5 is needed by rpm-python-4.4.2.3-18.el5.i386

In that case search dependencies in following URL

http://rpm.pbone.net/

[root@server]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/m2crypto-0.16-6.el5.6.i386.rpm

[root@server]#rpm -Uvh m2crypto-0.16-6.el5.6.i386.rpm

[root@server]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm

[root@server]#rpm -Uvh python-urlgrabber-3.1.0-5.el5.noarch.rpm

[root@server]#wget http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-3.2.22-20.el5.centos.noarch.rpm

[root@server]#rpm -Uvh yum-3.2.22-20.el5.centos.noarch.rpm

It will throw following error.

[root@server]# rpm -Uvh yum-3.2.22-20.el5.centos.noarch.rpm
warning: yum-3.2.22-20.el5.centos.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
error: Failed dependencies:
python-iniparse is needed by yum-3.2.22-20.el5.centos.noarch
rpm-python is needed by yum-3.2.22-20.el5.centos.noarch
yum-fastestmirror is needed by yum-3.2.22-20.el5.centos.noarch
yum-metadata-parser >= 1.1.0 is needed by yum-3.2.22-20.el5.centos.noarch

In that case search dependencies in following URL

http://rpm.pbone.net/

Once you complete all dependencies you can update yum by using following command

[root@server]#yum -y update

By default Plesk comes with php5 and SUEXEC enabled but if you want php4 as CGI on the Plesk server then you will have to disable SUEXEC on the server in order to run PHP4 otherwise it will show “internal server error”

Use following steps to resolve this:

find suexec on the server using following command.

whereis suexec

Result shows:

suexec: /usr/sbin/suexec /usr/sbin/suexec.saved_by_psa /usr/share/man/man8/suexec.8.gz

Then rename the suexec binary and that will disable suexec using following command:

mv /usr/sbin/suexec /usr/sbin/suexec_old

Restart httpd

service httpd restart

Thats all. You can check your phpinfo file on the server.

qmHandle is a simple program which allows you to view and manage the qmail queue.

Installation:

1) wget http://jaist.dl.sourceforge.net/sourceforge/qmhandle/qmhandle-1.3.2.tar.gz

2) tar xvzf qmhandle-1.2.0.tar.gz

3) chmod 777 qmHandle

4) ./qmHandle

qmhandle comands.

1) qmHandle -h ——>> List help for qmhandel commands.

2) qmHandle -s ——>> show statistics for qmail mailqueue.

3) qmHandle -a ——>> Deliver all mails in mailqueue.

While updating the PHP version to 5.2.X on plesk make sure to remove the previous RPM by using following command on command prompt and restart all the services on server after removing the previous php rpm’s.

yum clear php

Once the above steps done go to /usr/src/ and download the following patchs from http://www.atomicorp.com/channels/atomic/centos/4/i386/RPMS/ website which is trusted website for me.

php-5.2.8-1.el4.art.i386.rpm
php-bcmath-5.2.8-1.el4.art.i386.rpm
php-cli-5.2.8-1.el4.art.i386.rpm
php-common-5.2.8-1.el4.art.i386.rpm
php-devel-5.2.8-1.el4.art.i386.rpm
php-embedded-5.2.8-1.el4.art.i386.rpm
php-gd-5.2.8-1.el4.art.i386.rpm
php-imap-5.2.8-1.el4.art.i386.rpm
php-mbstring-5.2.8-1.el4.art.i386.rpm
php-mcrypt-5.2.8-1.el4.art.i386.rpm
php-mhash-5.2.8-1.el4.art.i386.rpm
php-mysql-5.2.8-1.el4.art.i386.rpm
php-pear-1.5.0-5.el4.art.noarch.rpm
php-suhosin-0.9.27-1.el4.art.i386.rpm
php-xml-5.2.8-1.el4.art.i386.rpm
php-xmlrpc-5.2.8-1.el4.art.i386.rpm

Once You downloaded the above RPM’s then update them using following command and that will update the php to 5.2.x Version.

rpm -Uvh –force *.rpm

Check the php version using php -v and you will see the updated PHP version. If incases you got "Unable to load dynamic library" this error while checking the php version just download the package again from the above link and that’s it.

NOTE: last thing .. just make sure the extension_dir in/etc/php.ini is set to /usr/lib/php/modules

Sysctl is an interface that allows you to make changes to a running Linux kernel. With /etc/sysctl.conf you can configure various Linux networking and system settings such as…

Read the rest of this entry »

How to setup your own private name servers on plesk

Login to plesk.

Server >> DNS Settings >> Soa Record Template >>

Edit the default template provided there.

Edit record type NS

Record type        NS                —————— Select NS from drop down menu
Enter domain name        ——-   .<domain>. —————— Keep this same as it is
Enter nameserver * ns1.servertechs.net             —————— Enter here the name server name you need to setup

Add DNS record to create another name server record NS2

Record type        NS                —————— Select NS from drop down menu
Enter domain name        ——-   .<domain>. —————— Keep this same as it is
Enter nameserver * ns2.servertechs.net             —————— Enter here the name server name you need to setup

===================================

You need to now add the domain in plesk

Now go to the domain control panel

Home >> Domains >> servertechs.net >> Website >> DNS Settings

Create A record for the name servers ns1 and ns2 and assign ip address for the nameservers (assign any two ips configured on the server)

Configure the name servers ip at your domain registrars control panel.

Its done.

==========================================

Plesk Upgrades to Plesk 9.X may result in MySQL errors while adding new Database user under Plesk.

Error under Plesk :
Table ‘mysql.procs_priv’ doesn’t exist

You can also check the same error under command line :

mysql> flush privileges;
ERROR 1146 (42S02): Table ‘mysql.procs_priv’ doesn’t exist
mysql>

This can be fixed using below command. This will try to repair/ recreate the tables having issues.

cat /usr/share/mysql/mysql_fix_privilege_tables.sql | mysql –no-defaults –force –user=admin -p –host=localhost –database=mysql

Note: Before executing this command, make sure that you have taken the full backup of MySQL.

Hope this helps :)

If the Plesk admin account becomes locked due to multiple failed logins, you have two options. The first is to wait till the lockout automatically resets (15 to 30 minutes) or use the following commands.

Redhat, once connected via SSH as root:

#mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e ‘DELETE FROM lockout’

or

#mysql -u admin -p Admin_password
#use psa;
#delete from lockout where login = ‘admin';

Be sure to replace “Admin_Password” with your current admin password for Plesk.