Thinking to buy a pi 4 and use it as a web server
I want to run
PHP7 and Mysql
simple system for hotel room management that would update both local and online database
any tips or suggestions?
TIA
That solution looks better as it comes from the official website of the raspberry pi.fruitoftheloom wrote: ↑Sat Feb 15, 2020 11:32 amMaybe ?
https://projects.raspberrypi.org/en/pro ... -wordpress
Thank you!fruitoftheloom wrote: ↑Sat Feb 15, 2020 11:32 am
Maybe ?
https://projects.raspberrypi.org/en/pro ... -wordpress
Thank you!markatlnk wrote: ↑Sat Feb 15, 2020 2:57 pmI have been running a web site with email system on a pi for many years. I updated it from a pi2 to a pi4 last year. I have a static IP with 1G up and down. You are welcome to go look at it.
zjunk.net
We use it share our vacation trips in a Wordpress blog, I take a few photos and my wife writes. I turned off the comments.
The email system is more of an issue, when I updated to the pi 4, I made a bunch of changes and broke spam assassin so I do get a bunch of spam. I really need to get back to that one of these days.
I am running a 1T SSD with it and the SD-card only has the boot directory.
It has been 99 days from last reboot which is very common. I do have a fan case on it as it can get a bit toasty. It isn't even on a UPS, our power here has been very reliable. I had an up time of over 500 days at one point.
Mark
I suggest that if you want to run your business on a computer, any kind of computer, you have to be aware that the computer or it's hard drive or SSD or any other component can fail at any time. At which point your business stops.
Well I guess I'll go with sd cards.. I'm will have once a month maintenance and the hoter/resort is not that popular.. so... I think it will not stress out the SD in terms of writing to database.... THANKS!markatlnk wrote: ↑Tue Feb 18, 2020 12:59 amMy server only boots from the SD card, its main / directory is on the SSD. It is the same way I did it on the Pi2. The /boot directory is all that is needed there. There are ways to get it to boot from the SSD, but I never bothered. The SD card isn't written to except for updates, so it shouldn't ever have any issues.
Mark
Thanks man!... Well... All it does is write on database... so SD should be fine for at least a year...Heater wrote: ↑Mon Feb 17, 2020 9:08 pmI suggest that if you want to run your business on a computer, any kind of computer, you have to be aware that the computer or it's hard drive or SSD or any other component can fail at any time. At which point your business stops.
What to do?
Either you have to have someone to call on 24 hours per day, ready for the day things fail.
Or you have to arrange multiple redundant systems.
Perhaps SD cards are less reliable than hard drives or SSD's in this respect. Makes no difference. You have to be ready for failure no matter what.
It's up to you to decide what risks you want to take in running your business.