User avatar
Lob0426
Posts: 2198
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact: Website

Re: Guide to installing WordPress

Sun Jan 26, 2014 12:56 am

One of the problems I ran into for FTP is that the ownership is "www:data". I had to change this to "pi". Then FTP worked just fine! I used MC (Midnight Commander) with GPM install to fix these issues.
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!

User avatar
Lob0426
Posts: 2198
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact: Website

Re: Guide to installing WordPress

Mon Feb 03, 2014 6:59 am

I just reran Google Page Speed on my site.

I was having issues with the theme I was running and changing the theme was not fixing it. So I did a complete rebuild of the site.

It is now down to 1.7 seconds load time. desktop score is 82 was 71 before. Mobile score is at 69 was 62 before. there are still a few issues that it states needs fixing, but less than what it needed before.

https://developers.google.com/speed/pagespeed/
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!

PorterDon
Posts: 69
Joined: Wed Aug 21, 2013 2:09 pm
Location: Thailand

Re: Guide to installing WordPress

Mon Feb 03, 2014 8:37 am

Hi Rich. Are you running Apache or Lighttpd? I just successfully installed Lighttpd thanks to your error-free tutorial. Thumbs up guy.

User avatar
Lob0426
Posts: 2198
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact: Website

Re: Guide to installing WordPress

Mon Feb 03, 2014 6:44 pm

I am using Apache.

I do have a working build of Lighttpd.
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!

PorterDon
Posts: 69
Joined: Wed Aug 21, 2013 2:09 pm
Location: Thailand

Re: Guide to installing WordPress

Thu Feb 27, 2014 1:57 pm

Hey Richard, I'm back :?. I've been having success with WordPress sites in my, um your, Lighttpd installation and they run like bandits with the right plugins, but I have run into a roadblock I can't google myself past. Are you sitting down? I want my server to have virtual hosting :o. I have several small sites (different domains), none of which gets much traffic [yet?]. I prefer Lighttpd over Nginx because it handles large jpg files much faster, according to test results I've seen so why not do the optimal configuration? Other RasPi server enthusiasts will be interested too. Problem is: I can only find bits and pieces about how to configure Lighttpd for virtual hosting, looks straightforward and simple, but I can't fit them all into the puzzle. You've made your Pi stand on its ear, now let's go all the way. Hello? Are you still there?
Last edited by PorterDon on Fri Feb 28, 2014 2:23 am, edited 2 times in total.

PorterDon
Posts: 69
Joined: Wed Aug 21, 2013 2:09 pm
Location: Thailand

Re: Guide to installing WordPress

Fri Feb 28, 2014 2:13 am

Well, look what I stumbled across Rich:

:arrow: http://www.cyberciti.biz/faq/howto-ligh ... iguration/

and as an added bonus:

:arrow: http://www.scandio.de/2012/11/setting-u ... d-sqlite3/

BUT, the vhost post is almost 7 years old so the chances of it WSOOB (working straight out of the box) are close near zero. Anyway, at worst it provides some clues. Isn't that what most install tutorials for anything substantial on the Pi involve? Near misses? That is except for yours of course! :D

Once I/we get WordPress happily running under virtual hosting and Sqlite3, this project can finally be put to bed. :lol: Well, maybe. We'll see what my next post reveals....

Edit: Hmm, maybe a Varnish front end to really make this thing fly? 8-)

PorterDon
Posts: 69
Joined: Wed Aug 21, 2013 2:09 pm
Location: Thailand

Re: Guide to installing WordPress

Fri Feb 28, 2014 3:15 pm

Well what an ordeal that was! Trying to implement virtual hosting on Lighttpd. Sure enough, the 7 year old "tutorial" was woefully flawed and left me staring at blank white screens when I was lucky, or 403 Forbidden when I was not. So I tried another, then another, getting nowhere except watching my ageing yet quicken. So I googled "Lighttpd virtual host" and read through all of the first dozen sites/articles/whatever. I figured if I read as much as I could, I would eventually understand the concept behind it all so I could try the install myself. To my astonishment, it worked! :o

