This Instructable will walk you through the process of

1. Adding Raspbain to the Raspberry PI 2

2. Installing the LAMP server

3. Installing the email server

4. downloading and setup of the login/password process

5. setting up the MySQL database

Step 1: Install Raspbian on the Raspberry PI 2

This tutorial will be using a Debian version of Linux. Raspbian is the operation system used on the Raspberry PI 2. Either Install Raspbian from the start or NOOBS and then choose Raspbian in the installation process. These links will provide instructions on how to install Raspbian or NOOBS.





Step 2: Installing a LAMP Server

1. First update your system

sudo apt-get update
sudo apt-get upgrade

2. To install Apache from the Terminal type these commands:

sudo apt-get update
sudo apt-get install apache2

3. To install MySQL from the Terminal type these commands:

sudo apt-get install mysql-server

sudo apt-get install php5-mysql

4. To install PHP from the Terminal type these commands:

sudo apt-get install php5

5. Restart server

sudo /etc/init.d/apache2 restart

6. Check to make sure the web server is up type in a web browser:


You should see the image attached to this step on your browser!!!!!

Step 3: Installing a Mail Server

1. first update system

sudo apt-get update
sudo apt-get upgrade

2, install sendmail

sudo apt-get install sendmail

3. Configure

sudo sendmailconfig

4. use a text editor to open /ect/hosts

sudo nano /etc/hosts or sudo vim /etc/hosts

and add the following line to the top of the file and save localhost localhost.localdomain your_domain_name_here.com

comment out any duplicate lines

5. Restart apache

sudo service apache2 restart or sudo /etc/init.d/apache2 restart

Step 4: Adding the Login/password to Web Server

1. Download open source code from link


2. move everything that is in source folder to /var/www/html

enter cd /var/www/html/ in the terminal

then sudo mkdir include scripts style

then cd until you are in the simfatic-RegistrationForm-dc288ct directory

then use the move as root all folders and files in source to /var/www/html/

placing the files in include ,scripts and style in to the same folders that we just made in /var/www/html/

Follow the Read me to make sure the setup of the login/password process is complete.

Step 5: MySQL Set Up for Login/password

You will need to set up MySQL

from the command line in the terminal mysql -u root -p

follow promps and make sure to setup root password

once in the database use create database NameofDatabase

Use this Information when updating the membersite_config.php in the include folder at /var/www/html/

<p>For those on a raspberry with little memory to spare:</p><p>create a file in /etc/mysql/conf.d named local.cnf</p><p>in the file type lines:</p><p>[mysqld]<br>innodb_buffer_pool_size = 8M</p><p>Only then start installing MYSQL. Otherwise it will install with 128M default, didn't work for me.</p>
<p>Thanks for sharing!</p>

About This Instructable



More by jpeyron:Mpemba Effect Setting up an active DNS to point to a Raspberry Pi 2 with a web server on it LAMP/EMAIL Server with login/password on a Raspberry PI 2 
Add instructable to: