Raspberry PI : install PHP, apache and Git

# Install packages
sudo apt-get install apache2 php5  php5-mysql libapache2-mod-php5 mysql-server git-core -y
 
# Setup user for MySQL
mysql -u root -p
CREATE DATABASE db;
USE db;
CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON db.* TO 'user'@'localhost';
FLUSH PRIVILEGES;
quit