105 lines
2.2 KiB
Markdown
105 lines
2.2 KiB
Markdown
# Plesk
|
|
|
|
|
|
|
|
#### Commande plesk:
|
|
|
|
```bash
|
|
~# plesk
|
|
Usage: plesk [command]
|
|
|
|
Commands:
|
|
bin - Run the specified Plesk command-line utility (e.g., domain, client)
|
|
conf - Open the specified Plesk configuration file in the editor
|
|
daily - Run daily maintenance script
|
|
db - Database related commands. Open MySQL console by default.
|
|
ext - Call a command-line interface of the specified Plesk extension
|
|
help - Show help and exit
|
|
installer - Parallels Installer shortcuts and command completion
|
|
log - Open the specified Plesk configuration file in the editor
|
|
login - generate login link for specified user
|
|
php - Run a PHP script using the Plesk PHP interpreter
|
|
repair - Check and repair Plesk
|
|
sbin - Run the specified Plesk internal utility
|
|
version - Show product version information
|
|
|
|
|
|
|
|
plesk installer --select-release-current --install-component php7.2
|
|
```
|
|
|
|
|
|
|
|
#### Réparer Plesk:
|
|
|
|
```bash
|
|
$ plesk installer --select-release-current --reinstall-patch --upgrade-installed-components
|
|
|
|
$ plesk repair installation
|
|
```
|
|
|
|
|
|
|
|
#### Tester la zone DNS:
|
|
|
|
```bash
|
|
# plesk bin dns --info maboiteverte.fr
|
|
|
|
www.maboiteverte.fr. CNAME maboiteverte.fr.
|
|
_dmarc.maboiteverte.fr. TXT v=DMARC1; p=none
|
|
maboiteverte.fr. TXT v=spf1 +a +mx +a:localhost.localdomain -all
|
|
ftp.maboiteverte.fr. CNAME maboiteverte.fr.
|
|
ipv4.maboiteverte.fr. A 212.227.191.167
|
|
mail.maboiteverte.fr. A 212.227.191.167
|
|
maboiteverte.fr. MX 10 mail.maboiteverte.fr.
|
|
webmail.maboiteverte.fr. A 212.227.191.167
|
|
maboiteverte.fr. A 212.227.191.167
|
|
ns2.maboiteverte.fr. A 212.227.191.167
|
|
maboiteverte.fr. NS ns2.maboiteverte.fr.
|
|
ns1.maboiteverte.fr. A 212.227.191.167
|
|
maboiteverte.fr. NS ns1.maboiteverte.fr.
|
|
|
|
SUCCESS: Getting information for Domain 'maboiteverte.fr' complete.
|
|
```
|
|
|
|
|
|
|
|
#### Ajouter l'`user` bruno au groupe `sudo`:
|
|
|
|
```bash
|
|
# ubuntu:
|
|
|
|
root@localhost:~# usermod -aG sudo bruno
|
|
```
|
|
|
|
|
|
|
|
#### Redémarrer MySQL / MariaDB:
|
|
|
|
```bash
|
|
# sous root:
|
|
|
|
service mysql restart || service mariadb restart || service mysqld restart
|
|
```
|
|
|
|
|
|
|
|
Liste des extensions installées:
|
|
|
|
```bash
|
|
plesk bin extension --list
|
|
```
|
|
|
|
Réparer Plesk :
|
|
|
|
```bash
|
|
plesk repair installation
|
|
```
|
|
|
|
Réparer les permissions d'un site:
|
|
|
|
```bash
|
|
plesk repair fs example.com
|
|
```
|
|
|