Files
mkdocs/docs/Plesk/index.md
Bruno 21 cf53f2e24e 07-04-2020
Section Windows
2020-04-07 17:49:15 +02:00

95 lines
2.1 KiB
Markdown

# 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
```
Nextcloud:
```bash
bruno@localhost:~/httpdocs/nextcloud$ sudo -u bruno /opt/plesk/php/7.3/bin/php occ maintenance:repair
```
Liste des extzensions installées:
plesk bin extension --list
Réparer Plesk :
plesk repair installation
Réparer les permissions d'un site:
plesk repair fs example.com