Leon Anavi
IT Tips && Tricks

Administration

Created: 14.10.2013 23:53 Last Modified: 30.03.2015 02:37 Views: 7479
Keywords: Apache, apt-get, install, MySQL, PHP, php5, phpMyAdmin, rasbian, raspberry, raspberry pi, raspberry pi 2, rpi, serversudo, web

PHP & MySQL Web Server powered by Raspberry Pi or Raspberry Pi 2

Installation Guide

The following tutorial describes how to install Apache2, MySQL, PHP5, PEAR and phpMyAdmin on Raspberry Pi Model B with Raspbian.

Update the information about available packages

sudo apt-get update

Install Apache

sudo apt-get install apache2

Install MySQL

sudo apt-get install mysql-server

Install PHP5 & PEAR

sudo apt-get install php5 php-pear php5-mysql
sudo service apache2 restart

Install phpMyAdmin

sudo apt-get install phpmyadmin

Adjust Apache Configuration

Open file /etc/apache2/apache2.conf with your favorite text editor and add the following line:
Include /etc/phpmyadmin/apache.conf
After that restart the server:
sudo service apache2 restart


  Home | About | Contact | Disclaimer | Sitemap 2009-2016 Leon Anavi. All rights reserved.