Posts Tagged ‘Plesk’

Cannot login to Horde Webmail (Plesk): Login Failed

March 18th, 2009

PROBLEM:
While Login into Webmail it returns the error: “Login failed”

SOLUTION:
Make sure that it is possible to connect to localhost:143 from the command line using telnet. If you get the error as below:
-=-=-
# telnet localhost 143
localhost/143: Name or service not known

-=-=-

then check /etc/hosts file. It must have permissions -rw-r–r– and contain the record for localhost in the following format:
-=-=-
127.0.0.1       localhost localhost.localdomain
-=-=-
Above is from From Parallels Knowledgebase

If /var/log/psa-horde/psa-horde.log shows something like:

FAILED LOGIN xx.xx.xx.xx to localhost:143[imap/notls] as me@mydomain.co.uk
FAILED LOGIN xx.xx.xx.xx to localhost:143[imap/notls] as me@mydomain.co.uk

I have searched regarding this but unable to find any fix so, I just re-installed the IMAP Service on the server. Following are the steps using which I have re-installed IMAP Server:
-=-=-
1) You can find the RPMS used by Plesk in /root/psa/PSA_version directory OR you can download the Tar (Not Autoinstaller) containing RPMS from Parallels website http://www.parallels.com/en/download/ (need registration it’s free)

2) go to the RPM directory which contains courier Imap RPM’s
#cd [path to the PSA RPM Directory]/dist-rpm-CentOS-4.2-i386/base/

3) Re-install courier-imap-3.0.8-cos4.build81070322.16.i586.rpm and psa-courier-imap-add-8.1.1-cos4.build81070322.16.i586.rpm which will automatically restart the services too
-=-=-
[root@vps base]# pwd
/root/plesk/dist-rpm-CentOS-4.2-i386/base
[root@vps base]# rpm -Uvh courier-imap-3.0.8-cos4.build81070322.16.i586.rpm psa-courier-imap-add-8.1.1-cos4.build81070322.16.i586.rpm –force
Preparing… ########################################### [100%]
Reloading configuration: [ OK ]
1:courier-imap ########################################### [ 50%]
Stopping Courier-IMAP server:
Stopping imap [ OK ]
Stopping imap-ssl [ OK ]
Stopping pop3 [ OK ]
Stopping pop3-ssl [ OK ]

Starting Courier-IMAP server:
Starting imapd [ OK ]
Starting imap-ssl [ OK ]
Starting pop3 [ OK ]
Starting pop3-ssl [ OK ]

2:psa-courier-imap-add ########################################### [100%]
Stopping Courier-IMAP server:
Stopping imap [ OK ]
Stopping imap-ssl [ OK ]
Stopping pop3 [ OK ]
Stopping pop3-ssl [ OK ]

Starting Courier-IMAP server:
Starting imapd [ OK ]
Starting imap-ssl [ OK ]
Starting pop3 [ OK ]
Starting pop3-ssl [ OK ]

[root@vps base]# netstat -nap | grep :143
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 1657/couriertcpd
[root@vps base]# telnet localhost 143
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
-=-=-

Managing log rotation in Plesk

March 18th, 2009

Plesk allows managing log files and log rotation settings from the control panel. To access these functions, click the Log Manager icon on the Domain Administration page (depending on the version of Plesk, you may need to click on the actual domain name instead of going to the domain administrator). The Log Manager page will open.

- Define the number of log file’s lines to be displayed at once. To do that, type in the number of lines in the Lines of log file to be displayed input field prior to selecting a log file for viewing.
- View a log file. To this effect, click on a log file’s name in the list. The log file contents will be displayed in a separate Log File Viewer window.
- Save a log file on your local machine. To do that, click on the appropriate icon. After that you will need to specify the location on your local machine and the file name for the downloaded log file to be saved, and then click Save.
- Delete log files. To this effect, select the corresponding checkboxes, and click Remove Selected.

To configure the log rotation preferences, follow these steps:

1. Click the Log Rotation icon on the Log Files Management page. The Log Rotation Preferences page will open.
2. Click the Enable or Disable icon respectively to enable/disable log rotation.
3. Select the log rotation condition:

- log file size – enter the size in kilobytes in the appropriate field
- time – select from the drop-down list. It can be set to Daily, Weekly, and Monthly.

4. Specify the maximum number of log files in the appropriate input field, if desired. The maximum number is the number of processed files to be kept for each log file.
5. Select the Compress log files checkbox to enable compression.
6. If desired, in the Send processed log files to e-mail input field, enter the e-mail address, for the processed log files to be delivered to.
7. Click OK to submit changes.

Unable to add a recipient when trying to send an email with webmail.

February 4th, 2009

If I compose and send a message with webmail the following error appears:

There was an error sending your message: unable to add recipient
[name@domain.com]: Invalid response code received from server.

Please add the following record to Server > Mail > White list in Plesk CP:

127.0.0.1 /8

If you are not able to add that record, you can also try 127.0.0.1/255.255.0.0 or 127.0.0.1/255.0.0.0

If the record is already there, you may want to remove it and then add it again. This normall is the case if you have reinstalled any of the courier/imap components on the server (This would affect the whitelist). Ultimately, if you nothing else works, you can also add the actual ip/ip’s of the server as well.

Ioncube Installation On Linux Plesk Server

January 29th, 2009

Ioncube installation on Linux Plesk server.

1) Download the tar.gz file which is compatible with your server from “http://downloads.ioncube.com/”
wget http://downloads2.ioncube.com/loader…lin_x86.tar.gz

2) Untar the downloaded file.
tar -zxf ioncube_loaders_lin_x86.tar.gz

3) Move the untared file to /usr/lib/php/modules
mv ioncube /usr/lib/php/modules

4) chown -R root:root /usr/lib/php/modules/ioncube

5) vi /etc/php.ini
Add the following line before any other zend_extension

Quote:

zend_extension=/usr/lib/php/modules/ioncube/ioncube_loader_lin_5.1.so

It would go between these two entries

Quote:

zend_optimizer.version=3.3.0
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so

Save changes, then:
6) /etc/init.d/httpd restart

Now Ioncube Installed on the server, verified output

Quote:

[root@VPS server ~]# php -v
PHP 5.1.6 (cli) (built: Sep 20 2007 10:16:10)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with the ionCube PHP Loader v3.1.32, Copyright (c) 2002-2007, by ionCube Ltd., and
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
[root@VPS server ~]#

Note:- The ionCube Loader is a Zend-Engine extension and
not a module, you need to specify the Loader using ‘zend_extension’ in
php.ini

How to disable Spam Assassin in Plesk (Linux)

January 21st, 2009

Currently in Plesk, there is no way to simply disable or uninstall Spam Assassin. So in order to do so, you musht remove it manually via the shell command line.

To do so, you must first SSH into the server. Once there, you must tell the server to remove the component. You can do so by typing the following;

#rpm -e psa-spamassassin

This is assuming you install the spam assassin component via the plesk updater. If you do not, you will also need to type the following;

#rpm -e spamassassin

It will then go through and remove the spam assassin configurations for each email account on the server, stop the service and then remove spam assassin from your server.