Category: Plesk



Following are the steps to be followed in order to update the hostname on plesk server installed in linux environment.

1) Open the file /etc/hosts and edit the hostname entry as follows in the file (Eg: hostname= server.example.com)

# Auto-generated hostname. Please do not remove this comment.

127.0.0.1 localhost.localdomain localhost
XX.XX.XX.XX server.example.com server

XX.XX.XX.XX — servers IP.

2) Now open the file /etc/sysconfig/network and edit the hostname entry in this file:

NETWORKING=”yes”
HOSTNAME=”server.example.com”
GATEWAY=”xx.xx.xx.xx”
GATEWAYDEV=”eth0″
FORWARD_IPV4=”yes”

3) Now open the file /var/qmail/control/me  which contains the old hostname. Alter it to new hostname to make qmail identify itself  with  the new hostname.

server.example.com

4)Set the servers hostname in the plesk database with the following commands:

# mysql -u admin -p

Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 181
Server version: 5.1.50 Source distribution

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

mysql> use psa;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> update misc set val=’server.example.com’ where param=’FullHostName’;
Query OK, 0 rows affected (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 0

mysql> quit

5) Now restart Plesk  service to activate the changes:

# /etc/init.d/psa stopall

# /etc/init.d/psa stop

# /etc/init.d/psa start

Now check the servers hostname. It should now be configured with the new hostname.

 

 

 


If you want to rebuild apache configuration files on the pleask server you can place following command on the server

[root@server~]# /usr/local/psa/admin/bin/websrvmng -av

This will rebuild all your httpd.include files.

That’s it!


If you want to change the default language in plesk follow following simple steps for this:

Plesk defines default language used for the awstats in a directive “Lang” in the following configuration files:

/etc/awstats/awstats.conf

/etc/awstats/awstats.model.conf

Open the above files in ay favorite editor and locate the directive

Lang=”auto”

First available language accepted by browser=auto

You can change this directive to the following options as required

 Possible values:
Albanian=al, Bosnian=ba, Bulgarian=bg, Catalan=ca,
Chinese (Taiwan)=tw, Chinese (Simpliefied)=cn, Croatian=hr, Czech=cz,
Danish=dk, Dutch=nl, English=en, Estonian=et, Euskara=eu, Finnish=fi,
French=fr, Galician=gl, German=de, Greek=gr, Hebrew=he, Hungarian=hu,
Icelandic=is, Indonesian=id, Italian=it, Japanese=jp, Korean=ko,
Latvian=lv, Norwegian (Nynorsk)=nn, Norwegian (Bokmal)=nb, Polish=pl,
Portuguese=pt, Portuguese (Brazilian)=br, Romanian=ro, Russian=ru,
Serbian=sr, Slovak=sk, Slovenian=si, Spanish=es, Swedish=se, Turkish=tr,
Ukrainian=ua, Welsh=cy.

Thats It! It should now change the default language forAwStats in plesk.


You might sometimes forget the password for the email accounts on the server.

You can easily find out the email accounts and their passwords existing on the server with the following command:

[root@server ~]# /usr/local/psa/admin/bin/mail_auth_view

This command will show all the email accounts on the server along with their passwords.

Use following command to calculate total amount of email accounts on the server:

[root@server ~]# /usr/local/psa/admin/bin/mail_auth_view | wc -l

Try it!

 


You might encounter following error while unsuspending a suspended domain in plesk.

The domain is still suspended for the following reason: Domain is temporarily suspended for backing up or restoring.

To sort this error you can follow following simple steps.

Log into the server through SSH to the command line and run the following command .

[root@server ~]# /usr/local/psa/bin/domain -u testdomain.com -status enabled

SUCCESS: Update of domain ‘testdomain.com’ complete.

This should sort your problem.
This problem is faced in case if the option “Suspend domain until backup task is completed” is enabled in the Scheduled Backup Settings of the domain. If you do not want to keep the domain suspended until the backup is done, you can deselect the above option in Plesk >> Domains >> Backup Manager >> Scheduled Backup Settings >> Suspend domain until backup task is completed (remove the tick.)

Follow

Get every new post delivered to your Inbox.

Join 26 other followers