Mettre les configuration IP
nano /etc/network/interfaces
[pastacode lang= »markup » manual= »iface%20ens192%20inet%20static%0A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20address%20185.123.72.112%2F31%0A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20gateway%20185.123.72.113″ message= » » highlight= » » provider= »manual »/]
nano /etc/resolv.conf
[pastacode lang= »markup » manual= »nameserver%20185.123.72.104%0Anameserver%20185.123.72.106%0Anameserver%209.9.9.9%0Anameserver%208.8.8.8″ message= » » highlight= » » provider= »manual »/]
Modifier le nom de la machine « hostname »
nano /etc/hostname
[pastacode lang= »markup » manual= »%22nom%20d%E2%80%99h%C3%B4te%22″ message= » » highlight= » » provider= »manual »/]
nano /etc/hosts
[pastacode lang= »markup » manual= »IP%20Publique%C2%A0%20%22nom%20h%C3%B4te%22%20%22fqdn%22″ message= » » highlight= » » provider= »manual »/]
Mettre à jour la distri et installer les logiciels
Vérifier la sourcelist et mettre à jour
[pastacode lang= »markup » manual= »%23%20https%3A%2F%2Fwiki.debian.org%2Ffr%2FSourcesList%20-%20pour%20Debian%209%C2%A0%3A%0A%0Adeb%20http%3A%2F%2Fdeb.debian.org%2Fdebian%20stretch%20main%0Adeb-src%20http%3A%2F%2Fdeb.debian.org%2Fdebian%20stretch%20main%0A%0Adeb%20http%3A%2F%2Fdeb.debian.org%2Fdebian%20stretch-updates%20main%0Adeb-src%20http%3A%2F%2Fdeb.debian.org%2Fdebian%20stretch-updates%20main%0A%0Adeb%20http%3A%2F%2Fsecurity.debian.org%2Fdebian-security%2F%20stretch%2Fupdates%20main%0Adeb-src%20http%3A%2F%2Fsecurity.debian.org%2Fdebian-security%2F%20stretch%2Fupdates%20main » message= »nano /etc/apt/sources.list » highlight= » » provider= »manual »/]
[pastacode lang= »markup » manual= »apt%20update%20%26%26%20apt%20-y%20dist-upgrade » message= »Mise a jour du système » highlight= » » provider= »manual »/]
Installer les packages
[pastacode lang= »markup » manual= »apt%20install%20-y%20apache2%20mariadb-server%20php7.0-fpm%20phpmyadmin%20proftpd%20postfix » message= » » highlight= » » provider= »manual »/]
Pour phpmyadmin choisir : apache2
Pour postfix choisir : Site Internet
Nom courrier : fqdn.delamachine
Configurer phpmyadmin : Oui et laisser vite pour générer automatiquement un mot de passe
Activer les modules apache :
[pastacode lang= »markup » manual= »a2enmod%20proxy_fcgi%20setenvif%20rewrite%20ssl%0Aa2enconf%20php7.0-fpm » message= » » highlight= » » provider= »manual »/]
Ajouter dans la conf de base apache
[pastacode lang= »markup » manual= »%3CDirectory%20%2Fhome%20%3E%0A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20Options%20-Indexes%20%2BFollowSymLinks%0A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20AllowOverride%20All%0A%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20Require%20all%20granted%0A%3C%2FDirectory%3E » message= »nano /etc/apache2/apache2.conf » highlight= » » provider= »manual »/]
[pastacode lang= »markup » manual= »service%20apache2%20reload » message= » » highlight= » » provider= »manual »/]
Configurer MariaDB
[pastacode lang= »markup » manual= »mysql_secure_installation » message= » » highlight= » » provider= »manual »/]
Enter current password for root (enter for none): taper enter
Set root password? [Y/n] Y – mettre le mot de passe
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y
[pastacode lang= »markup » manual= »mysql%20–user%3Droot%20mysql%0A%0ACREATE%20USER%20’user’%40’localhost’%20IDENTIFIED%20BY%20’password…’%3B%0AGRANT%20ALL%20PRIVILEGES%20ON%20*.*%20TO%20’user’%40’localhost’%20WITH%20GRANT%20OPTION%3B%0AFLUSH%20PRIVILEGES%3B%0Aexit%3B » message= » » highlight= » » provider= »manual »/]
Vérifier que la page web par défaut s’affiche !
Vérifier que phpmyadmin fonctionne avec ce compte administrateur !
Réduire l’exposition de Apache :
[pastacode lang= »markup » manual= »%23%20En%20une%20seul%20commande%20%3A%0Ased%20-i%20-e%20’s%2FServerTokens%20OS%2FServerTokens%20Prod%2F’%20-e%20’s%2FServerSignature%20On%2F%5C%23ServerSignature%20On%2F’%20-e%20’s%2F%5C%23ServerSignature%20Off%2FServerSignature%20Off%2F’%20%2Fetc%2Fapache2%2Fconf-available%2Fsecurity.conf%0A%0A%23%20Ou%20par%20le%20fichier%20%3A%0AServerSignature%20Off%0A%23ServerSignature%20On%0A%0A%23ServerTokens%20OS%0AServerTokensProd » message= »nano /etc/apache2/conf-available/security.conf » highlight= » » provider= »manual »/]
Ajuster les protocoles SSL/TLS :
[pastacode lang= »markup » manual= »%23%20En%20une%20commande%0Ased%20-i%20-e%20’s%2FSSLCipherSuite%20HIGH%3A!aNULL%2FSSLCipherSuite%20%22EECDH%2BECDSA%2BAESGCM%20EECDH%2BaRSA%2BAESGCM%20EECDH%2BECDSA%2BSHA384%20EECDH%2BECDSA%2BSHA256%20EECDH%2BaRSA%2BSHA384%20EECDH%2BaRSA%2BSHA256%20EECDH%2BaRSA%2BRC4%20EECDH%20EDH%2BaRSA%20RC4%20!aNULL%20!eNULL%20!LOW%20!3DES%20!MD5%20!EXP%20!PSK%20!SRP%20!DSS%20!RC4%22%2F’%20-e%20’s%2FSSLProtocol%20all%20-SSLv3%2FSSLProtocol%20all%20-SSLv3%20-TLSv1%2F’%20%2Fetc%2Fapache2%2Fmods-available%2Fssl.conf%0A%0A%23%20Ou%20dans%20le%20fichier%0A%0A%23SSLProtocol%20all%20-SSLv3%0ASSLProtocol%20all%20-SSLv3%20-TLSv1%0A%0A%23SSLCipherSuite%20HIGH%3A!aNULL%0ASSLCipherSuite%20%22EECDH%2BECDSA%2BAESGCM%20EECDH%2BaRSA%2BAESGCM%20EECDH%2BECDSA%2BSHA384%20EECDH%2BECDSA%2BSHA256%20EECDH%2BaRSA%2BSHA384%20EECDH%2BaRSA%2BSHA256%20EECDH%2BaRSA%2BRC4%20EECDH%20EDH%2BaRSA%20RC4%20!aNULL%20!eNULL%20!LOW%20!3DES%20!MD5%20!EXP%20!PSK%20!SRP%20!DSS%20!RC4%22″ message= »nano /etc/apache2/mods-available/ssl.conf » highlight= » » provider= »manual »/]
[pastacode lang= »markup » manual= »service%20apache2%20reload » message= »Rechercher apache pour les nouvelles configurations » highlight= » » provider= »manual »/]
Installer d’autres PHP si nécessaire : ICI
Facultatif : changer le PHP par défaut en ligne de commande (CLI) :
update-alternatives –config php
Sécuriser le UMASK de PHP
[pastacode lang= »markup » manual= »%5BService%5D%0AType%3Dnotify%0APIDFile%3D%2Frun%2Fphp%2Fphp5.6-fpm.pid%0AExecStart%3D%2Fusr%2Fsbin%2Fphp-fpm5.6%20–nodaemonize%20–fpm-config%20%2Fetc%2Fphp%2F5.6%2Ffpm%2Fphp-fpm.conf%0AExecReload%3D%2Fbin%2Fkill%20-USR2%20%24MAINPID%0AUMask%3D0007″ message= »nano /lib/systemd/system/php5.6-fpm.service » highlight= »6″ provider= »manual »/]
[pastacode lang= »markup » manual= »%5BService%5D%0AType%3Dnotify%0APIDFile%3D%2Frun%2Fphp%2Fphp7.0-fpm.pid%0AExecStart%3D%2Fusr%2Fsbin%2Fphp-fpm7.0%20–nodaemonize%20–fpm-config%20%2Fetc%2Fphp%2F7.0%2Ffpm%2Fphp-fpm.conf%0AExecReload%3D%2Fbin%2Fkill%20-USR2%20%24MAINPID%0AUMask%3D0007″ message= »nano /lib/systemd/system/php7.0-fpm.service » highlight= »6″ provider= »manual »/]
Préparer la configuration de PHPmyAdmin (pool par default www.conf)
[pastacode lang= »markup » manual= »sed%20-i%20’%2F%3B%2Fd’%20%2Fetc%2Fphp%2F7.0%2Ffpm%2Fpool.d%2Fwww.conf%0Ased%20-i%20’%2F%3B%2Fd’%20%2Fetc%2Fphp%2F5.6%2Ffpm%2Fpool.d%2Fwww.conf » message= » » highlight= » » provider= »manual »/]
[pastacode lang= »markup » manual= »nano%20%2Fetc%2Fphp%2F7.0%2Ffpm%2Fpool.d%2Fwww.conf%0A%0Aou%0A%0Anano%20%2Fetc%2Fphp%2F5.6%2Ffpm%2Fpool.d%2Fwww.conf%0A%0A%0Aphp_admin_value%5Bmemory_limit%5D%20%3D%201024M%0Aphp_admin_value%5Bpost_max_size%5D%20%3D%20512M%0Aphp_admin_value%5Bupload_max_filesize%5D%20%3D%20512M » message= »php par default » highlight= » » provider= »manual »/]
[pastacode lang= »markup » manual= »systemctl%20daemon-reload%20%26%26%20service%20php5.6-fpm%20restart%20%26%26%20service%20php7.0-fpm%20restart » message= » » highlight= » » provider= »manual »/]
Installer/activer le SSL
[pastacode lang= »markup » manual= »wget%20-O%20-%C2%A0%20https%3A%2F%2Fget.acme.sh%20%7C%20sh%0A.%20~%2F.bashrc%0Aacme.sh%20–install-cronjob%0Aa2ensite%20default-ssl.conf%0A%0Aip%3D%24(wget%20http%3A%2F%2Fcheckip.dyndns.org%20-O%20-%20-o%20%2Fdev%2Fnull%20%7C%20cut%20-d%20%3A%20-f%202%20%7C%20cut%20-d%20%5C%3C%20-f%201)%20%26%26%20echo%20ServerName%20%24ip%20%3E%3E%20%2Fetc%2Fapache2%2Fapache2.conf%0A%0Aapachectl%20-t%20(Si%20ok%20passer%20%C3%A0%20la%20suite)%0Aservice%20apache2%20restart » message= » » highlight= » » provider= »manual »/]
[pastacode lang= »markup » manual= »acme.sh%20–issue%20-d%20fqdn%20-w%20%2Fvar%2Fwww%2Fmonsite » message= »Générer les certificats SSL » highlight= » » provider= »manual »/]
Modifier dans le vhost SSL par défaut les chemins du nouveau certificat :
[pastacode lang= »markup » manual= »sed%20-i%20’%2F%23%2Fd’%20%2Fetc%2Fapache2%2Fsites-available%2F000-default.conf%0Ased%20-i%20’%2F%23%2Fd’%20%2Fetc%2Fapache2%2Fsites-available%2Fdefault-ssl.conf » message= » » highlight= » » provider= »manual »/]
[pastacode lang= »markup » manual= »SSLCertificateFile%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%2Froot%2F.acme.sh%2Ffqdn%2Ffqdn.cer%0ASSLCertificateKeyFile%20%2Froot%2F.acme.sh%2Ffqdn%2Ffqdn.key%0ASSLCertificateChainFile%20%2Froot%2F.acme.sh%2Ffqdn%2Ffullchain.cer%0ASSLCACertificateFile%20%2Froot%2F.acme.sh%2Ffqdn%2Fca.cer » message= »nano /etc/apache2/sites-enabled/default-ssl.conf » highlight= » » provider= »manual »/]
[pastacode lang= »markup » manual= »service%20apache2%20reload » message= »Recharger apache » highlight= » » provider= »manual »/]
Configurer proftpd :
[pastacode lang= »markup » manual= »%23%20En%20une%20commande%20(attention%20de%20remplacer%20le%20fqdn)%0Ased%20-i%20-e%20’s%2F%22Debian%22%2F%22fqdn%22%2F’%20-e%20’s%2F%22-l%22%2F%22-la%22%2F’%20-e%20’s%2F%23%20DefaultRoot%2FDefaultRoot%2F’%20-e%20’s%2F%23%20RequireValidShell%2FRequireValidShell%2F’%20-e%20’s%2F022%2F007%2Fg’%20-e%20’s%2F%23SetEnv%20TZ%2FSetEnv%20TZ%2F’%20-e%20’s%2F%23Include%20%5C%2Fetc%5C%2Fproftpd%5C%2Ftls.conf%2FInclude%20%5C%2Fetc%5C%2Fproftpd%5C%2Ftls.conf%2F’%20%2Fetc%2Fproftpd%2Fproftpd.conf%0A%0A%23%20En%20passant%20par%20le%20fichier%0AServerName%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%22fqdn%22%0AListOptions%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%22-la%22%0ADefaultRoot%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20~%0ARequireValidShell%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20off%0AUmask%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20007%C2%A0%20007%0ASetEnv%20TZ%20%3A%2Fetc%2Flocaltime%0AInclude%20%2Fetc%2Fproftpd%2Ftls.conf » message= »nano /etc/proftpd/proftpd.conf » highlight= » » provider= »manual »/]
[pastacode lang= »markup » manual= »sed%20-i%20’%2F%23%2Fd’%20%2Fetc%2Fproftpd%2Ftls.conf » message= »Nettoyage du fichier de proftp » highlight= » » provider= »manual »/]
[pastacode lang= »markup » manual= »%3CIfModule%20mod_tls.c%3E%0ATLSEngine%09%09%09%09%09%09on%0A%09TLSRSACertificateFile%09%09%2Froot%2F.acme.sh%2Ffqdn%2Ffqdn.cer%0A%09TLSRSACertificateKeyFile%09%2Froot%2F.acme.sh%2Ffqdn%2Ffqdn.key%0A%09TLSCACertificateFile%09%09%2Froot%2F.acme.sh%2Ffqdn%2Fca.cer%0A%0ATLSLog%09%09%09%09%09%09%09%2Fvar%2Flog%2Fproftpd%2Ftls.log%0A%3C%2FIfModule%3E » message= »nano /etc/proftpd/tls.conf » highlight= » » provider= »manual »/]
[pastacode lang= »markup » manual= »service%20proftpd%20restart » message= »Recherger PROFTPD » highlight= » » provider= »manual »/]
Créer le nouveau site :
Création compte utilisateur (utilisateur = hostname)
Création compte utilisateur_preprod (utilisateur_preprod = hostname_preprod)
Ajouter le nouvel utilisateur :
[pastacode lang= »markup » manual= »groupadd%20utilisateur%0Auseradd%20-g%20utilisateur%20-s%20%2Fbin%2Ffalse%20-m%20utilisateur » message= » » highlight= » » provider= »manual »/]
Générer un mot de passe :
[pastacode lang= »markup » manual= »openssl%20rand%20-base64%2012%0A%0Aecho%20%22utilisateur%3Apass%22%20%7C%20chpasswd » message= » » highlight= » » provider= »manual »/]
Ajouter au compte www-data, le groupe supplémentaire de l’utilisateur créé :
[pastacode lang= »markup » manual= »usermod%20-a%20-G%20utilisateur%20www-data » message= » » highlight= » » provider= »manual »/]
Attention Apache n’en tient pas compte tant que le process n’est pas rechargé (reload)
[pastacode lang= »markup » manual= »id%20-Gn%20www-data » message= »Vérifier dans quels groupes supplémentaires est www-data » highlight= » » provider= »manual »/]
Configuration du nouveau pool PHP-FPM
[pastacode lang= »markup » manual= »nano%20%2Fetc%2Fphp%2F5.6%2Ffpm%2Fpool.d%2Futilisateur.conf%0A%0Aou%2Fet%0A%0Anano%20%2Fetc%2Fphp%2F7.0%2Ffpm%2Fpool.d%2Futilisateur.conf » message= » » highlight= » » provider= »manual »/]
[pastacode lang= »markup » manual= »%5Butilisateur%5D%0A%0Auser%20%3D%20utilisateur%0Agroup%20%3D%20utilisateur%0A%0Alisten%20%3D%20%2Frun%2Fphp%2Fphp%22votre_version_de_php%22-fpm-utilisateur.sock%0A%0A%0Alisten.owner%20%3D%20www-data%0Alisten.group%20%3D%20www-data%0A%0Apm%20%3D%20dynamic%0Apm.max_children%20%3D%205%0Apm.start_servers%20%3D%202%0Apm.min_spare_servers%20%3D%201%0Apm.max_spare_servers%20%3D%203%0A%0Aphp_admin_value%5Bmemory_limit%5D%20%3D%20512M%0Aphp_admin_value%5Berror_log%5D%20%3D%20%2Fhome%2Futilisateur%2Fdomaine%2Flogs%2Fphp_errors.log%0Aphp_admin_value%5Bpost_max_size%5D%20%3D%20512M%0Aphp_admin_value%5Bupload_max_filesize%5D%20%3D%20512M » message= » » highlight= » » provider= »manual »/]
Puis (pensez à échapper les caractères « . » « _ » « – »)
[pastacode lang= »markup » manual= »sed%20-i%20’s%2Futilisateur%2Fverslenomdelutilisateur%2F’%20%2Fetc%2Fphp%2F5.6%2Ffpm%2Fpool.d%2Futilisateur.conf%0Ased%20-i%20’s%2Fdomaine%2Fverslenomdudomaine%2F’%20%2Fetc%2Fphp%2F5.6%2Ffpm%2Fpool.d%2Futilisateur.conf%0A%0Aou%2Fet%0A%0Ased%20-i%20’s%2Futilisateur%2Fverslenomdelutilisateur%2F’%20%2Fetc%2Fphp%2F7.0%2Ffpm%2Fpool.d%2Futilisateur.conf%0Ased%20-i%20’s%2Fdomaine%2Fverslenomdudomaine%2F’%20%2Fetc%2Fphp%2F7.0%2Ffpm%2Fpool.d%2Futilisateur.conf » message= » » highlight= » » provider= »manual »/]
[pastacode lang= »markup » manual= »service%20php5.6-fpm%20reload%20%26%26%20service%20php7.0-fpm%20reload » message= »Redémarrer php-fpm » highlight= » » provider= »manual »/]
Vérifier les pointages FQDN et DNS
Créer le vhost :
[pastacode lang= »markup » manual= »%3CVirtualHost%20*%3A80%3E%0A%09ServerName%20domaine%0A%09ServerAlias%20alias_domaine%0A%0A%09DocumentRoot%C2%A0%C2%A0%C2%A0%20%2Fhome%2Futilisateur%2Fdomaine%2Fwww%0A%0A%09%3CFilesMatch%20%22.%2B%5C.ph(p%5B3457%5D%3F%7Ct%7Ctml)%24%22%3E%0A%09%09SetHandler%20%22proxy%3Aunix%3A%2Frun%2Fphp%2Fphp5.6-fpm-utilisateur.sock%7Cfcgi%3A%2F%2Flocalhost%22%0A%09%3C%2FFilesMatch%3E%0A%09%0A%09ErrorLog%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%2Fhome%2Futilisateur%2Fdomaine%2Flogs%2Ferror.log%0A%09CustomLog%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%2Fhome%2Futilisateur%2Fdomaine%2Flogs%2Faccess.log%20combined%0A%3C%2FVirtualHost%3E » message= »nano /etc/apache2/sites-available/www.domaine.conf » highlight= » » provider= »manual »/]
Et créer les répertoires du site
[pastacode lang= »markup » manual= »mkdir%20%2Fhome%2Futilisateur%2Fdomaine%0Amkdir%20%2Fhome%2Futilisateur%2Fdomaine%2Fwww%0Amkdir%20%2Fhome%2Futilisateur%2Fdomaine%2Flogs%0Achown%20utilisateur%3Autilisateur%20-R%20%2Fhome%2Futilisateur%2Fdomaine%0Achmod%20770%20-R%20%2Fhome%2Futilisateur%2Fdomaine » message= » » highlight= » » provider= »manual »/]
Activer le vhost
[pastacode lang= »markup » manual= »a2ensite%20www.domaine.conf%0A%0Aservice%20apache2%20reload » message= » » highlight= » » provider= »manual »/]
Modifier les pointages, penser à adapter le SPF si le site envoie des mails
Quand le pointage est opérationnel, mettre le Letsencrypt en route
[pastacode lang= »markup » manual= »acme.sh%20–issue%20-d%20www.domaine%20-d%20domaine%20-w%20%2Fhome%2Futilisateur%2Fdomaine%2Fwww » message= » » highlight= » » provider= »manual »/]
Et mettre à jour dans le vhost créer plutôt :
[pastacode lang= »markup » manual= »%3CIfModule%20mod_ssl.c%3E%0A%09%3CVirtualHost%20_default_%3A443%3E%0A%09%09ServerName%20www.domaine%0A%09%09ServerAlias%20domaine%0A%0A%09%09DocumentRoot%C2%A0%C2%A0%C2%A0%20%2Fhome%2Futilisateur%2Fdomaine%2Fwww%0A%0A%09%09SSLEngine%20on%0A%09%09%09SSLCertificateFile%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%2Froot%2F.acme.sh%2Fdomaine%2Fdomaine.cer%0A%09%09%09SSLCertificateKeyFile%C2%A0%C2%A0%20%2Froot%2F.acme.sh%2Fdomaine%2Fdomaine.key%0A%09%09%09SSLCertificateChainFile%20%2Froot%2F.acme.sh%2Fdomaine%2Ffullchain.cer%0A%09%09%09SSLCACertificateFile%20%C2%A0%C2%A0%C2%A0%2Froot%2F.acme.sh%2Fdomaine%2Fca.cer%0A%0A%09%09%3CFilesMatch%20%22%5C.(cgi%7Cshtml%7Cphtml%7Cphp)%24%22%3E%0A%09%09%09SSLOptions%20%2BStdEnvVars%0A%09%09%3C%2FFilesMatch%3E%0A%0A%09%09%3CDirectory%20%2Fusr%2Flib%2Fcgi-bin%3E%0A%09%09%09SSLOptions%20%2BStdEnvVars%0A%09%09%3C%2FDirectory%3E%0A%0A%09%09%3CFilesMatch%20%22.%2B%5C.ph(p%5B3457%5D%3F%7Ct%7Ctml)%24%22%3E%0A%09%09%09SetHandler%20%22proxy%3Aunix%3A%2Frun%2Fphp%2Fphp5.6-fpm-utilisateur.sock%7Cfcgi%3A%2F%2Flocalhost%22%0A%09%09%3C%2FFilesMatch%3E%0A%0A%09%09ErrorLog%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%2Fhome%2Futilisateur%2Fdomaine%2Flogs%2Ferror_ssl.log%0A%09%09CustomLog%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%2Fhome%2Futilisateur%2Fdomaine%2Flogs%2Faccess_ssl.log%20combined%0A%09%3C%2FVirtualHost%3E%0A%3C%2FIfModule%3E » message= » » highlight= » » provider= »manual »/]
[pastacode lang= »markup » manual= »service%20apache2%20reload » message= » » highlight= » » provider= »manual »/]
Créer la première page à la racine du site
[pastacode lang= »php » manual= »%3C!doctype%20html%3E%0A%3Ctitle%3ESite%20Maintenance%3C%2Ftitle%3E%0A%3Cstyle%3E%0A%20%20body%20%7B%20text-align%3A%20center%3B%20padding%3A%20150px%3B%20%7D%0A%20%20h1%20%7B%20font-size%3A%2050px%3B%20%7D%0A%20%20body%20%7B%20font%3A%2020px%20Helvetica%2C%20sans-serif%3B%20color%3A%20%23333%3B%20%7D%0A%20%20article%20%7B%20display%3A%20block%3B%20text-align%3A%20left%3B%20width%3A%20650px%3B%20margin%3A%200%20auto%3B%20%7D%0A%20%20a%20%7B%20color%3A%20%23dc8100%3B%20text-decoration%3A%20none%3B%20%7D%0A%20%20a%3Ahover%20%7B%20color%3A%20%23333%3B%20text-decoration%3A%20none%3B%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Carticle%3E%0A%20%20%20%20%3Ch1%3ENous%20serons%20bient%26ocirc%3Bt%20de%20retour%20!%3C%2Fh1%3E%0A%20%20%20%20%3Cdiv%3E%0A%20%20%20%20%20%20%20%20%3Cp%3ENous%20pour%20toutes%20demandes%2C%20merci%20de%20contacter%20votre%20webmaster.%3C%2Fp%3E%0A%20%20%20%20%20%20%20%20%3Cp%3E%26mdash%3B%20Votre%20%26eacute%3Bquipe%3C%2Fp%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%3C%2Farticle%3E » message= »nano /home/utilisateur/domaine/www/index.php » highlight= » » provider= »manual »/]
Ajouter un php.info pour les testes :
[pastacode lang= »markup » manual= »%3C%3Fphp%20phpinfo()%3B%20%3F%3E » message= »nano /home/utilisateur/domaine/www/php.info » highlight= » » provider= »manual »/]