Wiki Memo

perso & pour tous

Lamp


sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 start

Above both commands will stop the apache server and start again. But you can do restart apache server by single command only:

sudo /etc/init.d/apache2 restart



Tutoriel : http://tuxtweaks.com/2011/10/install-lamp-and-phpmyadmin-on-ubuntu-11-10/

sudo /etc/init.d/apache2 restart
sudo /etc/init.d/apache2 stop

sudo apt-get install lamp-server^

Testing Apache http://localhost/

Testing php
Dans terminal
  • echo "<?php phpinfo(); ?>" | sudo sudo tee /var/www/testing.php

restart the Apache web server
sudo service apache2 restart
http://localhost/testing.php

Configure MySQL crayon
cat /etc/hosts | grep localhost
cat /etc/mysql/my.cnf | grep bind-address

Install phpMyAdmin
sudo apt-get install libapache2-mod-auth-mysql phpmyadmin

Testing phpMyAdmin
http://localhost/phpmyadmin/

Lien symbolique
ln -s /home/francois/www /var/www

Il n'y a pas de commentaire sur cette page. [Afficher commentaires/formulaire]