[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: php



Le mar 23/09/2003 à 06:21, Nicolas Péchon a écrit :
>  J'essaye d'installer apache et php et mysql
> j'ai donc fait apt-get install apache
> puis un apt-get install php4
> 
> Mais, lorsque je créer un fichier test.php:
> <html> 
> <? 
> echo 'premier test php<br><br>'; 
> phpinfo(); 
> ?> 
> </html> 
> 
> puis:
> $ lynx localhost/test.php
>  
>  Recherche localhost premier
>  Recherche localhost
>  localhost
>  Connexion HTTP à localhost
>  Envoi de la requête HTTP
>  Demande acheminée au serveur. Veuillez attendre
>  HTTP/1.1 200 OK
>  Transfert de données terminé
>  less '/tmp/h5zHtr/L2131-761TMP.php'
>   
>   lynx : fichier de départ introuvable ou son mode n'est pas reconnu
>   Sortie
> 
> J'ai du oublier quelque-chose non??

Oui, dans httpd.conf, il te manque :

AddType application/x-httpd-php .php .php3
AddType application/x-httpd-php-source .phps

Régis.



Reply to: