Web Lamp Server

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
martigs
Posts: 11
Joined: Wed Mar 07, 2018 9:26 am

Web Lamp Server

Post by martigs »

Good I have a rasbperry pi b the 256mb ram and with the green server lamp that is very slow to serve pages with mysql.

Now I have to provar a raspberry pi b + of 512mb ram to see if there are improvements with the same service.

The service is to have my personal blog and little else, that is something stable.

In case of having to change the plate because the ones I have are somewhat obsolete, which I am advised, I have seen the orange pi that are very well priced but I do not see that they are directly compatible with dietpi, which is the system I want to use for the various options and configurations that are available.

What advice do you give me?
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Web Lamp Server

Post by johnvick »

Odroid XU4 and C2 are good reliable devices with full DietPi support - they are more than adequate for your blog server.

John
martigs
Posts: 11
Joined: Wed Mar 07, 2018 9:26 am

Re: Web Lamp Server

Post by martigs »

Thank you very much for answering, now I have ripped a copy of the memory of the raspbery pi B to the raspberry pi B + to test the performance, if I see that it is not the right choice to change the plate.

Dietpi has recognized me the rasbperry B + without problems and is running the system and the programs installed, is it necessary to format the system or so I will have the same performance?
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Web Lamp Server

Post by johnvick »

So you are using the SD card from the B in the B+? If it's working you don't need to reformat the card and start again.

John
martigs
Posts: 11
Joined: Wed Mar 07, 2018 9:26 am

Re: Web Lamp Server

Post by martigs »

Yes, that's it, I'm using it and it seems to recognize it without problems, if so, and I can avoid reinstalling much better since now I have it configured as I wanted.

It shows a bit the improvement but still lacks a little power, on the theme of the odroid I like the idea but it is quite price, I think I should opt for something more economical if I see that my idea works more or less, would decant by the rpi2 or rpi3 that already have a CPU more powerful than the b +.
User avatar
MichaIng
Site Admin
Posts: 2293
Joined: Sat Nov 18, 2017 6:21 pm

Re: Web Lamp Server

Post by MichaIng »

The Odroids will definitely do a well job, but they are as you stated a higher price class. Depending on the visitor numbers you assume for your blog, a current RPi will do as well. I successfully run Nextcloud + video chat with full caching here on RPi2 (1 GB RAM). The RAM is usually ~25% in active use, but indeed it is also just for private home use with not regular "external" users.
RPi3 (35$ + shipping + AC) is CPU/GPU wise way faster again, sadly not more RAM, so should be sufficient for the beginning.

So yeah, it really depends on how much parallel visitors you expect for your blog and if you might want to add other server tasks at a later time, things like video streaming and stuff of course have totally different requirements.
AdvancedFollower
Posts: 20
Joined: Wed Dec 20, 2017 6:42 pm

Re: Web Lamp Server

Post by AdvancedFollower »

I run my blog (Wordpress) on my Pi 3 and it works great. I get Grade A (92) on the Pingdom speed test. CPU Usage is typically a few percent most of the time, RAM usage 150 - 200 MB, and that includes a few other services on the same device (OpenVPN, dnsmasq). Of course those would be higher with more visitors or a more complex page (or e.g. transferring a lot of data over the VPN server), but I think the little Pi 3 can handle any personal blog unless you get tons of visitors.

Doing this sped up the loading and reduced the load on the server:
https://varvy.com/pagespeed/leverage-br ... ching.html
martigs
Posts: 11
Joined: Wed Mar 07, 2018 9:26 am

Re: Web Lamp Server

Post by martigs »

This was my idea to put an rpi3 or an orange pi that also paint well and are economical.

The theme that dietpi is compatible with Orange pi? Or does not have any compatible version?
bronco
Posts: 11
Joined: Sun Mar 11, 2018 9:33 am

Re: Web Lamp Server

Post by bronco »

martigs wrote:I have a rasbperry pi b the 256mb ram and with the green server lamp that is very slow to serve pages with mysql.
Have you ever looked into what's bottlenecking your server? Maybe it's mainly storage and insufficient RAM and not CPU horsepower?

All that's needed is a quick check:

Code: Select all

apt-get install sysstat
iostat
vmstat -w
At least the vmstat output would be great since this provides a quick overview about typical bottlenecks (the last colums being the most interesting ones)
martigs
Posts: 11
Joined: Wed Mar 07, 2018 9:26 am

Re: Web Lamp Server

Post by martigs »

I imagine that the bottleneck is the ram since 256mb is very little for a mini server. If I run a basic html page has no problems, the problem is when I run my wordpress blog that when running the mysql (mariadb) the server slows down a lot.

The issue is that if I change to a higher raspy not only increases the ram but the cpu in the most current plates.
Post Reply