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

Aller à la navigation Aller à la recherche
 
(11 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
La création d'un '''serveur internet sous Windows'''.
La création d'un '''serveur internet sous Windows 2019'''.


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


== Prérequis ==
== Prérequis ==
Ligne 13 : Ligne 12 :


=== 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.53 Win64, 2022-03
** 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.253-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/
* PHP, version PHP 7.1 (7.1.5)
** http://windows.php.net/download
* 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 ===
Apache Lounge, Apache 2.4 binaries VC14, Apache 2.4.58 Win64, 2024-01
PHP 5.5.9 ou plus récent, avec les extensions suivantes :
* https://www.apachelounge.com/download/VS17/binaries/httpd-2.4.58-310124-win64-VS17.zip
 
MySQL, MySQL Community Server 8.0.23, 316 Mo
* https://dev.mysql.com/downloads/mysql/
 
PHP, version PHP 7.4 (7.4.28)
* http://windows.php.net/download
 
phpmyadmin, version 5.1.3
* https://www.phpmyadmin.net/downloads/
 
MediaWiki, version 1.37.0
* https://www.mediawiki.org/wiki/MediaWiki
 
=== MySQL et prérequis ===
Site officiel de MySQL
* https://www.mysql.com/fr/
 
MySQL Community Server :
* https://dev.mysql.com/downloads/mysql/
** mysql-8.0.23-winx64.zip
 
* https://dev.mysql.com/downloads/connector/odbc/
** mysql-connector-odbc-8.0.23-winx64.msi
** nécessite Visual Studio 2018 x64
 
PHP 7.4.28 ou plus récent, avec les extensions suivantes :
* ctype
* ctype
* iconv
* iconv
* json
* json
* mbstring (new requirement in 1.27)
* mbstring (new requirement in MediaWiki 1.27)
* xml
* xml
* openssl, fortement recommandé
* openssl, fortement recommandé
Ligne 90 : Ligne 107 :
?>
?>
</source>
</source>
=== MySQL ===
Pour accéder à MySQL en ligne de commande :
* fenêtre DOS ;
* <code>mysql -u root -p</code>
Sauvegarde d'une base de données :
* <code>mysqldump --databases nombase > nombase-sauv.sql</code>
Import d'une base :
* <code>mysql -u root -p nombase < nombase-sauve.sql</code>
== Kono personnalisation ==
=== Extensions ===
LdapAuthentication
* https://www.mediawiki.org/wiki/Extension:LDAP_Authentication
Auth remoteuser
* https://www.mediawiki.org/wiki/Extension:Auth_remoteuser
NoTitle, pour ne pas afficher le titre de l'article
* https://www.mediawiki.org/wiki/Extension:NoTitle
=== Habillage ===
Utilisation de l'habillage '''Pivot'''
* https://www.mediawiki.org/wiki/Skin:Pivot
== Voir aussi ==
* &nbsp;
[[Catégorie:Site internet]]
[[Catégorie:Serveur internet]]
[[Catégorie:Windows]]

Dernière version du 3 février 2024 à 11:11

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


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.53 Win64, 2022-03

Apache Lounge, Apache 2.4 binaries VC14, Apache 2.4.58 Win64, 2024-01

MySQL, MySQL Community Server 8.0.23, 316 Mo

PHP, version PHP 7.4 (7.4.28)

phpmyadmin, version 5.1.3

MediaWiki, version 1.37.0

MySQL et prérequis

Site officiel de MySQL

MySQL Community Server :

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

  • ctype
  • iconv
  • json
  • mbstring (new requirement in MediaWiki 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();
?>

MySQL

Pour accéder à MySQL en ligne de commande :

  • fenêtre DOS ;
  • mysql -u root -p

Sauvegarde d'une base de données :

  • mysqldump --databases nombase > nombase-sauv.sql

Import d'une base :

  • mysql -u root -p nombase < nombase-sauve.sql

Kono personnalisation

Extensions

LdapAuthentication

Auth remoteuser

NoTitle, pour ne pas afficher le titre de l'article

Habillage

Utilisation de l'habillage Pivot

Voir aussi

  •