User avatar
KissMyAsthma13
Posts: 32
Joined: Tue Sep 01, 2015 8:44 am

Questions about Raspberry Pi 2 Model B

Tue Sep 01, 2015 9:21 am

Hello

So I have to make a simple web page host on a raspberry Pi and I need a database with it ( MySql ).
I plan to use this guide: http://www.makeuseof.com/tag/host-website-raspberry-pi/ [ Not a click bait ]

I had plans to simply buy a Raspberry Pi 2 Model B and power it by using Sony charger
5v output and 850mA
- for storage I'll just use some SD card

Now my question is will this work and other question can't I just use older model ( since they seem cheaper and maybe I can even get a second hand one - kinda running on really low budget. )


Any suggestions are welcome.
I have tried "browse" function on this forum and even was searching for some guide but just got even more confused.

Have a nice day :)

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Questions about Raspberry Pi 2 Model B

Tue Sep 01, 2015 10:05 am

KissMyAsthma13 wrote:So I have to make a simple web page host on a raspberry Pi and I need a database with it ( MySql ).
can't I just use older model
any model, any server
need:
+ RPI1B .. RPI2B
+ ethernet cable to router
+ powersupply ( best 5V 2A )
+ 8GB SD

but i want ask about the combination SD Card and SQL
my point is, if you want install SQL and use a CMS ( content management system ) for the website
see also https://www.raspberrypi.org/learning/we ... wordpress/

you must know that there is a constant writing/logging to SD card ( IP#... ) by SQL to a database file
what not can be shifted to RAM / tempfs. ( that would not happen with just a static HTML site )
And there is a higher risk about wearing out the SD card if your page gets many hits, then better use a ext USB HD.
But i read also that this problem can be neglected with newer SD cards?

User avatar
KissMyAsthma13
Posts: 32
Joined: Tue Sep 01, 2015 8:44 am

Re: Questions about Raspberry Pi 2 Model B

Tue Sep 01, 2015 10:24 am

KLL wrote:
KissMyAsthma13 wrote:So I have to make a simple web page host on a raspberry Pi and I need a database with it ( MySql ).
can't I just use older model
any model, any server
need:
+ RPI1B .. RPI2B
+ ethernet cable to router
+ powersupply ( best 5V 2A )
+ 8GB SD

but i want ask about the combination SD Card and SQL
my point is, if you want install SQL and use a CMS ( content management system ) for the website
see also https://www.raspberrypi.org/learning/we ... wordpress/

you must know that there is a constant writing/logging to SD card ( IP#... ) by SQL to a database file
what not can be shifted to RAM / tempfs. ( that would not happen with just a static HTML site )
And there is a higher risk about wearing out the SD card if your page gets many hits, then better use a ext USB HD.
But i read also that this problem can be neglected with newer SD cards?
Thank You for this amazing reply

This guide is perfect !
I thought about connecting some external HDD via USB instead SD
But only one accessing this web page will be me since it's a project for university I have to do and it won't get many hits.

But yes again might connect a HDD via USB simply due to already having one at home.

Again thank you for this informative reply

Return to “Beginners”