installation_d_apache
Ceci est une ancienne révision du document !
Table des matières
Apache
Installation
Commande
~# apt-get install apache2 ~#
Contrôle de l'installation
Lancer un navigateur à l'adresse http://localhost, une page par défaut s'affiche si tout est OK.
Création d'un hôte virtuel
/etc/site-available/www.symfony.dev.conf
Le fichier du l'hôte doit se terminer par “.conf”.
<VirtualHost *:80> ServerName www.symfony.dev ServerAdmin webmaster@localhost DocumentRoot /home/pascal/dev/www.symfony.dev/sources/web <Directory /home/pascal/dev/www.symfony.dev/sources/web/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
Activation d'un site
L'activation se fait en utilisant le nom du fichier sans l'extension “.conf”.
~# a2ensite 100-www.symfony.dev Enabling site 100-www.symfony.dev. To activate the new configuration, you need to run: service apache2 reload ~#
Hôte par défaut
Fichier /etc/apache2/ports.conf
Ajouter la ligne :
ServerName DefaultServer
Fichier /etc/apache2/sites-available/000-default.conf
Ajouter la ligne :
ServerName DefaultServer
installation_d_apache.1441305111.txt.gz · Dernière modification : 2023/07/04 10:55 (modification externe)