« Serveur internet sous Windows (2019) » : différence entre les versions
Aller à la navigation
Aller à la recherche
(Page créée avec « 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 === * <c... ») |
Aucun résumé des modifications |
||
Ligne 8 : | Ligne 8 : | ||
* <code>...\wamp\mysql\</code> | * <code>...\wamp\mysql\</code> | ||
* <code>...\wamp\php\</code> | * <code>...\wamp\php\</code> | ||
* <code>...\wamp\www\</code> | * <code>...\wamp\www\</code> : contiendra tous les sous-dossiers correspondants aux différents sites | ||
=== Les sources === | === Les sources === | ||
Ligne 20 : | Ligne 20 : | ||
* phpmysql, version 4.7.1 | * phpmysql, version 4.7.1 | ||
** https://www.phpmyadmin.net/downloads/ | ** https://www.phpmyadmin.net/downloads/ | ||
== Outils == | == Outils == | ||
* MySQL Utilities requires Python 2.6 | * MySQL Utilities requires Python 2.6 | ||
** https://dev.mysql.com/doc/mysql-utilities/1.6/en/ | ** https://dev.mysql.com/doc/mysql-utilities/1.6/en/ | ||
* MediaWiki 1.28 | * MediaWiki 1.28 ; information, MediaWiki 1.27 LTS ! | ||
** https://www.mediawiki.org/wiki/Compatibility/fr : attention à la compatibilité avec PHP | ** https://www.mediawiki.org/wiki/Compatibility/fr : attention à la compatibilité avec PHP | ||
Ligne 50 : | Ligne 49 : | ||
* <code>session.save_path = "...\temp"</code> | * <code>session.save_path = "...\temp"</code> | ||
== SSL == | |||
* https://apache.developpez.com/cours/apache20-modssl-windows/ | |||
== Commandes == | == Commandes == |
Version du 7 juin 2017 à 23:08
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
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
Outils
- MySQL Utilities requires Python 2.6
- MediaWiki 1.28 ; information, MediaWiki 1.27 LTS !
- https://www.mediawiki.org/wiki/Compatibility/fr : attention à la compatibilité avec PHP
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(); ?>