Gentoo Blog

The ultimate Gentoo Blog
  • rss
  • Home
  • About

Turning off safe_mode and register_globals in Plesk

Simon | May 27, 2009

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

Kommentare
Keine Kommentare »
Kategorien
confixx/Plesk
RSS Kommentare RSS Kommentare
Trackback Trackback

Plesk move your apache vhost directory

Simon | October 2, 2008

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

Kommentare
Keine Kommentare »
Kategorien
confixx/Plesk
RSS Kommentare RSS Kommentare
Trackback Trackback

Confixx Mod-Rewrite

Simon | September 5, 2008

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 domian you wish to edit

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

<Directory "/var/www/webxx/html">
Options +FollowSymLinks +SymLinksIfOwnerMatch +Multiviews
AllowOverride All
</Directory>

Please change the path and the webxx entry accordingly.

4. Create a .htaccess in the html directory

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.

Kommentare
Keine Kommentare »
Kategorien
confixx/Plesk
RSS Kommentare RSS Kommentare
Trackback Trackback

Howto migrate a confixx server

Simon | February 27, 2008

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

Kommentare
Keine Kommentare »
Kategorien
confixx/Plesk
RSS Kommentare RSS Kommentare
Trackback Trackback

Migration Manager error

Simon | January 8, 2008

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/

Kommentare
Keine Kommentare »
Kategorien
confixx/Plesk
RSS Kommentare RSS Kommentare
Trackback Trackback

Plesk hosting update failed

Simon | November 29, 2007

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.

Kommentare
Keine Kommentare »
Kategorien
confixx/Plesk
RSS Kommentare RSS Kommentare
Trackback Trackback

Change your IP in Plesk

Simon | November 15, 2007

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

Kommentare
1 Kommentar »
Kategorien
confixx/Plesk
RSS Kommentare RSS Kommentare
Trackback Trackback

confixx ip change

Simon |

First configure your network device with you new IP. If you want to keep everything working consider using eth0:1 or iproute2 to configure additional IP’s. Then login to the confixx webinterface click on settings standard domain and change your IP address to the new one. Confixx will start working in the background and change your apache and postfix settings to reflect the new IP. However confixx forgets a few essential things.

1. The IP address for the confixx webinterface

2. The confixx_mhost.conf

Make sure you have you Mysql root login handy. Log in to Mysql with your root password.

mysql -u root -p

use confixx;

UPDATE `admin` SET `confixx_ip` = '83.110.x.new' WHERE `confixx_ip` = '84.110.x.old' ;

That’s it please make sure to backup your confixx database before you preform these steps.

Then the confixx_mhost.conf normally under

/etc/apache/confixx_mhost.conf

or /etc/httpd/conf/confixx_mhost.conf

open the file with vi confixx_mhost.conf

and use the search and replace function in vi

:%s/your_old_ip/your_new_ip/g

That’s it you should have a running confixx with your new IP. Important before you preform these steps don’t forget to send DNS updates for all you Domains. Otherwise you will be left disconnected domains.

Kommentare
Keine Kommentare »
Kategorien
confixx/Plesk
RSS Kommentare RSS Kommentare
Trackback Trackback

 

March 2010
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031  

Links

  • AGF Clan
  • Gentoo
  • http.net
  • michael-fuchs.net

Categories

  • confixx/Plesk
  • fun
  • Gentoo
  • iptables
  • news
  • Stuff
  • Ubuntu/Debian
  • Xen/Vmware

Search Blog

rss RSS Kommentare valid xhtml 1.1 design by jide powered by Wordpress get firefox