DaLightz
See ya'll in the afterlife.
- May 19, 2012
- 1,136
- 262
Raspberry Pi is a 35$ credit card sized "computer". It uses an SD card as it's primary storage, and boots off of Linux distro's.
Asuming you already have the RPi setup, I'm skipping the general setup bit.
I am going to teach you how to make your Raspberry Pi into a fully functioning web server! This server is know as a LAMP server.
Linux
Apache
MySQL
PHP
Let's start. first you'll want to open up your LXTerminal as shown below.
Then type this into your console: This will update your download respitories.
Code:
sudo apt-get update
Once that is updated, you can now start installing Apache. Do so by entering this into your console:
Code:
sudo apt-get install apache2
Now you can install MySQL. Do so by entering this into your console:
Code:
sudo apt-get install mysql-server
Finally, you can install PHP(5) and Perl. Do so by entering this into your console:
Code:
sudo apt-get install php5
Code:
sudo apt-get install php5-mysql
Installation complete! You've transformed your Pi into a hosting machine!
Notable commands that could come in handy:
Code:
start Apache:
/etc/init.d/apache2 start
stop Apache:
/etc/init.d/apache2 stop
restart Apache:
/etc/init.d/apache2 restart