Ubuntu: Setting Up a WordPress Website with LEMP – Part 3
KB ID 0001320 Problem So you want your own web server running WordPress? Previously in Parts One and Two, we setup a new Linux box, and got all the prerequisites installed. Now it’s time to deploy WordPress. Solution There are a few extra bits we need to add to the PHP installation before we setup WordPress, to get those installed run the following command; sudo apt-get install php-curl php-gd php-mbstring php-mcrypt php-xml...
Ubuntu: Setting Up a WordPress Website with LEMP – Part 2
KB ID 0001319 Problem Back in part one we deployed the server and setup our database, now we are going to setup our nginx web server, and get it to work with PHP. Solution Install NGINX To get the nginx package installed; sudo apt install nginx Now ensure nginx is set to start automatically with the server, and manually start the service. sudo systemctl enable nginx sudo systemctl start nginx Make sure it’s up and running;...
Ubuntu: Allow SSH access for ‘root’ user
KB ID 0001317 Problem First of all not being able to connect to your Ubuntu server via SSH as root is ‘by design’, and it’s a perfectly good security measure. I do find it interesting that every hosting company I ever used, spin up a new machine and then email me the root password and they’ve enabled it anyway? I needed to enable this recently and the internet is full of posts saying ‘just edit the...
Ubuntu: Setting Up a WordPress Website with LEMP – Part 1
KB ID 0001318 Problem At the time of writing this site is running on CentOS7 LAMP (Linux Apache MySQL and PHP). Well I’m actually using MariaDB not MySQL as it’s ‘supposed’ to be a little faster, but they are similar enough to be accepted. I’m planning to migrate to Ubuntu 17 LEMP (Linux ‘EnginX’ MySQL and PHP) again with MariaDB. As the site is getting more traffic I want to utilise the...
Migrating WordPress From One Server To Another
KB ID 0001315 Problem I have to say before I start, that most of the credit for this article lies with Allen White from www.techieshelp.com. Who gave me the three most important pieces of information that you need to migrate your WordPress site. Three Things You Need; The contents of your wp-content directory. The contents of the root of your site. A backup of your database, (this is a lot easier than you think). Now there may be a...
Using the VI Editor (For Windows Types)
KB ID 0001304 Problem I dont have a ginger ponytail, nor do I wear sandals, couple these two things together and you will understand why I find VI so confusing! Many times I’ve had to alter a config file on an appliance, or a Linux box, and sat frowning at VI wondering why I can’t change a one to a zero. Note: Nano is easier, if possible try nano {filename} to save hassle. But on hardened appliances for example, it wont...
Cisco AnyConnect – With Google Authenticator 2 Factor Authentication
KB ID 0001256 Problem This was asked as a question on Experts Exchange this week, and it got my interest. A quick search turned up a bunch of posts that said, yes this is possible, and you deploy it with FreeRADIUS and it works great. The problem was, a lot of the information is a little out of date, and some of it is ‘wrong enough’ to make the non-technical types give up. But I persevered, and got it to work. Disclaimer:...
CentOS 7 – Serving HTTPS with Apache2
KB ID 0001210 Problem This week I’ve been working on changing the site over to https. Buying a digital certificate used to be an expensive long winded affair, but not anymore. A quick internet search turned up a 3 year SSL certificate for less than 15 quid. Getting the certificate was the easy bit, getting it installed so that Apache would use it was another ‘challenge’. On a scale of one to ten, I’m about a...
Linux (CentOS 7) Generating CSR (Certificate Signing Requests)
KB ID 0001206 Problem If you want to use digital certificates on your CentOS server, then you will need to generate a CSR. It does not matter if you want to purchase a publicly signed certificate, or even if you are going to sign your own. Below is how to generate a CSR for a single web host. Note: Most cert vendors now require a minimum key length of 2048 so thats what I’m going to use. And I’m assuming you have openSSL...
Mac OSX and Linux – Quick and Dirty Web Server
KB ID 0001157 Problem I was clearing out some old emails yesterday, and saw one my colleague Steve had sent me. It was info on how to fire up a quick web server on your mac. It wasn’t until I took a look at it, I realised how handy it was. After some reading, I found that it was not only possible on a mac, but on other flavours of Linux as well, (as long as they support ‘python’ and have it loaded). WHAT USE IS...