Friday, March 22, 2013

Changing the Plesk Administrator email address


In the Plesk Control Panel, you can set your email address for the Plesk Administrator. This address is used for all system-related messages. The address is also stored in the following files on your server, which uses the the popular qmail mail server:

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

You can edit these files to change the email address as originally configured in Plesk. You can also have multiple entries. Just make sure that each address is on it's own separate line and prefixed with an "&" symbol:

&mjones@example.com
&jsmith@example.com
&jane@example.com

Add wildcard domain in Plesk


Add the * inside the dns zone file of the domain.

* IN A IP

Edit /var/www/vhosts/domainname.com/conf/vhost.conf and add the line

ServerAlias *.domainname.com

Run the following command.

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

Restart apache.

View All Email Account Passwords in Plesk


On my server, I have several domains and I have corresponding email addresses for a few of them, for example: ses5909@mydomain.com, ses5909@anotherdomain.com, etc. I have come to find that in Plesk if I have a domain that has an email user named ses5909 and I need to make the same username on another domain, they are not allowed to share the same domain. So if I give ses5909@mydomain.com the password: supersneakypw, I cannot give that password to ses5909@anotherdomain, or anyone else that has the same username. This is pretty lame if you ask me. The reason for this is that mail is not handled on the domain level, but rather the username level. That is a whole other issue though.

Well today I needed to get into my mail and I wasn’t at the computer that I run my mail client on so I went to my webmail account. I couldn’t remember the password for the life of me. I tried a few that I commonly use, but no luck. So, I needed to try to find my password. I could have reset it, but I’ve resorted to this in the past and I am just tired of doing that. I needed to find a way to retrieve my password.

So, I logged into mysql as the root admin. I looked through the databases and noticed there was a psa db which I am assuming stands for Plesk Server Administration. I immediately looked for email and finally saw mail. I saw all of the usernames and a quick join with the domains table showed me which column belonged to which domain.

SELECT mail.mail_name, domains.name from mail LEFT OUTER JOIN domains ON domains.id = mail.dom_id;

But, now I needed to find the passwords for these. After some more hunting, I found the accounts table where passwords are stored in plain text. If only I didn’t have 200 to look through. So a query was in order:

SELECT accounts.id, mail.mail_name, accounts.password, domains.name FROM domains LEFT JOIN mail ON domains.id = mail.dom_id LEFT JOIN accounts ON mail.account_id = accounts.id

Domain Names can be Locked/Unlocked from your Control Panel


Domain Names can be Locked/Unlocked from your Control Panel by following the process mentioned below -

1. Login to your Control Panel and search for the domain name that you wish to Lock/Unlock. Click here to read how

2. Click on the Domain name in the search results to get to the Order details view.

3. Click on the Lock/Unlock Button

4. On the following page - * If you wish to Lock the Service, you would have to select the Check Box for Locking and click on the Update button. * For Unlocking, unselect the Check Box and click on the Update button.

Unix Plesk: Generate webserver config files


I don't believe plesk has a way to build the httpd.conf However it should be fairly easy to make it pick them up, i'd just do something like

for i in `ls /var/www/vhosts`;do echo include /var/www/vhosts/$i/conf/httpd.include;done

and chuck that in your httpd.conf (even though it doesn't store the includes there it doesn't matter). Also check /etc/httpd/conf for a backup of httpd.conf theres normally always one or two in there anyway which might save this hassle.

Fix Quota in Plesk


You can use following commands to fix quota.

quotaoff -av

mv /aquota.user /aquota.user.bak

mv /aquota.group /aquota.group.bak

quotacheck -agiuv

quotaon -av

Changing Plesk control panel default port


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

SYMPTOMS
It is not recommended to change the default Plesk port, however, it can be done using the workaround as below.
RESOLUTION
From version 7.5 Plesk supports two web servers as provider for Plesk Control Panel: IIS and Apache. Depending on the type of web server one of the following ways can solve the problem:

I. Internet Information Services is used as web server for Plesk Control Panel:

When configuring Plesk on port 80 a dedicated IP address must be chosen for Plesk control panel as Plesk Control Panel uses HTTPS protocol for connection and architecture of IIS allows assigning single SSL port per IP address. By default PleskControlPanel Web site in IIS is configured to listen on port 8443 on all IP addresses. The following needs to be done to change the port:

1. Go to IIS management console

2. Find PleskControlPanel web site

3. Click on Properties

4. Click on Advanced button in Web Site tab

5. Edit SSL identity for the Web Site

6. Set IP address that you want to use and change SSL port to 443

7. Apply

II. Apache is used as web server for Plesk Control Panel:

A dedicated IP address needs to be used for Plesk Plesk Control Panel and none of domains hosted on the server. This is required to avoid conflicts with existing websites. Then edit Apache configuration file %plesk_dir%admin\conf\httpd.conf.

1. Find the line

Listen 8443

2. Replace with

Listen IP_address:443

3. Retsart Plesk Control Panel service using tray monitor.
ADDITIONAL INFORMATION
Note: In case of Plesk running on Virtuozzo Virtual Environment , port changing can lead to VZPP-Plesk integration failure.