Bonjour,
Je suis en train d'essayer de faire fonctionner une archive PHP Web Phar en utilisant WAMP (donc sous windows).
Pour faire le plus simple possible j'ai simplement recopié l'exemple présent sur la page suivante (documentation PHP officielle) http://www.php.net/manual/en/phar.webphar.php.
J'obtiens bien un fichier 'myphar.phar' que je copie dans mon répertoire de déploiement 'C:/wamp/www'.
Maintenant je tente d'accéder à ma page d'index via les URLs :
http://localhost/myphar.phar
http://localhost/myphar.phar/index.php
Mais j'obtiens le message d'erreur suivant :
En regardant dans les logs d'Apache j'obtiens un autre message d'erreur :Forbidden
You don't have permission to access /myphar.phar on this server.
Est-ce que quelqu'un connaît la procédure à suivre pour faire fonctionner ce PHAR simplissime dans Apache ?[Wed Jan 18 09:19:20 2012] [error] [client ::1] client denied by server configuration: C:/wamp/www/myphar.phar
Merci,
Baptiste







Répondre avec citation



Affichez votre code en couleurs : [CODE=php][/CODE] (bouton # de l'éditeur) et [C=php][/C]






Partager