Category Archives: confixx/Plesk

Confixx Can’t locate Confixx/Filter.pm after Upgrade to Debian Lenny

I received this error message after updating a Confixx Server to Debian Lenny when you try an run the Confixx counter script. This is how to fix the problem:

1. Change into the Confixx Admin directory

cd /root/confixx/admin/CPAN

2. Unpack the updater archive

tar -xzf Updater-1.0.6.tar.gz

3. Change into the directory

cd Updater-1.0.6

4. Then build the updater package

perl Makefile.PL
make
make install

This lead to a new error:

Can't locate XML/DOM.pm

5. To get rid of these errors you need to install the following packages;

aptitude install libxml-dom-perl libproc-process-perl

Thats it you should be able to run you Confixx Counter script again give it a try:

/root/confixx/confixx_counterscript.pl --dbg --force-all

Confixx on Debian Lenny and Umlautdomains

Confixx can handle IDN (international domain names) domains including Umlaute (ä,ü,ö). Normally you should be able to type your domain into the Confixx webinterface including (ä,ü,ö) and Confixx should generate punycode for the apache vhost config and the dns zone files. This stopped working in Debian Lenny due to the apache package in Lenny which was compiled with LANG=C. To get this function to work again open the following file with your favorite editor:

vi /var/www/confixx/html/include/idn_functions.php

If you are using Suse you will need to look under /srv/www. And add the following line at the top of the file under the comments:

setlocale(LC_ALL, "de_DE.UTF-8");

Thats it IDN domains should work again.

Turning off safe_mode and register_globals in Plesk

Create a file called “vhost.conf” in the directory “/var/www/vhosts/example.com/conf/”

<Directory /var/www/vhosts/example.com/httpdocs>
php_admin_value safe_mode off
php_admin_flag register_globals on
</Directory>

Rebuild the domain config for the particular vhost with:

/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=example.com

Or rebuild all vhosts if you changed more than one with:

usr/local/psa/admin/sbin/websrvmng -a

You can also change other settings this way here are some examples:

php_admin_value post_max_size 25M
php_admin_value upload_max_filesize 20M
php_admin_value open_basedir none

Plesk move your apache vhost directory

To move your apache vhost directory in plesk do the following

cd /usr/local/psa/bin
./transvhosts.pl --source-dir /my/old/directory --dest-dir /my/new/directory --correct-scripts

The new directory must exist even though the script help says it will create missing directories it did not work for me. The correct script option will change all the vhost configs for you. Watch out for trailing slashes or you will have incorrect paths in your vhost configs. Another thing i noticed some of our vhosts had double slashes in there path names to correct this issue

/usr/local/psa/admin/sbin/websrvmng -a -v

Confixx Mod-Rewrite

To use Mod-Rewrite in Confixx for a certain vhost you must do the following

1. Log in to confixx as admin and select http special

2. Choose the customer or domain you wish to edit

3. Select advanced options an copy the following text into the provided text box

<Directory "/var/www/##user##/html">
Options +FollowSymLinks +SymLinksIfOwnerMatch +Multiviews
AllowOverride Indexes AuthConfig Limit FileInfo
</Directory>

Please change the path entry accordingly. ##user## matches all web users. You could also change the AllowOverride line to:

AllowOverride All

But this is not necessary if you are only planing on running Mod-Rewrite.

Example:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^(.*)$ http://www.example.com/ [L,R=301]

This rule should rewrite all non www URL’s with www.

Howto migrate a confixx server

You can perform a complete backup or a restore of all confixx data with the confixx scripts backup.pl/restore.pl and transfer them to a new server.

Important you need the same confixx version on both servers otherwise the restore is guaranteed to fail due to different tables in mysql

1. Start the backup on your source server. This command will create the backup files they will be automatically split into 2GB files.

# ./backup.pl –dump migration.tgz -dbg

2. Transfer the backed up files to the target server with scp use the following command (please change the IP to your target server) make sure you have enough space on the /root partition or change the path

# scp migration.tgz.a* root@213.99.99.99:/root

3. Start the restore process and create the map file. Warning only use -–clean on a fresh install otherwise you will delete you database and your webs. Issue the following command

# ./restore.pl –mapping –dump migration.tgz –map restore.txt –clean –debug

4. Edit the file restore.txt and make you changes check the following link

http://kb.swsoft.com/en/579

5. Now you can start the restore

# ./restore.pl –restore –dump migration.tgz –map restore.txt –clean –debug

For further information please check the following links to the swsoft knowledge database

http://kb.swsoft.com/en/578

http://kb.swsoft.com/en/580

PS: you must register confixx with a valid key before you can begin the restore

Migration Manager error

Today i tried to migrate a customers plesk server with suse 10.0 to his new server with fedora 7. I started the Plesk migration tool and received the following error in German

Einige Felder sind leer oder enthalten einen ungültigen Wert.

Some fields are empty or include an incorrect value.

So i started looking for the problem. I checked the log files on the source server and came across the following error message

no more sessions

You can search for this error with the following command

grep "no more sessions" /var/log/*

The problem is suse’s version of the ssh server which is patched. The solution is to either compile the ssh server yourself or install a new rpm version (easier). If you are using suse 10 x86 use these commands

wget ftp://ftp.hosteurope.de/mirror/ftp.opensuse.org/distribution/SL-10.0-OSS/inst-source

/suse/i586/openssh-4.1p1-10.i586.rpm (goes on one line)

rpm -Uvh --force openssh-4.1p1-10.i586.rpm

If you are using another version as in am64 or ppc please donwload the correct ssh package from

 

ftp://ftp.hosteurope.de/mirror/ftp.opensuse.org/distribution/SL-10.0-OSS/inst-source/suse/

Plesk hosting update failed

I came across this error yesterday for the first time in Plesk 8.2.1. Following solution corrected the error

1. Log in to the Mysql shell as root or open phpmyadmin as admin/root user.

2. Issue the following command in the Mysql shell

UPDATE psa.hosting SET webstat = 'none' WHERE webstat = '';

If you use phpmyadmin invoke the command without the “;” symbol at the end.

Change your IP in Plesk

Changing you IP in Plesk is a lot easier than in confixx. Swsoft provides a script for doing this.

The utility is available in the $PRODUCT_ROOT/bin directory. Normally something like /usr/local/psa/bin

The script is called reconfigurator.pl

The new IP addresse must NOT exist in Server > IP Addresses list in Plesk control panel before replacement, they may be added on system level only. If IP addresses do not exist in the system, the utility will add new IPs to the system as well. I recommend not to add the IP address prior to running the script because the reconfigurator.pl script takes care of this for you.

First, you have to run the command to create a template file. Then, edit the file to set an appropriate IP mapping and run the command once again.

The map file will contain the list of your current IP addresses.

You’ll need to edit the file with the new IP address (please, note that the new IP comes on the right hand side of the arrow):

eth0:your_old_ip 255.255.255.0 -> eth0:your_new_ip_address 255.255.255.0

For example:

1. $PRODUCT_ROOT/bin/reconfigurator.pl ip_map.txt
2. Modify ip_map.txt file
3. $PRODUCT_ROOT/bin/reconfigurator.pl ip_map.txt