5333 private links
How to add programs to chrooted shell environment template in Plesk?
#Question
How to restore a Plesk server on a new Linux server from file system?
#Answer
To restore a Plesk server on another Linux server with the following steps, the new server must meet the following requirements:
- Same versions as on old server of the following:
- operating system
- Plesk version
- MySQL or MariaDB
- A valid Plesk license is installed
- Same set of Plesk extensions installed
Plesk administrator can specify a custom email address to be used as a mail relay. The email address will be used as the sender address for all Plesk email notifications enabled in the Tools & Settings > Notifications menu.
To adjust the settings, perform the following:
-
Log into Plesk.
-
Edit the Plesk panel.ini file by adding the lines below there:
[notification]
senderAddress=<custom email address>
Question
How to restore domain's backup files created on local repository on one server that were uploaded to another server?
Answer
Limitations:
- A restoration server must have the same or a higher Plesk version.
- A restoration server must have the same or higher Plesk license edition than the server where the backup has been created.
-
Connect to the server via SSH.
-
Create a backup directory for the domain, for example:
mkdir -f /var/lib/psa/dumps/domains/example.com
-
Upload the backup files to the domain backup directory /var/lib/psa/dumps/domains/example.com. This will allow the backup to appear in Plesk UI.
For example, if backup files are located in /root/backup directory, it is required to move them under a domain's backup directory:mv /root/backup /var/lib/psa/dumps/domains/example.com
-
Go to Plesk > Domains > example.com > Backup Manager and restore the backup.
Warning: A backup will not be added to Plesk Backup Manager if .discovered hidden directory is missing. In this case, restore the backup using the command line.
A Plesk backup can be restored either via Plesk interface or a command-line interface directly on a server.
Limitations:
- A Plesk xml.tar backup file cannot be restored in Plesk for Windows Server. A Plesk xml.zip backup file cannot be restored in Plesk for Linux.
- A restoration server must have the same or a higher Plesk version.
- A restoration server must have the same or higher Plesk license edition than the server where the backup has been created.
- The maximum size of an uploaded backup file is limited to 2Gb. If a backup file size is larger than 2Gb, upload this backup file via a command-line interface.
Defining data that should be backed up includes the following:
- Defining the backup level and, unless it is the server level, optionally, selecting which resellers, customers, or subscriptions should be backed up.
- (Optional). Defining which resellers, customers, or subscriptions should be excluded from the backup.
- (Optional). Restricting backup to either only mail content, web hosting content, or their configuration.
- (Optional). Specifying that log files are excluded from backup.
Generally speaking, the data that can be backed up with one call of the pleskbackup utility are represented by any single cell of the following table.
If you have purchased a Plesk license from one of Plesk partners, technical support should be provided by them. Plesk partners are fully trained and deliver best-in-the-industry support for Plesk products running on their infrastructure. //
Plesk support subscription terms
Subscription has a free trial period for 1 month. If you order Plesk support subscription for a license for the first time, then you will be charged $0 for the first month and $10 for each next month.
- Support is provided 24/7.
- The number of incidents is unlimited.
- Login to Plesk support ticket system.
- Submit a ticket in order to get a unique link for purchasing a support subscription. Go to the support contact form and enter your license key and other details.
- If the license was purchased from one of Plesk partners, you will see the warning below. Click Purchasing monthly support subscription to purchase the support subscription:
- After you have purchased a subscription, go back to support contact form and enter your Plesk key again - now you will be able to create a ticket.
- It is possible to contact Plesk Support via email, phone, chat.
Many email messages are being sent from PHP scripts on a server. How to find domains on which these scripts are running if Postfix is used?
How do you disable modsecurity for just a specific directory. I'm getting errors in phpMyAdmin that are caused by modsecurity tripping based on rules. I have the following files set up: //
SecRuleEngine Off must work . Have you tried to put SecRuleEngine inside Directory:
<Directory /var/www/site/phpMA>
SecRuleEngine Off
</Directory>
/var/www/vhosts/system/_site_/conf/vhost.conf
The most important SSL settings are (in conf.d/10-ssl.conf):
ssl = yes
# Preferred permissions: root:root 0444
ssl_cert = </etc/ssl/certs/dovecot.pem
# Preferred permissions: root:root 0400
ssl_key = </etc/ssl/private/dovecot.pem
If you have multiple IPs available, this method is guaranteed to work with all clients.
local 192.0.2.10 { # instead of IP you can also use hostname, which will be resolved
protocol imap {
ssl_cert = </etc/ssl/dovecot/imap-01.example.com.cert.pem
ssl_key = </etc/ssl/dovecot/imap-01.example.com.key.pem
}
protocol pop3 {
ssl_cert = </etc/ssl/dovecot/pop-01.example.com.cert.pem
ssl_key = </etc/ssl/dovecot/pop-01.example.com.key.pem
}
}
local 192.0.2.20 {
protocol imap {
ssl_cert = </etc/ssl/dovecot/imap-02.example.com.cert.pem
ssl_key = </etc/ssl/dovecot/imap-02.example.com.key.pem
}
protocol pop3 {
ssl_cert = </etc/ssl/dovecot/pop-02.example.com.cert.pem
ssl_key = </etc/ssl/dovecot/pop-02.example.com.key.pem
}
}
Note that you will still need a top-level "default" ssl_key and ssl_cert as well, or you will receive errors.
Is it possible to move domains between subscriptions (change a subscriber for a domain) or merge subscriptions?
Is it possible to change the subscriber (move subscription to another owner) for a subdomain?
Is it possible to change domain type to subscription one?
Answer
Currently, there is no possibility to move domains between subscriptions, merge subscriptions of different subscribers or moving subdomains to different owners. This feature will be available in the next major release - Plesk Obsidian. To learn more, visit What's New in Plesk Obsidian.
The following workaround can be used to move a website to the other domain of the same subscription:
How to change an IP Address for a domain in Plesk?Go to Home > Domains > example.com > Web Hosting Access and choose from the drop-down list of all available IP addresses on a server.
Alternatively, the same operation can be performed via CLI. Connect to the server via SSH and execute:
# plesk bin subscription --update example.com -ip 203.0.113.3