hit counter joomla

How to Setup A Raspberry Pi Webserver (LAMP)

A Small Dedicated Server Running At Home

512MB Raspberry Pi Model B Project BoardThe Raspberry Pi is a small SBC (Single Board Computer) perfect for learning programming or using as a small desktop PC. It supports both HDMI and composite video. 
[Type B, 512MB RAM]

$35 BUY NOW!

Raspberry Pi is simply a small computer node that is a touch larger than a box of cigarettes. There are currently two models, Model A with 256MB RAM and Model B with 512MB's. Raspberry Pi is a very versatile little computer that can be used for many different projects including running as a webserver as this post is about. If you want to learn more about the Pi, head over to the official website.

raspberry pi LAMP webserver

I have three Pis, two of which are webservers, and the third is currently a front door security IP camera (For $35, how can you go wrong, right?). The nice thing is that it doesn't cost a lot to run these Pi's full time as they're only powered by microUSB phone chargers with a 1amp output. My Joomla site running of the Raspberry Pi at home is at raspberrypihosting.com

We're using an 8GB MicroSD card (Class 10, 55x write) loaded with Raspberian OS. We are also connected to the home internet via 3 foot Network Cable. Port 80 has been port forwarded in the router from the external IP address to the Raspberry Pi on port 80.

First things first, we enable the root user

sudo passwd root

...and enter a new password for the root user.

Next, we update and upgrade:

apt-get update
apt-get upgrade -y

Next, we install Apache and PHP

apt-get install apache2 php5 libapache2-mod-php5 -y

When that completes, we install MySQL:

apt-get install mysql-server php5-mysql -y

And Setup the Database where "password" is the password you set when MySQL was installing:

mysql -uroot -ppassword

Create the database name where "dbname" is the name of the database:

mysql> create database dbname;

And then it's time to create the webhosting space.

chown -R pi:pi /var/www
chmod -R 0755 /var/www

Now we install an FTP Client, VSFTP:

apt-get install vsftpd -y

After it configures, start it by typing:

service vsftpd start

and restart Apache2:

service apache2 restart

At this time, you'll be able to load Joomla! either via command line or FTP the files up to the server.

  • No comments found

Leave your comments

Post comment as a guest

0 / 2500 Character restriction
Your text should be in between 10-2500 characters
terms and condition.

Around Joomla!

  • New AbandonWare Category

    Displaying items by tag: English Mar 12, 2018 | 21:00 pm

     Abandonware is a term used for a piece of software that is no longer developed or supported by the original author.  In the Joomla-world, abandonware can include third party extensions such as components, modules, plugins, templates and/or libraries. 

  • GDPR Overview: Decrypting the regulation in series

    Displaying items by tag: English Feb 10, 2018 | 16:24 pm

    Over the last decades, the web has become significantly more social and made communication among companies and users much easier. At the same time, terms such as “privacy” were in many cases underestimated because of the abundance of public shared personal data. Users are dynamically contributing to the content production of the web, and they often get involved in a “game” where their personal data becomes the actual product. It is not unusual for a user to misunderstand that his personal data is information that could be publicly shared without any special protection. 

  • The February 2018 Issue

    Displaying items by tag: Feature Stories Feb 10, 2018 | 15:31 pm

    In some countries around the world, February is the month Valentine's Day is celebrated and love is in the air. And this love is represented this month with several great articles from the authors in the Joomla Community.

  • Performing a Basic SEO Audit of Your Website - Part One

    Displaying items by tag: English Feb 10, 2018 | 09:25 am

    Every few months, it's a good practice to perform a search engine optimization (SEO) audit of your website. Even if your traffic and sales are doing well, there may be issues that you can uncover that will lead to more traffic and sales. And, if your website's search engine rankings have changed recently, doing an SEO audit is imperative. In this article, we'll do some searches at Google to begin an SEO audit.

  • A new visual language for Joomla 4

    Displaying items by tag: English Feb 9, 2018 | 22:42 pm

    The Joomla World Conference 2017 in Rome was a great moment to discuss the future of the project, which... surprise… will, for the most part, have a big "Joomla 4" stamp on it. In the context of the conference, I was invited to participate in the Marketing Sprint, kicking it off with a full day of meeting with the leaders and members responsible for the launch of the Joomla 4 marketing campaign. Together we brainstormed and discussed ideas, reviewed predictions and adjusted expectations to better fit realistic goals. 


Posted By:
Joomla User Group Detroit


Donations and Gifts

Donations that go to keeping the Meetup 100% Free are welcome!