Dupliquer possible:
Erreur 403 Forbidden sur Mac OS X Localhost
Quand je vais à localhost / ~ admin / ou 127.0.0.1/~admin/, mon navigateur dit:
"Interdit
Vous n'êtes pas autorisé à accéder à / ~ admin / sur ce serveur. "
Comment puis-je changer cela?! ??!?! Ça me rend dingue!
quand je vais à localhost ou 127.0.0.1/ mon navigateur dit: "ça marche!".
J'exécute mac osx 10.8.
J'ai créé des alias dans mon fichier .bash_profile pour pouvoir démarrer, redémarrer et arrêter Apache rapidement:
alias startApache="sudo apachectl start"
alias stopApache="sudo apachectl stop"
alias restartApache="sudo apachectl restart"
Dans mon fichier /etc/apache2/httpd.conf, j'ai activé php5:
LoadModule php5_module libexec/apache2/libphp5.so
Je me suis également assuré de changer les permissions pour mon fichier admin.conf avec cette commande dans terminal:
sudo chmod 644 username.conf
C'est mon /etc/apache2/users/admin.conf:
<Directory "/Users/admin/Sites/">
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>