| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente |
| web:apache [2021/08/11 11:37] – phil | web:apache [2025/06/19 19:24] (Version actuelle) – modification externe 127.0.0.1 |
|---|
| [[info:bdd:accueilweb|{{ :iconemaison.jpg?nolink&25|Sommaire Web}}]] | [[:web:accueilweb|{{ :iconemaison.jpg?nolink&25|Sommaire Web}}]] |
| |
| ==== WEB - Installer un serveur Apache, PHP et mySQL ==== | ==== WEB - Installer un serveur Apache, PHP et mySQL ==== |
| |
| [Mise à jour le 11/8/2021] | [Mise à jour le 10/5/2023] |
| |
| * **Ressources** | * **Ressources** |
| |
| * **Installation sous Windows 10 64bits** | * **Installation sous Windows 10 64bits** |
| * **Postes Elève** : voir la démarche <html><a href="http://www.stashofcode.fr/installation-minimale-apache-php-mysql-windows/" target="_blank">Apache 2.4, PHP 7.X et MYSQL 8.0 S</a></html> et les précisions ci-dessous : | * **Postes Elève** : voir la démarche <html><a href="http://www.stashofcode.fr/installation-minimale-apache-php-mysql-windows/" target="_blank">Apache 2.4, PHP 8.x et MYSQL 8.0 S</a></html> et les précisions ci-dessous (<html><a href="https://webge.fr/doc/wikis/pdf/Modifs_Configuration_Apache24_PHP8.pdf" title="Faite le 13/6/2023">Exemple de modification</a></html>) : |
| * Installer **Apache 2.4** | * Installer **Apache 2.4** |
| * Installer **PHP 7.x** ou + | * Installer **PHP 8.x** |
| * Installer **MYSQL COMMUNITY SERVER 8.X** | * Installer **MYSQL COMMUNITY SERVER 8.X** |
| * Installer **PHPMYADMIN** (à dezipper dans c:/Apache24/wwww/phpmyadmin) | * Installer **PHPMYADMIN** (à dezipper dans c:/Apache24/www/phpmyadmin) |
| * Installer les **extensions PHP 7.3.9**. Par exemple **curl** (ressource : <html><a href="http://bit.ly/2YDF06b" target="_blank">StackOverflow</a></html>) | * Installer les **extensions PHP 8.x** |
| - Ajouter un lien vers le répertoire PHP (Ex: //C:\php7\//) dans les variables d'environnement (**PATH**), utilisateur et système | * //Exemple// **curl** (ressource : <html><a href="http://bit.ly/2YDF06b" target="_blank">StackOverflow</a></html>) |
| - Modifier le fichier //php.ini// situé dans le répertoire php7 | - **Ajouter** un lien vers le répertoire PHPx (Ex: //C:\php8\//) dans les variables d'environnement (**PATH**), utilisateur et système. |
| - Préciser le chemin vers le répertoire des extensions (Ex: //extension_dir="C:\php7\ext"//) | - **Modifier** le fichier //php.ini// situé dans le répertoire PHPx |
| - Décommmenter (en supprimant le **;**) les extensions curl, openssl et mysqli (Ex: //extension=curl//), (Ex: //extension=openssl//), (Ex: //extension=mysqli//) | - Préciser le chemin vers le répertoire des extensions (Ex: //extension_dir="C:\php8\ext"//) |
| - Relancer le service Apache24 pour que les modifications dans php.ini soient prises en compte (service exécuté en administrateur) | - Décommmenter (en supprimant le **;**) ou **ajouter les liens** vers les extensions **curl**, **openssl** et **mysqli** (Ex: //extension=php_curl.dll//), (Ex: //extension=php_openssl.dll//), (Ex: //extension=php_mysqli.dll//) |
| | - **Relancer** le service Apache24 pour que les modifications dans php.ini soient prises en compte (service exécuté en administrateur) |
| * **Poste PROF** (si administrateur, installer une **distribution WAMP**) | * **Poste PROF** (si administrateur, installer une **distribution WAMP**) |
| * Télécharger WAMP <html><a href="http://www.wampserver.com/" target="_blank">ici</a></html> | * Télécharger WAMP <html><a href="http://www.wampserver.com/" target="_blank">ici</a></html> |
| Apache fonctionne principalement sur les systèmes d'exploitation **UNIX** (Linux, Mac OS X, Solaris, BSD et UNIX) et **Windows**. | Apache fonctionne principalement sur les systèmes d'exploitation **UNIX** (Linux, Mac OS X, Solaris, BSD et UNIX) et **Windows**. |
| |
| <note tip>**Documentation** sur <html><a href="https://httpd.apache.org/docs/2.4/" target="_blank">The Apache Software Foundation</a></html></note> | <callout type="tip" icon="true">**Documentation** sur <html><a href="https://httpd.apache.org/docs/2.4/" target="_blank">The Apache Software Foundation</a></html></callout> |
| |
| === PHP === | === PHP === |
| Il peut être intégré facilement au HTML. | Il peut être intégré facilement au HTML. |
| |
| <note tip>**Documentation** sur <html><a href="https://www.php.net/manual/fr/intro-whatis.php" target="_blank">php.net</a></html></note> | <callout type="tip" icon="true">**Documentation** sur <html><a href="https://www.php.net/manual/fr/intro-whatis.php" target="_blank">php.net</a></html></callout> |
| |
| === mySQL === | === mySQL === |
| mySQL fonctionne principalement sur les systèmes d'exploitation **UNIX** (Linux, Mac OS X, Solaris, BSD et UNIX) et **Windows**. | mySQL fonctionne principalement sur les systèmes d'exploitation **UNIX** (Linux, Mac OS X, Solaris, BSD et UNIX) et **Windows**. |
| |
| <note tip>**Documentation** mySQL sur <html><a href="https://www.mysql.com/fr/" target="_blank">mysql.com</a></html> et MariaDB sur <html><a href="https://mariadb.org/" target="_blank">mariadb.org</a></html></note> | <callout type="tip" icon="true">**Documentation** mySQL sur <html><a href="https://www.mysql.com/fr/" target="_blank">mysql.com</a></html> et MariaDB sur <html><a href="https://mariadb.org/" target="_blank">mariadb.org</a></html></callout> |