
Une bonne fois pour toute !
Voici les tous premiers pas pour l’installation d’un serveur Debian. apache2, Php5.4, mysql5
Une fois debian installé,
- 
apt-get update
 
Installation d’apache
- 
apt-get install apache2
 
Mise à jour avec les sources DOTDEB
nano /etc/apt/sources.list- et ajouter 
deb http://packages.dotdeb.org/ squeeze-php54 all apt-get updategpg --keyserver keys.gnupg.net --recv-key A2098A6Egpg -a --export A2098A6E | apt-key add -apt-get upgrade
Pour l’installation php5.4 et mysql 5 et phpmyadmin
- 
apt-get install php5
 - 
apt-get install php-pear php5-gd php5-curl
 - 
apt-get install mysql-server
 - 
apt-get install php5-mysql
 - 
apt-get install phpmyadmin
 - on en profite pour faire un lien symbolique vers phpmyadmin : /usr/share/phpmyadmin/
 
On configure ensuite le nom de domaine rattaché au serveur : /etc/apache2/sites-available/beta4 <VirtualHost *:80> ServerName beta4.tribu-and-co.fr ServerAlias beta4.tribu-and-co.fr DocumentRoot /var/www/beta4 <Directory /var/www/beta4> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> <Directory /usr/share/phpmyadmin/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> </VirtualHost>
- 
a2ensite beta4
 
On redémarre le tout, et le tour est joué
- 
/etc/init.d/apache2 restart