Installation rapide de LAMP (Apache+MySql+php) sous Linux
Publié par sebsauvage, dernière mise à jour mar. 17 nov. 2009 à 18:28:40 par marlalapocket
LAMP = Linux+Apache+MySql+Php. C'est le serveur web par excellence.
L'ensemble est facile à installer.
Installation rapide
sudo aptitude install apache2 php5 mysql-server php5-mysql libapache2-mod-php5
Le mot de passe administrateur mySQL vous est demandé: Entrez-en un.
sudo /etc/init.d/apache2 restart
Une fois l'installation terminé, ouvrez http://localhost dans votre navigateur: Voilà, il fonctionne.
La racine de votre site web est située dans /var/www
Tester php
Créez le fichier /var/www/test.php contenant:
<? phpinfo(); ?>
et ouvrez http://localhost/test.php dans votre navigateur.
Voilà !
php fonctionne dans Apache.
Liens
En français, plus complet:
doc.ubuntu-fr.org
doc.ubuntu-fr.org
En anglais:
help.ubuntu.com (en anglais)
www.howtoforge.com (en anglais)
services.tucows.com (en anglais)