Browsed by
Category: Personal Development

Change Language on WordPress Install

Change Language on WordPress Install

If the US English version has been installed by mistake the WordPress language can be changed to UK English afterwards.

Go to WordPress translate: https://make.wordpress.org/polyglots/teams/

Find your language e.g. English (UK)

Download a copy of that translation’s WordPress and unzip

Copy the languages folder onto your server

To do this via bash zip up the languages folder and do the following:

$ scp /Users/Username/Desktop/WordPress/wp-content/languages.zip username@www.example.com:/home/public_html/wp-content/

$ ssh www.example.com

$ cd /home/public_html/wp-content/
$ unzip languages.zip
$ rm languages.zip

Login to the admin area of WordPress

Go to Settings > General

Set Site Language to English (UK) (it should appear now you have the languages file)

Copy a File to a Remote Server

Copy a File to a Remote Server

Make sure you are on your local machine and not logged in to the remote server in terminal

Tip: drag and drop file into Terminal to get file address

$ scp /Users/username/Desktop/file.txt username@www.example.com:/path/public_html/foldername

Translation: SecureCoPy file on local machine to remote server at this directory path.

SSH Keyless Login

SSH Keyless Login

Useful Guide

$ ssh -keygen -t rsa

Accept default file name and don’t set a pass phrase if you don’t need one.

$ ls .ssh
$ cat .ssh/id_rsa.pub

Then Login via ssh

$ ssh user@www.example.com
$ nano .ssh/authorized_keys

Add the key copied from id_rsa.pub to authorised_keys on a new line.

CTRL + O to save

CTRL + X to exit nano

$ logout

Then try going to ssh again to login and it should auto login without asking for a password

$ ssh www.example.com
Installing WordPress via BASH/Shell

Installing WordPress via BASH/Shell

Get the WordPress Package File and download to current directory

wget http://en-gb.wordpress.org/latest-en_GB.tar.gz

Unzip the Package File in the directory

tar xfz latest-en_GB.tar.gz

Move the contents of the WordPress directory to the parent directory.

mv wordpress/* ./

Remove the empty WordPress Folder

rmdir ./wordpress/

Remove the Package File

rm -f latest.tar.gz

Install Base Theme

Navigate to the themes folder

cd wp-content/themes

Download the Base theme

wget https://github.com/joshuaiz/plate/archive/master.zip

Unpackage

unzip master.zip

Delete zip file

rm -f master.zip

Rename the theme

mv plate-master new-theme-name