Gentoo Blog

The ultimate Gentoo Blog
  • rss
  • Home
  • About

Change Document Root Plesk

Simon | August 20, 2010

1. In the directory

/var/www/vhosts/example.com/conf create a file called vhost.conf

2. Edit the file with a text editor and add the following line:

Documentroot /my/new/DocumentRoot

3. Then execute the following command

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

4. Okay thats it reload the apache webserver

/etc/init.d/apache2 reload

Share on Facebook
Kommentare
Keine Kommentare »
Kategorien
confixx/Plesk
RSS Kommentare RSS Kommentare
Trackback Trackback

Plesk drweb antivirus update cron mails

Simon | May 7, 2010

A cron is run every 30 minutes to check on virus database updates via /etc/cron.d/drweb-update, which sends an email every 30 minutes to the plesk server admin. Most of our customers don’t like the behavior.

To resolve, direct the output to /dev/null or to a log file instead if you need to keep a watch on the updates.

1. Edit /etc/cron.d/drweb-update redirecting the output to /dev/null

vi /etc/cron.d/drweb-update

2. Add the following line

*/30 * * * * drweb /opt/drweb/update.pl >/dev/null 2>&1

This would direct all out put from the drweb update script to /dev/null (trash)

Share on Facebook
Kommentare
Keine Kommentare »
Kategorien
confixx/Plesk
RSS Kommentare RSS Kommentare
Trackback Trackback

Confixx + Postfix+ IMAP + Maildir

Simon | May 4, 2010

This howto describes howto get rid of the horrible mboxes for mail which confixx uses by default. Converting all your mailboxes to the maildir format also allows you to use imap. Please make backups of your confixx installation before you begin with this howto you have been warned:

1. Edit your confixx main.conf

vi /root/confixx/confixx_main.conf

When your finished this is what it should look like:

$maildrop = ‘HOMEDIR/Maildir/’;
$mailBoxName = ‘Maildir’;
$pop_homeDir = ‘/var/mail’; //specify folder where you want maildirs to be stored. the folder must exist
$mail_realHome = ’1′;

2. Edit your postfix main.cf

vi /etc/postfix/main.cf

And add the following line:

home_mailbox = Maildir/

3. Edit your procmailrc

vi /etc/procmailrc

And add the following line:

DEFAULT=”$HOME/Maildir/”

4. Run the confixx counterscript

/root/confixx/confixx_counterscript.pl –fa -dbg

5. Convert existing Mboxes to Maildir. Confixx provides a script for doing this. Run the script and make sure to answer all the questions. Or except the defaults which should be ok.

/root/confixx/admin/contrib/convert_mb2md.pl

6. If you are using qpopper uninstall it and install courier pop and imap if you need imap. This is for debian and ubuntu:

aptitude purge openbsd-inetd qpopper
aptitude install courier-pop
aptitude install courier-imap

Thats it check you log files send a test mail and enjoy.

Share on Facebook
Kommentare
Keine Kommentare »
Kategorien
confixx/Plesk
RSS Kommentare RSS Kommentare
Trackback Trackback

How do I change the address Qmail sends the MAILER DAEMON messages to

Simon | April 8, 2010

By default Plesk administrator’s email address is listed in:

/var/qmail/alias/.qmail-mailer-daemon
/var/qmail/alias/.qmail-postmaster
/var/qmail/alias/.qmail-root

You can edit these files and set the email address you need.

Share on Facebook
Kommentare
Keine Kommentare »
Kategorien
confixx/Plesk
RSS Kommentare RSS Kommentare
Trackback Trackback

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

Simon | March 31, 2010

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

Share on Facebook
Kommentare
Keine Kommentare »
Kategorien
confixx/Plesk
RSS Kommentare RSS Kommentare
Trackback Trackback

Confixx on Debian Lenny and Umlautdomains

Simon | March 22, 2010

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.

Share on Facebook
Kommentare
Keine Kommentare »
Kategorien
confixx/Plesk
RSS Kommentare RSS Kommentare
Trackback Trackback

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

Share on Facebook
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

Share on Facebook
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.

Share on Facebook
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

Share on Facebook
Kommentare
Keine Kommentare »
Kategorien
confixx/Plesk
RSS Kommentare RSS Kommentare
Trackback Trackback

« Previous Entries

 

September 2010
M T W T F S S
« Aug    
 12345
6789101112
13141516171819
20212223242526
27282930  

Links

  • Gentoo
  • http.net
  • iphone software linux
  • michael-fuchs.net
  • Ubuntu

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