RPi A Simple Wheezy LAMP install
Image Wheezy sort raspi-config
login:pi password:raspberry #unless you have changed it sudo su apt-get update apt-get install apache2 apt-get install php5 apt-get install mysql-client mysql-server apt-get install postfix apt-get install tomcat6 apt-get install vsftpd cd /var/www pico index.html do a bit of editing to personalise the file [Ctrl][x] [y] [Enter]
figure out the IP of theRPi assigned by DHCP put that IP address into your browser LAMP achieved
Ok there's a load of editing to get the FTP working (but it does) and there's the stuff to get postfix sorted but it fit's on a 2g SD card and I don't think you will get a lot of web space stick it on a 4g give yourself some room.
In addition i've got fixed IP sorted so I can port forward with confidence and there should be room to get a No-ip patch running but thats borderline on space.
Nearly forgot Win32DiskImage read to create a new image file so you don't need to do it all again.
Here is an explination for our Noob readers.
I hope you know that this is about preparing your SD card for the comming events 2g will do 4g better
sort raspi-config This is primarily about making all of the SD card available (resizing thing)there's a wiki page of its own on this step.
login:pi password:raspberry #unless you have changed it Yes if you changed the password when you were in raspi-config you will need tto use that new password
Make yourself root the super user for the duration of this session.
Get the updates for the install program some of the later installs won't happen if you do not do this.
apt-get install apache2
Install the web host software Apache current version is 2
apt-get install php5
Install a version of PHP current version is 5
apt-get install mysql-client mysql-server
Install the MySQL stuff
At this point you have a LAMP install LinuxApacheMySQLPHP but to be fair you need some other stuff to help
apt-get install postfix
This is the mail server stuff
apt-get install tomcat6
This is server side Java
apt-get install vsftpd
This is a FTP Host
Change Directory to /var/www note the slash direction and the leading slash and the space after cd
Start the text editor pico (Alternatives vi and nano my personal pref is nano but instructions follow for pico)
do a bit of editing to personalise the file index.html in the www dirctory is the automatically added test page for Apache2 if you type some new stuff in here when you do hit the page from a browser you will know you have the right page and it's worked because you will see the text you added.
Command to exit pico
execute command as Picard would say "Make it so"
What to do next
Now you need to figure out the IP of the RPi assigned by DHCP if you have a HDMI or Composite monitor it's on one of the last lines as you boot if you have come to this page because you completed the blind login you will know the IP it's the address you typed ito Putty.
Type that IP address into your browser (It must be one on a computer attached digitaly or physically to the same router as your RaspberryPi this is intranet not internet that slight change in spelling iplies you are inside the router barrier.
Ok there's a load of editing to get the FTP working (but it does I got it working with FileZilla) and there's the stuff to get postfix sorted but it fit's on a 2g SD card and I don't think you will get a lot of web space stick it on a 4g give yourself some room.
In addition I have got fixed IP sorted so I can port forward with confidence and there should be room to get a No-ip patch running but thats borderline on space.
My No-IP runs on my big (Lauughs 80g) Ubuntu server.
Port forwarding is something very Router/Hub specific but if you do manage it then your LAMP will shine on the Internet
It is unlikely to be bright at this time but shine it will.
Nearly forgot shut down take out your SD card and use Win32DiskImage read to create a new image file REMEMBER GIVE IT A NEW NAME so you don't need to do it all again