PHP sur MacOS X

M

Membre supprimé 2

Invité
quelqu'un a-t'il réussi à installer php sur MacOS Xß?

- j'ai installé les outils de développement à partir de Darwin (http://www.macaddict.com/content/2000/09/22/19619)
- j'ai téléchargé apache et php
- je les ai compilé et installé (sans problèmes apparents) comme indiqué sur http://www.php.net/manual/install.unix.php
- php ne fonctionne toujours pas.

j'ai l'impression d'avoir les fichiers de configuration d'apache à plusieurs
endroits: /Library/Webserver et /usr/local/httpd.

merci du coup de main
 
après quelques recherches, voici la solution:

j'ai trouvé la solution à mon problème:

1. Add the following lines to /Library/WebServer/Configuration/apache.conf
---
LoadModule php4_module /System/Library/Apache/Modules/libphp4.so
AddModule mod_php4.c

2. Un-comment the following lines from the same file
---
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

3. Restart apache (apachectl restart)

et php fonctionne : )
 
après quelques recherches, voici la solution:

j'ai trouvé la solution à mon problème:

1. Add the following lines to /Library/WebServer/Configuration/apache.conf
---
LoadModule php4_module /System/Library/Apache/Modules/libphp4.so
AddModule mod_php4.c

2. Un-comment the following lines from the same file
---
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

3. Restart apache (apachectl restart)

et php fonctionne : )