« Serveur internet sous Windows (2019) » : différence entre les versions

Aller à la navigation Aller à la recherche
Ligne 13 : Ligne 13 :


=== Les sources ===
=== Les sources ===
* Apache Lounge, Apache 2.4 binaries VC14, Apache 2.4.25 Win64, 27/01/2017
Apache Lounge, Apache 2.4 binaries VC14, Apache 2.4.25 Win64, 27/01/2017
** https://www.apachelounge.com/download/
* https://www.apachelounge.com/download/
** https://www.apachelounge.com/download/VC14/binaries/httpd-2.4.25-win64-VC14.zip
* https://www.apachelounge.com/download/VC14/binaries/httpd-2.4.25-win64-VC14.zip
** https://www.apachelounge.com/download/additional/ compléments
* https://www.apachelounge.com/download/additional/ compléments
** https://httpd.apache.org/docs/2.4/ssl/ssl_howto.html le chiffrement SSL
* https://httpd.apache.org/docs/2.4/ssl/ssl_howto.html le chiffrement SSL
* MySQL, MySQL Community Server 5.7.18, 316 Mo
 
** https://dev.mysql.com/downloads/mysql/
MySQL, MySQL Community Server 5.7.18, 316 Mo
* PHP, version PHP 7.1 (7.1.5)
* https://dev.mysql.com/downloads/mysql/
** http://windows.php.net/download
 
* phpmysql, version 4.7.1
PHP, version PHP 7.1 (7.1.5)
** https://www.phpmyadmin.net/downloads/
* http://windows.php.net/download
MySQL, version 1.27
 
** https://www.mediawiki.org/wiki/MediaWiki
phpmysql, version 4.7.1
* https://www.phpmyadmin.net/downloads/
 
MySQL, version 1.27
* https://www.mediawiki.org/wiki/MediaWiki


=== MySQL 1.27 (LTS) et prérequis ===
=== MySQL 1.27 (LTS) et prérequis ===

Version du 22 juin 2017 à 14:36

La création d'un serveur internet sous Windows.

Plus précisément, sous Windows Server R2.

Prérequis

Organisation des dossiers sur le serveur

  • ...\wamp\apache24\
  • ...\wamp\mysql\
  • ...\wamp\php\
  • ...\wamp\www\ : contiendra tous les sous-dossiers correspondants aux différents sites
    • ...\wamp\www\site1\ : dossier pour le premier site
    • ...\wamp\www\site2\ : dossier pour le deuxième site

Les sources

Apache Lounge, Apache 2.4 binaries VC14, Apache 2.4.25 Win64, 27/01/2017

MySQL, MySQL Community Server 5.7.18, 316 Mo

PHP, version PHP 7.1 (7.1.5)

phpmysql, version 4.7.1

MySQL, version 1.27

MySQL 1.27 (LTS) et prérequis

PHP 5.5.9 ou plus récent, avec les extensions suivantes :

  • ctype
  • iconv
  • json
  • mbstring (new requirement in 1.27)
  • xml
  • openssl, fortement recommandé

MySQL :

  • MySQL 5.0.3 ou plus récent

Outils

Paramétrage

Apache, httpd.conf, ajouter les lignes suivantes

  • LoadModule php7_module "...\php\php7apache2_4.dll"
  • AddHandler application/x-httpd-php .php
  • # configure the path to php.ini
  • PHPIniDir ...

Apache, httpd.conf, modifier

  • ServerRoot ".../wamp/apache24"
  • Listen 80
  • DocumentRoot ".../wamp/www"
  • <Directory ".../wamp/www">

Apache, httpd.conf, modifier

  • <IfModule dir_module>
  • DirectoryIndex index.html, index.htm, index.php
  • </IfModule>

PHP, php.ini

  • extension_dir = "...\php\ext"
  • session.save_path = "...\temp"

SSL

Commandes

Installation du service Apache
...\Apache24\bin\httpd -k install
Démarrage du service Apache
...\Apache24\bin\httpd -k start
Redémarrage du service Apache
...\Apache24\bin\httpd -k restart

Moniteur Apache (icone dans la barre de notification)

...\Apache24\bin\ApacheMonitor.exe
Vérification du serveur. Fichier index.php
<?php
echo phpinfo();
?>