The following guide is a complete but basic installation covering common requirements. The official WordPress site includes full instructions for installing WordPress that cover optional and specialised requirements.
- Connect using SSH to access.nsms.ox.ac.uk and login with your site administrator credentials. Then change into the htdocs folder where your site installation should reside:
$ cd <site-name>/htdocs/
- We recommend that you create a .htaccess file to restrict access to the site until it is ready to launch. The following example file will restrict access to Oxford networks only:
Require ip 129.67.0.0/16 Require ip 163.1.0.0/16 Require ip 192.76.8.0/26
- Download and unpack the WordPress site framework:
$ cd <site-name>/home/ $ wget https://wordpress.org/latest.tar.gz $ tar xzvf latest.tar.gz --strip 1 -C ../htdocs/ $ cd ../htdocs/ $ mv wp-config-sample.php wp-config.php
- Add or amend the following entries in wp-config.php to configure access to your database:
define('DB_NAME', 'database_name_here'); define('DB_USER', 'database_username_here'); define('DB_PASSWORD', 'database_password_here'); define('DB_HOST', 'database_hostname_here');
- Generate the required security keys and append these to wp-config.php. The recommended way to generate the security keys is using the online security key generator
- Use a web browser to visit your site and perform initial configuration as follows:
Select English (UK), continue;
Enter a site name;
Enter an admin username;
Copy the password somewhere safe, or alter it, but keep in mind that by default this login page will be accessible to the whole of the internet, so passwords need to be strong;
Enter your email address;
Select Discourage search engines (so that unfinished sites are not indexed - you can change this later);
Select Install WordPress;
Select Log In;
Enter the admin credentials that you just created - Create your content
- Once the site is ready to launch, alter the .htaccess file as per https://wordpress.org/support/article/htaccess/