This is the second article in a series in which I want to introduce some LowCost computer solutions for our computer infrastructure.

In the first article I showed how to create the basis for future solutions that we can implement.

In this second article, and based on that basis, we will implement a Web server, popularly known as LAMP (Linux, Apache, Mysql and PHP).


  • [amazon_textlink asin=’B01CD5VC92′ text=’Raspberry PI’ template=’ProductLink’ store=’rbsy-21′ marketplace=’ES’ link_id=’b76b00bd-4cf9-11e7-a7a0-8d89875cf9a0′] (I use a raspberry PI B, so it serves almost any model)
  • [amazon_textlink asin=’B0143RTB1E’ text=’Tarjeta SD’ template=’ProductLink’ store=’rbsy-21′ marketplace=’ES’ link_id=’d8ae2b97-4cf9-11e7-b3c1-2310c390f692′] (with base system)
  • [amazon_textlink asin=’B01DP8O5A4′ text=’Adaptador de corriente’ template=’ProductLink’ store=’rbsy-21′ marketplace=’ES’ link_id=’fb7cd7ae-4cf9-11e7-a2ee-1f1836e34e19′] (serves almost any micro-USB mobile charger)
  • [amazon_textlink asin=’B01L8FXNF4′ text=’Caja Raspberry’ template=’ProductLink’ store=’rbsy-21′ marketplace=’ES’ link_id=’08fe7c19-4cfa-11e7-93d4-a756e619b4c8′] (optional but highly recommended)
  • [amazon_textlink asin=’B00N2VILDM’ text=’Cable de red’ template=’ProductLink’ store=’rbsy-21′ marketplace=’ES’ link_id=’12b81c21-4cfa-11e7-980f-15d00e88e029′] (You can use a, you[amazon_textlink asin=’B012CTHSVK’ text=’adaptador Wi-Fi’ template=’ProductLink’ store=’rbsy-21′ marketplace=’ES’ link_id=’280042bb-4cfa-11e7-b28e-436370288e80′] will see in another article)

Update system

Before doing anything new, an important step is to update the raspberry system to make sure it is with the newer stable version and avoid possible problems.

The steps to update are very simple.

We connect the raspberry and run first

$ sudo apt-get update

Then we run

$ sudo apt-get upgrade

With this we have updated the system and we can move to do the installation of the Web server.

Install Apache

To install the Apache Web server, simply run the following command.

$ sudo apt-get install apache2

When you have finished the installation we can verify that Apache is already running with the command

$ Service Apache2 Status

We can also check that there is a default Web page on the path:/var/www/html/index.html

In addition, if we put the IP address of the raspberry, we can access by the Web browser to the page by default.

With all this we could say that we already have the operating Web server, but we still need to install some more components to add more features and be able to host more complex web sites.

Install PHP

To be able to have more complex web pages, dynamic, or to be able to host Web sites like WordPress, Drupal, Joomla,… we need, among other things, to install PHP

To install PHP we will execute the following.

$ sudo apt-get install php5 libapache2-mod-php5

After installing PHP, we can create a page called "info. PHP", for example.

$ sudo nano/var/www/html/info.php

With the following content:

With this, if we access with the browser to http://direccionraspberry/info.php will show us a page with information about PHP installed.

Install MySQL

In order to have complex web sites we also need a database server.

In this case we will install MySQL.

To install the necessary components, we will execute the following.

$ sudo apt-get install mysql-server MySQL-client php5-MySQL

In this way we install the MySQL server, the MySQL client and PHP components for MySQL integration.

During the installation process we will ask for the password for the MySQL Admin user

Install Extras

As an extra part, and to make it easier to administer the MySQL server, we will install PHPMyAdmin, which is a Web administrator for MySQL.

To perform the installation we will execute the following:

$ sudo apt-get install phpMyAdmin

During the installation, we select "Apache2" as a Web server.

To finish the installation, ask to install the administrative DB

We tell him yes.

Then you ask for the MySQL Administrator password to install the DB.

And also asks us to set a password for PHPMyAdmin. We can use the same as for MySQL.

and password Confirmation

When it ends we can enter http://direccionraspberry/phpmyadmin

Now we can manage our MySQL database server from the Web interface.


After all this process we have installed the Web server, PHP, MySQL database server and MySQL Web administration.

We can now use the Raspberry PI to host Web applications such as SugarCRM, Feng Office,… or more complex or interesting websites, like WordPress, Drupal, Joombal, Prestashop,…

Important: You have to be clear that performance is not going to be the same as if it were installed on a server or hosted on a hosting service, but to host sites that do not require much performance, testing, developing websites and/or Web applications, It can be perfectly useful and very low cost.

I hope you find it useful.

LowCost 2 Solutions – WEB Server

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.