Procédure d'ajout d'un VirtualHost sous Apache
De Hack-it.org.
(→VirtualHost Sous Apache) |
(→Exemple) |
||
Ligne 19 : | Ligne 19 : | ||
===Exemple=== | ===Exemple=== | ||
- | ks351556:/etc/apache2/sites-enabled# CreateDomaine.sh | + | |
- | Sous Domaine (S) ou Domaine principal (P)? | + | ks351556:/etc/apache2/sites-enabled# CreateDomaine.sh<br /> |
- | '''P''' | + | Sous Domaine (S) ou Domaine principal (P)?<br /> |
- | Login (8 char Max) : | + | '''P'''<br /> |
- | '''toto''' | + | Login (8 char Max) :<br /> |
- | Adding user `toto' ... | + | '''toto'''<br /> |
- | Adding new group `toto' (1022) ... | + | Adding user `toto' ...<br /> |
- | Adding new user `toto' (1021) with group `toto' ... | + | Adding new group `toto' (1022) ...<br /> |
- | Creating home directory `/home/toto' ... | + | Adding new user `toto' (1021) with group `toto' ...<br /> |
- | Copying files from `/etc/skel' ... | + | Creating home directory `/home/toto' ...<br /> |
- | Enter new UNIX password: '''toto''' | + | Copying files from `/etc/skel' ...<br /> |
- | Retype new UNIX password: '''toto''' | + | Enter new UNIX password: '''toto'''<br /> |
- | passwd: password updated successfully | + | Retype new UNIX password: '''toto'''<br /> |
- | Changing the user information for toto | + | passwd: password updated successfully<br /> |
- | Enter the new value, or press ENTER for the default | + | Changing the user information for toto<br /> |
- | Full Name []: toto | + | Enter the new value, or press ENTER for the default<br /> |
- | Room Number []: | + | Full Name []: toto<br /> |
- | Work Phone []: | + | Room Number []:<br /> |
- | Home Phone []: | + | Work Phone []:<br /> |
- | Other []: | + | Home Phone []:<br /> |
- | Is the information correct? [y/N] '''Y''' | + | Other []:<br /> |
- | Nom de (Sous) Domaine : | + | Is the information correct? [y/N] '''Y'''<br /> |
- | '''toto.com''' | + | Nom de (Sous) Domaine :<br /> |
- | Domaine Créé, activation | + | '''toto.com'''<br /> |
- | Avez-vous mis a jour BIND via webmin? (Y/N) | + | Domaine Créé, activation<br /> |
- | '''N''' | + | Avez-vous mis a jour BIND via webmin? (Y/N)<br /> |
- | Vous devrez redemarrer Apache (apache2ctl restart) et Bind apres avoir mis a jour la configuration sous webmin | + | '''N'''<br /> |
- | Attention si vous redemarrez avant, apache refusera de se lancer | + | Vous devrez redemarrer Apache (apache2ctl restart) et Bind apres avoir mis a jour la configuration sous webmin<br /> |
- | Mot de passe de la Base MySQL : | + | Attention si vous redemarrez avant, apache refusera de se lancer<br /> |
- | '''toto''' | + | Mot de passe de la Base MySQL :<br /> |
- | Base de donnee créé | + | '''toto'''<br /> |
- | n'oubliez pas de créer les statistiques /etc/awstats/ | + | Base de donnee créé<br /> |
- | n'oubliez pas d'ajouter les alias dans | + | n'oubliez pas de créer les statistiques /etc/awstats/<br /> |
- | /etc/apache2/sites-available/toto.com.conf | + | n'oubliez pas d'ajouter les alias dans <br /> |
- | de même dans /etc/awstats/awstats.www.toto.com.conf | + | /etc/apache2/sites-available/toto.com.conf<br /> |
+ | de même dans /etc/awstats/awstats.www.toto.com.conf<br /> |