Home > Networking, Pemprograman, Robotik & Mikrokontroler, Server > Web Service in RaspberryPI

Web Service in RaspberryPI

i have been doing my final project at health informatics engineering ITB,, which related with web services. i used Codeigniter framework as web builder to accompany me accomplish this program. i thought i could change a paradigm that website stored at web service must have be saved in a server or PC. then, i searched whether RaspberryPi could as a web server, and run normally without lack in connection. the answer is “yes” , it could. so i decided to move my final project into PI. here this step :

  1. Connect your RaspberryPI to the network ,i prefer you use a wireless than switch.
    WP_000731this wireless will connect to mobile device or your laptops later. connect this device into ethernet card in PI through UTP Cable.
  2. connect your PI into display adapter (if this is your first action on PI), you can use TV or LCD . if you use TV, connect video adapter port into TV Port. if you use LCD , connect HDMI in PI into HDMI in LCD
  3. WP_000730
  4. Network setting setting your network using DHCP, which acquired from wireless.  open network setting by use nano /etc/network/interfaces
  5. i recommend you use remote connection such as ‘Putty’. download from this URL and install into your laptops (client) as far as you need. both use remote connection and use actually device without remote is good.
  6. suggest that you get IP Address on your PI (my PI address)
  7. install this requirement tools : apache = sudo apt-get install apache2 , PHP = sudo apt-get install php5 , MySQL = sudo apt-get install mysql-server and PHP-MySQl = sudo apt-get install php5-mysql
  8. make web file in /var/www for instance just provide a service
  9. Create your own database :
  • mysql – u root -p
  • in mysql prompt , type : create database your_database_name
  • create a table

I don’t discuss more about database or PHP , moreover you can follow latest post about php or mysql in sidebar.


  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s