rpi_a_simple_wheezy_lamp_install
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| rpi_a_simple_wheezy_lamp_install [2018/12/06 21:05] – created 91.177.234.129 | rpi_a_simple_wheezy_lamp_install [2019/01/30 11:32] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== RPi_A_Simple_Wheezy_LAMP_install ====== | ||
| - | |||
| borrowed from [[http:// | borrowed from [[http:// | ||
| - | ======Preamble====== | + | ===== Preamble ===== |
| - | **Over on the forum there' | + | **Over on the forum there' |
| - | | + | |
| LAMP is an acronym that stands for **L**inux**A**pache**M**ySQL**P**HP these are the components required to run a Dynamic HTML webpage and these are the first steps to build a LAMP webserver on a RaspberryPi. | LAMP is an acronym that stands for **L**inux**A**pache**M**ySQL**P**HP these are the components required to run a Dynamic HTML webpage and these are the first steps to build a LAMP webserver on a RaspberryPi. | ||
| - | If all you want to run is a basic webpage then the update and apache2 is all you need to install. All the other stuff is extras. If however, at some later date, you want to explore the dynamic stuff you're going to need PHP and, at some point, MySQL. | + | If all you want to run is a basic webpage then the update and apache2 is all you need to install. All the other stuff is extras. If however, at some later date, you want to explore the dynamic stuff you're going to need PHP and, at some point, MySQL. |
| - | If you want to explore the option of having forms on your web pages posting you e-mails of the filled in data you're going to need postfix (and the faf of setting this up). | + | If you want to explore the option of having forms on your web pages posting you e-mails of the filled in data you're going to need postfix (and the faf of setting this up). |
| - | If you want to try incorporating Java (and I have not tried this) you need tomcat. | + | If you want to try incorporating Java (and I have not tried this) you need tomcat. |
| - | If you're interested in trying out an FTP server you're going to need vsftpd or somthing like it. (there' | + | If you're interested in trying out an FTP server you're going to need vsftpd or somthing like it. (there' |
| Please do not be complacent - most of this stuff will need quite a bit of setting up but these installs will put the software in place and the default setting files ready to edit. | Please do not be complacent - most of this stuff will need quite a bit of setting up but these installs will put the software in place and the default setting files ready to edit. | ||
| Line 20: | Line 18: | ||
| There' | There' | ||
| - | ======I would say " | + | ===== I would say " |
| Image Wheezy then run and sort raspi-config as per your prefrences | Image Wheezy then run and sort raspi-config as per your prefrences | ||
| + | < | ||
| | | ||
| | | ||
| Line 35: | Line 35: | ||
| pico index.html | pico index.html | ||
| do a bit of editing to personalise the file | do a bit of editing to personalise the file | ||
| - | | + | |
| [[y]] | [[y]] | ||
| | | ||
| + | </ | ||
| figure out the IP of theRPi assigned by DHCP | figure out the IP of theRPi assigned by DHCP | ||
| Line 43: | Line 44: | ||
| LAMP achieved | LAMP achieved | ||
| - | Ok there' | + | Ok there' |
| 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. | 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. | ||
| Line 49: | Line 50: | ||
| Nearly forgot Win32DiskImage read to create a new image file so you don't need to do it all again. | Nearly forgot Win32DiskImage read to create a new image file so you don't need to do it all again. | ||
| - | ======Here is an explanation for our Noob readers.====== | + | ===== Here is an explanation for our Noob readers. ===== |
| - | Image Wheezy | + | Image Wheezy |
| I hope you know that this is about preparing your SD card for the coming events 2GB will do, 4GB better | I hope you know that this is about preparing your SD card for the coming events 2GB will do, 4GB better | ||
| - | sort raspi-config | + | sort raspi-config |
| - | This is primarily about making all of the SD card available (resizing thing) there' | + | This is primarily about making all of the SD card available (resizing thing) there' |
| login:pi | login:pi | ||
| Line 63: | Line 64: | ||
| Yes if you changed the password when you were in raspi-config you will need to use that new password | Yes if you changed the password when you were in raspi-config you will need to use that new password | ||
| + | < | ||
| sudo su | sudo su | ||
| + | </ | ||
| - | Make yourself root the super user for the duration of this session. | + | 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. | + | Get the updates for the install program some of the later installs won't happen if you do not do this. |
| + | < | ||
| | | ||
| + | </ | ||
| Install the web host software Apache current version is 2 | Install the web host software Apache current version is 2 | ||
| + | < | ||
| | | ||
| + | </ | ||
| - | Install a version of PHP current version is 5 | + | Install a version of PHP current version is 5 |
| + | < | ||
| | | ||
| + | </ | ||
| - | Install the MySQL stuff | + | Install the MySQL stuff |
| At this point you have a LAMP install **L**inux**A**pache**M**ySQL**P**HP but to be fair you need some other stuff to help | At this point you have a LAMP install **L**inux**A**pache**M**ySQL**P**HP but to be fair you need some other stuff to help | ||
| + | < | ||
| | | ||
| + | </ | ||
| This is server side Java | This is server side Java | ||
| + | < | ||
| | | ||
| + | </ | ||
| This is a FTP Host | This is a FTP Host | ||
| + | < | ||
| cd /var/www | cd /var/www | ||
| + | </ | ||
| Change Directory to /var/www Note the slash direction, the leading slash and the space after cd | Change Directory to /var/www Note the slash direction, the leading slash and the space after cd | ||
| + | < | ||
| pico index.html | pico index.html | ||
| + | </ | ||
| Start the text editor pico (Alternatives vi and nano my personal pref is nano but instructions follow for pico) | 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 directory by default this is the automatically added test page for Apache2. | + | do a bit of editing to personalise the file index.html in the www directory by default this is the automatically added test page for Apache2. |
| - | [[Ctrl]][x] | + | < |
| + | [[Ctrl]][[x]] | ||
| + | </ | ||
| Command to exit pico | Command to exit pico | ||
| + | < | ||
| [[y]] | [[y]] | ||
| + | </ | ||
| confirmation | confirmation | ||
| + | < | ||
| | | ||
| + | </ | ||
| execute command as Picard would say "Make it so" | execute command as Picard would say "Make it so" | ||
| - | ======What to do next====== | + | ===== 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 as it's the address you typed into Putty. | + | |
| - | Type that IP address into your browser. Note, it must be on a computer attached digitally or physically to the same router as your RaspberryPi as this is your intranet, not the internet - that slight change in spelling implies you are inside the router barrier. | + | 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 as it's the address you typed into Putty. |
| + | |||
| + | Type that IP address into your browser. Note, it must be on a computer attached digitally or physically to the same router as your RaspberryPi as this is your intranet, not the internet - that slight change in spelling implies you are inside the router barrier. | ||
| LAMP achieved! | LAMP achieved! | ||
| - | Ok there' | + | Ok there' |
| - | 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. | + | 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 80GB) Ubuntu server. | + | My No-IP runs on my big (Lauughs 80GB) Ubuntu server. |
| - | Port forwarding is something very Router/Hub specific but if you do manage it then your LAMP will shine on the Internet | + | 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. | + | 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 | 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 | ||
| + | |||
rpi_a_simple_wheezy_lamp_install.1544130327.txt.gz · Last modified: 2018/12/06 21:05 by 91.177.234.129
