| From | Sylvain Collilieux <sylvain dot collilieux at wanadoo dot fr> |
| Subject | Re: [gulliver] apache php |
| Date | Sat, 05 Mar 2005 16:20:32 +0100 |
Rien n'y fait : apache ne veux pas interpréter le php. Je ne sais pas comment faire.
Quelqu'un connait-il un tutoriel complet et efficace ?
Dans ce cas, la première documentation à aller voir, c'est le répertoire /usr/share/doc/nondupaquet/. C'est vrai pour toutes les distribs. Ces répertoires contiennent un grand nombre de réponses.
less /usr/share/doc/php4/README.Debian [...] Problems with Apache not being configured properly after installing PHP4 ------------------------------------------------------------------------
Sometimes (pretty much always, actually), Apache isn't configured out of the box to handle php scripts in a manner that people might expect. You need to do the following things in httpd.conf to get it working as you might expect.
2. Uncomment (and possibly edit) the AddType lines for PHP and PHP-source handling. If you need more extensions, you can list them all on the same line, as shown below:
AddType application/x-httpd-php .php .phtml .php3 AddType application/x-httpd-php-source .phps
3. If you want "index.php" (and possibly others) to work as directory indexes, you'll need to edit the DirectoryIndex line to look something like the following (edit to taste; if you use SSI, for instance, don't forget .shtml too):
DirectoryIndex index.php index.phtml index.php3 index.html [...]
-- Sylvain Jabber: sylvain at jabber dot fr
Attachment:
signature.asc
Description: OpenPGP digital signature