« MediaWiki/Serveur internet sous Windows » : différence entre les versions
Aller à la navigation
Aller à la recherche
(Fylip22 a déplacé la page Serveur internet sous Windows vers Serveur internet sous Windows (2019)) Balise : Nouvelle redirection |
m (Redirection supprimée vers Serveur internet sous Windows (2019)) Balise : Redirection supprimée |
||
Ligne 1 : | Ligne 1 : | ||
La création d'un '''serveur internet sous Windows'''. | |||
Plus précisément, sous Windows 10 Pro. | |||
== Prérequis == | |||
=== Organisation des dossiers sur le serveur === | |||
* <code>...\wamp\apache24\</code> | |||
* <code>...\wamp\mysql\</code> | |||
* <code>...\wamp\php\</code> | |||
* <code>...\wamp\www\</code> : contiendra tous les sous-dossiers correspondants aux différents sites | |||
** <code>...\wamp\www\site1\</code> : dossier pour le premier site | |||
** <code>...\wamp\www\site2\</code> : dossier pour le deuxième site | |||
=== Les sources === | |||
Apache Lounge, Apache 2.4 | |||
* https://www.apachelounge.com/download/ | |||
* https://www.apachelounge.com/download/additional/ compléments | |||
* https://httpd.apache.org/docs/2.4/ssl/ssl_howto.html le chiffrement SSL | |||
MySQL, MySQL Community Server 8.x.x | |||
* https://dev.mysql.com/downloads/mysql/ | |||
PHP, version PHP | |||
* http://windows.php.net/download | |||
phpmyadmin, version | |||
* https://www.phpmyadmin.net/downloads/ | |||
MediaWiki, version 1.36.1 | |||
* 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.x.x-winx64.zip | |||
* https://dev.mysql.com/downloads/connector/odbc/ | |||
** mysql-connector-odbc-8.x.x-winx64.msi | |||
** nécessite Visual Studio 2018 x64 | |||
PHP 7.x.x ou plus récent, avec les extensions suivantes : | |||
* ctype | |||
* iconv | |||
* json | |||
* mbstring | |||
* xml | |||
* openssl, fortement recommandé | |||
MySQL : | |||
* MySQL x.x.x ou plus récent | |||
== Outils == | |||
* MySQL Utilities requires Python x.x | |||
** https://dev.mysql.com/doc/mysql-utilities/1.6/en/ | |||
* MediaWiki 1.36.1 | |||
** https://www.mediawiki.org/wiki/Compatibility/fr : attention à la compatibilité avec PHP | |||
** https://wiki.meurisse.org/wiki/MediaWiki#Prerequisite guide | |||
== Paramétrage == | |||
Apache, <code>httpd.conf</code>, ajouter les lignes suivantes | |||
* <code>LoadModule php7_module "...\php\php7apache2_4.dll"</code> | |||
* <code>AddHandler application/x-httpd-php .php</code> | |||
* <code># configure the path to php.ini</code> | |||
* <code>PHPIniDir ...</code> | |||
Apache, <code>httpd.conf</code>, modifier | |||
* <code>ServerRoot ".../wamp/apache24"</code> | |||
* <code>Listen 80</code> | |||
* <code>DocumentRoot ".../wamp/www"</code> | |||
* <code><Directory ".../wamp/www"></code> | |||
Apache, <code>httpd.conf</code>, modifier | |||
* <code><IfModule dir_module></code> | |||
* <code>DirectoryIndex index.html, index.htm, index.php</code> | |||
* <code></IfModule></code> | |||
PHP, <code>php.ini</code> | |||
* <code>extension_dir = "...\php\ext"</code> | |||
* <code>session.save_path = "...\temp"</code> | |||
== SSL == | |||
* https://apache.developpez.com/cours/apache20-modssl-windows/ | |||
== Commandes == | |||
;Installation du service Apache : | |||
: <code>...\Apache24\bin\httpd -k install</code> | |||
;Démarrage du service Apache : | |||
: <code>...\Apache24\bin\httpd -k start</code> | |||
;Redémarrage du service Apache : | |||
: <code>...\Apache24\bin\httpd -k restart</code> | |||
Moniteur Apache (icone dans la barre de notification) | |||
: <code>...\Apache24\bin\ApacheMonitor.exe</code> | |||
;Vérification du serveur. Fichier <code>index.php</code> | |||
<source lang="php"> | |||
<?php | |||
echo phpinfo(); | |||
?> | |||
</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 | |||
[[Catégorie:Site_internet]] |
Version du 27 août 2021 à 19:29
La création d'un serveur internet sous Windows.
Plus précisément, sous Windows 10 Pro.
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
- https://www.apachelounge.com/download/
- https://www.apachelounge.com/download/additional/ compléments
- https://httpd.apache.org/docs/2.4/ssl/ssl_howto.html le chiffrement SSL
MySQL, MySQL Community Server 8.x.x
PHP, version PHP
phpmyadmin, version
MediaWiki, version 1.36.1
MySQL et prérequis
Site officiel de MySQL
MySQL Community Server :
- https://dev.mysql.com/downloads/mysql/
- mysql-8.x.x-winx64.zip
- https://dev.mysql.com/downloads/connector/odbc/
- mysql-connector-odbc-8.x.x-winx64.msi
- nécessite Visual Studio 2018 x64
PHP 7.x.x ou plus récent, avec les extensions suivantes :
- ctype
- iconv
- json
- mbstring
- xml
- openssl, fortement recommandé
MySQL :
- MySQL x.x.x ou plus récent
Outils
- MySQL Utilities requires Python x.x
- MediaWiki 1.36.1
- https://www.mediawiki.org/wiki/Compatibility/fr : attention à la compatibilité avec PHP
- https://wiki.meurisse.org/wiki/MediaWiki#Prerequisite guide
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