Second site is up

It has no content yet.

I’ve found a band I’d like to audition to drum for, on joinmyband.com and so I’m putting together my second WordPress site (taken down now – Sep’18) for a couple of drumming videos. I’ve rearranged my drum kit to make it easier to capture on camera, recorded me playing my electronic kit and then it all went piriform.

First of all, my electronic kit can record performances, but doesn’t store more than five at a time and doesn’t store them after powering off. And it powers off if it has no input for 30 minutes. I didn’t know this. So I lost my audio recordings that I was going to dub over the video recordings before posting online.

And Windows 10 isn’t detecting line-in, so when I do make a recording, I’ll be doing it in Linux! Or fixing the Windows problem, because…

At least installing a second WordPress site on a subdomain was a breeze. There is apparently a way to run multiple WordPress sites per installation of WordPress but this method has restrictions, I believe.  I have it configured so it’s an independent WordPress install, on its own subdomain, on the same server, and as such, takes up an extra 24MB of my server HD space.

Meh.

Minimal geeking

Just updated NextCloud 12.0.1

Fiddly, but that was because I followed one site’s recommendation of making nextcloud user root and group www-data when the rest of the recommendations I’ve read say u and g should be www-data

So, there you go.

Review – bluetooth keyboard

Jelly Comb (a.k.a. Joy Comb) tri-fold bluetooth keyboardI’ve been looking for a portable, occasional use keyboard to work with my fiancé’s Nexus 10 tablet. This dinky little thing fits the bill perfectly and with the touchpad mouse, is quite an unusual but effective addition to android. In terminal it produces all desired special characters such as # ~ \ | / `¬¦ which can be difficult as these essential geek keys are often missed, or fiddly to produce on a keyboard that (unlike this one) is missing the nuances and subtleties of the British lay-out.

 

It is of solid build, and I find the keys to be unusual but pleasant to use, even if I have to change my tempo and technique, which I think I have to do for all keyboards I use regularly. At the moment, I’m not pressing or I’m double-pressing keys occasionally while typing.

This guy has written a good review.

The manufacturer’s product page is here with links to international Amazon stores.

Buy it on Amazon UK for whatever they feel like charging today. Seriously, it says on Amazon, price £39.99, sale price £19.99 and three days ago, I got it for £17.99, so what gives?*

It doesn’t bother me that it is flexible and without a locking-open mechanism because it can’t flop open any more than 180 degrees – I can rest the middle of the keyboard against my lap and type no problem (not quickly, but not uncomfortably either).

It isn’t quite awesome for two reasons, in my opinion. It isn’t clear if it connects to more than one device, and after getting it on the tablet, it wouldn’t connect to a Microsoft PC. Other reason is you can’t disable the touchpad. But other than that, I really like it!

See ya!

* Six days later, it had gone up another quid.

Compound Fiasco

Eeh, I made a mess of my server yesterday.

There was something still not quite right about how it was or wasn’t forwarding from digitaltinker.co.uk to https://digitaltinker.co.uk or something of that kidney. I decided that it was to be my geek project for the Saturday.

So I played around with my settings, and started to paint myself in to a corner.

I tried uninstalling my SSL from my websites, but something I couldn’t find somewhere was still redirecting my www to a disabled https even though my other subdomains were without SSL.  Thinking back, it might have been phpmyadmin, though I think I removed that too. So I started to peel away more layers, unfortunately with the accuracy of a chainsaw serial killer trying delicate brain surgery. By trying to remove the settings set by letsencrypt, I removed the keys for all SSL connections, including Remote Terminal SSH. When I tried opening a second terminal and got a message about no keys, I realised that as soon as I closed my current terminal, I could kiss my server goodbye forever.

Oh f…………

I had no recent back up of my WordPress site. I searched my browser’s cache and saved a copy of my ‘blog to desktop. And I logged in to Amazon to delete my server’s main HD and launch another base installation of Ubuntu and rebuilt my system.

This time, I’ve done it right! (I think).

All my WordPress pages redirect correctly; where https and www was absent, they’re added automatically.

I’ve made a change to phpmyadmin by moving it to its own subdomain so it doesn’t cohabit www with WordPress. Also, all passwords are upgraded to 16 character randomly generated.

