Apache/PHP

Un livre de Wikibooks.

Tout d'abord installer PHP :

commande nécessitant les privilèges root

# apt-get install php4

Et ensuite le module PHP pour apache

commande nécessitant les privilèges root

# apt-get install libapache2-mod-php4

Redémarrer apache

commande nécessitant les privilèges root

# /etc/init.d/apache2 restart

Créons un fichier contenant un script php minimal qui nous permettra de faire un test

commande

$ echo "<?php phpinfo(); ?>" > /var/www/test.php

Testons :

commande

$ lynx http://localhost/test.php