I quickly am backing up my SD as we speak, then a shower and to bed. It is 10pm here and we're taking to the road for a few days. I'll have internet access but no router access so I'll not be continuing on this til next week. Then I'll be [trying to] install WordPerfect for the sites, always a guaranteed thrill. But for now I am one step ahead.
Last edited by PorterDon on Fri Feb 28, 2014 4:16 pm, edited 1 time in total.

User avatar
Lob0426
Posts: 2198
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact: Website

Re: Guide to installing WordPress

Fri Feb 28, 2014 4:09 pm

Are you going to be installing multiple sites onto one RasPi or onto multiple RasPii?

If all on one then you may see performance problems when multiple sites are accessed simultaneously.
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!

PorterDon
Posts: 69
Joined: Wed Aug 21, 2013 2:09 pm
Location: Thailand

Re: Guide to installing WordPress

Sat Mar 01, 2014 2:10 am

For starters multiple sites on one RasPi. Since these are new small business setups I expect minimal traffic at first with rare simultaneous usage. At some point if the sites get popular I will use multiple RasPii. I assume this can be done on one router by using different port numbers, right?

User avatar
Lob0426
Posts: 2198
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact: Website

Re: Guide to installing WordPress

Sat Mar 01, 2014 3:47 am

Yes different ports or with headers through proxy from what I can find.
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!

PorterDon
Posts: 69
Joined: Wed Aug 21, 2013 2:09 pm
Location: Thailand

Re: Guide to installing WordPress

Mon Mar 03, 2014 4:26 am

"Headers through proxy" :?: :shock: Jeez, I have a lot to learn.... :oops:

User avatar
Lob0426
Posts: 2198
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact: Website

Re: Guide to installing WordPress

Mon Mar 03, 2014 5:01 am

me too! LOL
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!

PorterDon
Posts: 69
Joined: Wed Aug 21, 2013 2:09 pm
Location: Thailand

Re: Guide to installing WordPress

Mon Mar 03, 2014 10:43 am

Well Richard, we have more to learn than perhaps you and I realized. I am out of town and unable to work more on my Lighttpd project so to kill time I did some general googling :geek:. What a mistake (?) that was! Ever heard of G-Wan? Raise your hand if you are interested in working with me to evaluate it :roll:. It is freeware, but closed source, not open. Should I care? Uh, no. G-Wan sounds too good to be true, look at these performance stats! :o http://gwan.ch/

Oh, forgot to mention. I've already downloaded the 32 bit Debian file..... 8-)

R1nzler
Posts: 33
Joined: Thu Mar 20, 2014 6:30 pm

Re: Guide to installing WordPress

Fri Mar 21, 2014 11:35 pm

Nice thread, wish i would have found this before just getting everything installed by trial or error myself.

Currently i am running Monkey on my site with wordpress http://www.linux.cx

I also have a working nginx and lighttpd setup.

PorterDon
Posts: 69
Joined: Wed Aug 21, 2013 2:09 pm
Location: Thailand

Re: Guide to installing WordPress

Sat Mar 22, 2014 2:19 am

Hey R1, I was going to try Monkey too but hesitated because it didn't appear to be actively supported or well documented. I may yet try it. I have some time to burn at present. So tell me/us about Monkey - like it?

(Nice site, enjoyed the biking vids)

R1nzler
Posts: 33
Joined: Thu Mar 20, 2014 6:30 pm

Re: Guide to installing WordPress

Sat Mar 22, 2014 2:24 am

It was pretty easy to setup. The documentation is lacking tho. But luckily i was able to get all the answers i need in the monkey irc channel.

The main thing that was throwing me off is that in all the config files u have to indent everything exactly 4 spaces or else the server would throw errors at you. I think its a python thing.

Other than that it seems to be running very smooth.

User avatar
Lob0426
Posts: 2198
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact: Website

Re: Guide to installing WordPress

