Originally posted 2017-08-16 22:22:47.
The other evening I was trying to check the time settings on the Hi12 version of this site and lo and behold Webmin was dead. Sure the server was working okay, but Webmin is a super handy tool for tweaking your Linux machine.
So I spent literally hours trying to fix it. I read all the how to info available on the Inter-web and even from other planets! No fix worked and I determined before going to bed that although the server was fine, it was time to re-create the VM, (virtual machine), for this site.
So while at work today, using the Hi12 for its normal chores I went ahead and cleaned off my microSD card and began the build. Now obviously I don’t run the actual server from a microSD card, but better to build it and check it then copy it over.
Step 1: proceed to turnkeylinux.org and grab the latest LAMP stack ISO. Roughly 262mb of download later, we are ready to install!
Step 3: Fire it up after installing all the updates, etc. Okay, belay the excitement, because now all the little stuff needs to be tweaked! The list is not that big, but trying to remember it all, was helped a great deal by searching my own posts on this very server! So below is the list:
- install php5-gd
- install php5-curl
- install php-pear
- install imagemajick
- edit the php.ini file to allow larger uploads and a max of 128MB for php
- edit the Apache web serve ports.conf file, (using Webmin), to Listen on port 8080
- create the Virtual Host in Webmin and copy the directives from the other tablet!
- using Webmin, create the database in MySQL for the server.
- FTP in using the SSH port via the local IP, since this thing ain’t live yet and upload WordPress to the same directory as on the active server.
Okay, that takes care of the little stuff, but now we have to FTP/SSH in, using SSH and upload WordPress and chmod the directories. That is followed by running the WordPress install and pointing it to the database we created earlier. Also time to update any re-direct files you may have, such as the redirect that takes folks from tabletserver.com:8080/ to the actual WordPress site at tabletserver.com/wordpress.
After copying the entire VM to the main drive you do the following. You wait until you are home from work where you can assign a fixed IP in your router to said VM. Then you reboot it about three times to make sure it is getting the same IP.
Now after setting your port forwarding to the correct IP you fire it up, install WordPress and then immediately install Updraft Plus. Then you simply lookup your most recent backup, (which I did remotely on the HiBook from work), and restore from backup!
The end result is this post! The huge bonus is, it freed up roughly 9gb on the Hi12. With the server running I currently have 17GB free space! I have no idea why the previous version was gobbling up the entire 12gb allocated space, since the server is not using anywhere near 25% of its size limit and was set to allocate space dynamically. That may just be the way it works, but I now have a copy of a virtually unused server with everything set, so I can always repeat this process in about 1/10th the time.
Obviously before I move this entire VM onto the HiBook I will allow it to run for a few evenings to see if I have missed anything, but it appears that so far it is working 100%.
That folks is all I have for this evening, except for one small note….
THIS IS POST NUMBER 600! Not too bad for a server running on a variety of inexpensive tablets/laptops and different operating systems!
This site formerly ran on either a Chuwi HiBook tablet or occasionally my Chuwi Hi12 tablet. Check the About page for details. Registration without participation will result in termination.