Xampp : problème Include dans httpd.conf pour utiliser UserDir
Bonjour,
Sous Ubuntu 9.10, j'ai installé Xampp Linux 1.7.2.
Au lieu d'utiliser le répertoire de travail standard : opt/lampp/htdocs/
J'ai créé un répertoire utilisateur : /home/michel/public_html et j'ai modifié httpd.conf en suivant les instructions de ce Tuto
Extrait de mon httpd.conf :
Code:
1 2
| # User home directories
Include etc/extra/httpd-userdir.conf # modif 11/11 |
Contenu de httpd-userdir.conf :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| # Settings for user home directories
#
# Required module: mod_userdir
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received. Note that you must also set
# the default access control for these directories, as in the example below.
#
UserDir public_html
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory> |
Après ces modification si je fais un start de lampp, j'ai la réponse suivante
Code:
1 2 3 4 5 6 7 8 9 10
| michel@Asus-X71Q:~$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 1.7.2...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Error 1! Couldn't start Apache!
XAMPP: Starting diagnose...
XAMPP: Sorry, I've no idea what's going wrong.
XAMPP: Please contact our forum http://www.apachefriends.org/f/
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started. |
Si je fais la modification de httpd.conf quand appache est lancé normalement et que j'envoie une commande restart, j'ai la réponse suivante
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| michel@Asus-X71Q:~$ sudo /opt/lampp/lampp restart
Stopping XAMPP for Linux 1.7.2...
XAMPP: Stopping Apache with SSL...
httpd: Syntax error on line 475 of /opt/lampp/etc/httpd.conf: Include takes one argument, Name of the config file to be included
XAMPP: Stopping MySQL...
XAMPP: Stopping ProFTPD...
XAMPP stopped.
Starting XAMPP for Linux 1.7.2...
XAMPP: XAMPP-Apache is already running.
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started. |
La ligne 475 signalée en syntax error au moment du stop, correspond à la ligne "Include etc/extra/httpd-userdir.conf" ou j'ai enlevé le #
Si je remet la ligne en commentaire, Apache se relance normalement et j'accède sans problème à la page d'accueil de Xampp avec : http://localhost/ , mais pour mes développement je voudrais bien pouvoir utiliser mon répertoire utilisateur.
Pouvez-vous m'aider à résoudre mon problème?