Sat Mar 22, 2014 3:21 am

It looks like it is much lighter than Apache or the others. I am getting decent performance with Apache so far!
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!

R1nzler
Posts: 33
Joined: Thu Mar 20, 2014 6:30 pm

Re: Guide to installing WordPress

Mon Mar 24, 2014 12:51 am

I just switched back to Nginx because i could not get W3 Total cache, or any cach plug ins working with Monkey. I couldnt not find any documentation on how to setup rewrites with it.

But with Nginx and page caching my page is flyin!

I also got the page caching working on lighttpd, and it felt just as fast. But according to http://developers.google.com/speed/pagespeed/insights/

Nginx w/ caching: 76
Lighttpd w/ caching: 72
Monkey: 56

User avatar
Lob0426
Posts: 2198
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact: Website

Re: Guide to installing WordPress

Mon Mar 24, 2014 4:30 am

I am getting the following at pagespeed.
68 for mobile
80 for desktop

With Apache

It says there are other optimizations that could be done. Every time I have tried to go further I kill my sight one way or another.

Of course I have been working it over, for over a year! I am using WP fast cache instead.

Are you using PHP-APC?

I also added fail2ban in there also. Not for performance.
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!

R1nzler
Posts: 33
Joined: Thu Mar 20, 2014 6:30 pm

Re: Guide to installing WordPress

Mon Mar 24, 2014 5:42 am

Yep, running APC.

Right now im trying to get nginx 1.4.7 installed, blew away my server my times today trying to get it to work. Luckily i have a perfect image i made before i started heheh. Just wanna see if the new version is any quicker..

Currently the highest version we can get is 1.2~, so im trying to compile 1.4.7 from source.

R1nzler
Posts: 33
Joined: Thu Mar 20, 2014 6:30 pm

Re: Guide to installing WordPress

Mon Mar 24, 2014 3:11 pm

So i got nginx 1.4.7 install, same scores on page speed. But this time around i enabled gzip compression

Nginix w/o gzip
Mobile: 62
Desktop: 76

Nginix w/ gzip
Mobile: 73
Desktop: 89

Wow....

User avatar
Lob0426
Posts: 2198
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact: Website

Re: Guide to installing WordPress

Mon Mar 24, 2014 6:18 pm

I am going to have to look into using the deflate functions (gzip). It relly helped your scores!
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!

R1nzler
Posts: 33
Joined: Thu Mar 20, 2014 6:30 pm

Re: Guide to installing WordPress

Mon Mar 24, 2014 11:53 pm

Yea gzip seemed to help quite a bit. Did a for more tweaks in my configs. Now im rocking 79/92.

User avatar
Lob0426
Posts: 2198
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact: Website

Re: Guide to installing WordPress

Tue Mar 25, 2014 9:59 pm

I had some compression working already. I have now fully enabled compression and only gained 1 point.

I was getting the following at pagespeed.
68 for mobile
80 for desktop

now
68 for mobile
81 for desktop
I also successfully minified my css while I was at it. No real gains

Part of my problem is my upload speed on ADSL. It is only about 100k up when working at its best. Also my Web Server RasPi loses stability with settings over 900MHz. That would help the server response time somewhat.

The user experience for a RasPi web site is more than adequate for the average personal site. If I really wanted to push my site, and still have the low wattage, I could switch over to my Panda Board ES. It was very fast running my web site with no tweaking at all. Of course it cost a whole lot more!

A server version of the RasPi, with a more advanced ARM core and little or no GPU, would be a real improvement for web site use. But the foundation really to use a more general purpose device to carry out its goals. Maybe one of these upstarts will fill the need for a server version here in the future!
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!

R1nzler
Posts: 33
Joined: Thu Mar 20, 2014 6:30 pm

Re: Guide to installing WordPress

Wed Mar 26, 2014 4:15 am

Yea its prolly that upload thats kill u, but thats still damn impressive for 100k,

Im at 800mhz right now, my dsl has 4mb up or so.

Return to “Networking and servers”