19-07-2020
-python 3.8 -htpasswd -modules Powershell
This commit is contained in:
@@ -64,6 +64,32 @@ SUCCESS: Getting information for Domain 'maboiteverte.fr' complete.
|
||||
|
||||
|
||||
|
||||
#### 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
|
||||
```
|
||||
|
||||
#### Fichiers logs:
|
||||
|
||||
```bash
|
||||
/var/www/vhosts/sur-le-sentier.fr/logs/
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Ajouter l'`user` bruno au groupe `sudo`:
|
||||
|
||||
```bash
|
||||
@@ -84,22 +110,65 @@ service mysql restart || service mariadb restart || service mysqld restart
|
||||
|
||||
|
||||
|
||||
Liste des extensions installées:
|
||||
#### Liste des modules installés:
|
||||
|
||||
```bash
|
||||
plesk bin extension --list
|
||||
# apache2ctl -M
|
||||
|
||||
Loaded Modules:
|
||||
core_module (static)
|
||||
so_module (static)
|
||||
```
|
||||
|
||||
Réparer Plesk :
|
||||
Vérifier la syntaxe du fichier de configuration:
|
||||
|
||||
```bash
|
||||
plesk repair installation
|
||||
# apachectl -t
|
||||
# apachectl configtest
|
||||
Syntax OK
|
||||
```
|
||||
|
||||
Réparer les permissions d'un site:
|
||||
https://httpd.apache.org/docs/2.4/fr/programs/apachectl.html
|
||||
|
||||
|
||||
|
||||
#### Installer GeoIP:
|
||||
|
||||
```bash
|
||||
plesk repair fs example.com
|
||||
apt-get install plesk-php74-dev build-essential
|
||||
apt-get install libgeoip-dev geoip-bin geoip-database
|
||||
/opt/plesk/php/7.4/bin/pecl install http://pecl.php.net/get/geoip-1.1.1.tgz
|
||||
|
||||
/opt/plesk/php/7.4/lib/php/modules/geoip.so
|
||||
|
||||
Add " extension=geoip.so" to php.ini file:
|
||||
For PHP 7.0 modify file /opt/plesk/php/7.0/etc/php.ini
|
||||
For PHP 7.1 modify file /opt/plesk/php/7.1/etc/php.ini
|
||||
|
||||
echo "extension=geoip.so" > /opt/plesk/php/7.4/etc/php.d/geoip.ini
|
||||
|
||||
/opt/plesk/php/7.4/etc/php.d# /opt/plesk/php/7.4/bin/php -m | grep geoip
|
||||
|
||||
<?php print_r(geoip_record_by_name('php.net')); ?>
|
||||
Required database not available at /usr/share/GeoIP/GeoIPCity.dat"
|
||||
|
||||
Redémarrer Apache:
|
||||
service apache2 restart
|
||||
sinon redémarrer le serveur
|
||||
```
|
||||
|
||||
#### Installer GeoIP 2:
|
||||
|
||||
```bash
|
||||
wget https://github.com/maxmind/geoip-api-mod_geoip2/archive/1.2.10.tar.gz
|
||||
tar -xzvf 1.2.10.tar.gz
|
||||
cd geoip-api-mod_geoip2-1.2.10/
|
||||
apxs -i -a -L/usr/local/lib -I/usr/local/include -lGeoIP -c mod_geoip.c
|
||||
|
||||
Installer dans
|
||||
/usr/lib/apache2/modules/mod_geoip.so
|
||||
|
||||
Ne marche pas !!
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user