Making a WordPress server

My Wife wanted a blogging site to try, so I had the choice of setting up my own server or signing up to an online provider.

I first looked at setting it myself, and after doing the sums, I calculated it was going to cost me roughly $10/month in electricity to run a computer to host it, all the time to maintain it, the learning curve to set it up and the pain of trying to work behind a public IP address that changes every couple of days.

This compared to $6/month for hosting with Bluehost, which specializes in hosting blogs with WordPress, so it was a no-brainer. I would host it myself.

This is a rambling instruction on how I got this site working. (Or half working at least)

I have a friend who recommended turnkey WordPress as the platform I serve off, as it is a pre configured solution and to run it as a VM along side of a firewall. I used Ubuntu as the host system as Hyper-V’s system requirements were far to higher for any of the hardware I had lying around.

I used these sites to install my VM

I was going to use a firewall called smoothwall Mods for smoothwall

Network bridge stuff if I installed smoothwall

I referenced these sites too

I needed a multisite so these were the sites I followed This is specific to turnkey WordPress

I wanted a shorter username than the 4 characters imposed by WP defaults so I just added a this code found here to the plugins folder . I tried using this as a plugin but it didn’t seem to work

Cookie problems

To fix the Dynamic DHCP of my internet connection, I forwarded the name server to Cloudflare so I could use this python script to update the ip address every time it is renewed I then set up a CRON job in webmin for the script to run every hour. I also used this site for pip3 installation guidance I used this site to brush up on shell scripts for the cron jobs (I am planning on getting it to check the ip address once rather than setting it 6 times)

Something changed after the install and I was no longer able to edit posts, then I came across a comment here that said changing the URL fixed the problem, and after adding www., it worked. post was by Heather
I just need to find the real problem and so the solution so I can keep my website without the www. The real problem as it turns out was I just needed to delete the cache in the web browser.

During setup there is a file that needs modification called .htaccess, which I downloaded to my Mac from webmin, updated it in text edit, then uploaded it again. Turns out my Mac was removing the period from before the file name so WordPress was not reading the new settings. I changed the file name from webmin and added the period to fix the problem.

I was getting “garbage” text in Internet Explorer and this seems to have the fix by modifying the .htaccess file

Domain mapping

WP greyed out address

Security fixes

Add navigation menus

Change WP URL

Mail server

More to come……..

By David Dobson

I try not to let my age dictate how old I act

One reply on “Making a WordPress server”

Leave a Reply

Your email address will not be published. Required fields are marked *