Phpmyadmin turned out to be a pain though, because after installation it said some of its code was no longer supported and tumpty tumpty doodah, hang on, I’ll find the proper message…

Deprecation Notice in ./../php/php-gettext/streams.php#48  
Methods with the same name as their class will not be constructors in a future version of PHP; StringReader has a deprecated constructor

Backtrace  
./../php/php-gettext/gettext.inc#41: require()  
./libraries/select_lang.lib.php#477: require_once(./../php/php-gettext/gettext.inc)  
./libraries/common.inc.php#569: require(./libraries/select_lang.lib.php)  
./index.php#12: require_once(./libraries/common.inc.php)

And many others messages, all Deprecation Notices in ./../php/php-gettext/streams.php so it turns out that the Ubuntu maintained copy of phpmyadmin was a bit obsolete, so the Ubuntu volunteers had their own repository on launchpad that I had to add.

They recommended also updating to a more up-to-date version of php with another launchpad repository.  And that was when I found php 7.1 was available.  Jees, Linux is hard work!!  I recognise the importance of having back-ups of my working system so I am taking snapshots of sda1 when I make big changes, I don’t care if it costs me an extra 27p on Amazon or whatever.  Php 7.1 didn’t affect WordPress but borked NextCloud (maybe I should have put it in maintenance mode before upgrading php to 7.1*) so my snapshot saved my NextCloud install.

This has been the geekiest weekend in a while, and mostly recovering from the clusterf compound fiasco that was yesterday.  Phew.

*Update – did php7.1 again, this time with sudo -u www-data php /var/www/nextcloud/occ  maintenance:mode –on and NextCloud, in fact, everything survived the php upgrade 😄.  Then Ubuntu recommended removing php7.0 but NextCloud isn’t installed from apt repositories, so apt didn’t know NextCloud was dependent on php7.0 so when 7.0 was removed, NextCloud broke, and when 7.0 was reinstalled, it all came back!

Custom php settings per subdomain, ‘n’ sh*t.

So, I was trying earlier to tweak my php.ini so that it acted in one way for my NextCloud, and another for WordPress, and I cracked it with a bit of web-searching.

Php.ini has one active version, and any suggestion otherwise that I’ve read online turns out to be old advice.  To apply a blend of php setting across a single server instance, hosting more than one php service requires the setting to be ON in php.ini and OFF where required in the site’s conf file, at least in my case.

NextCloud recommends opcache.enabled=1 in php.ini (which is by default disabled by being commented out) and then there’s a few more lines of opcache settings all to enable sites to preload into RAM.  Since I have just a gig of RAM, I decided I wanted to keep WordPress from doing so too.  This was achieved by adding php_flag opcache.enable Off to the conf file in /etc/apache2/sites-available QED.

But after all that, I decided to leave that opcache feature on in WordPress and NextCloud.  My top looks like this while editing on WordPress so I don’t think I need to change

KiB Mem : 1014656 total, 140700 free, 256428 used, 617528 buff/cache
KiB Swap: 2096124 total, 2003040 free, 93084 used. 514024 avail Mem

Change of topic!  I went to a WordPress user group yesterday, which was interesting – everybody there has lots more experience of building with WordPress than me but other than that, I think the general IT skills varied hugely.  It has opened my eyes to what WordPress can do and what I can do with it.  The organiser was very clued up, he presented everything well, my mind barely wandered once during the whole two hours.  They got use of a room in a local college and was free of charge.  Can’t go wrong!

He asked me how I came to know about the group.  I said I installed WordPress and it was in the News section of the dashboard 🙄

D’you like topics?  Here’s a third!

What has a hazelnut in every bite? Squirrel shit

I got my bill from Amazon for the first months usage.  It was probably atypical for what I’ll use going forward, since I’ve done two wipe-and-reloads of my server.  As I think I mentioned before, the tiny cost of 4p for briefly storing a snapshot of my server was dwarfed by the whopping £1.03 charge for downloading my NextCloud data , at 9p per GB after the first 5GB.  Including VAT.

My next project is investigating tighter security and other plugins on WP.  Configuring it as an email server is another day yet.