Zero logo

WordPress

WordPress is a free and open source application designed primarily for blogging and creating websites. It is a content-management system (CMS) based on PHP and MySQL. The following page provides detailed information for installing WordPress on Uniform Server Zero XV.

Note: At step 5, you are required to enter your e-mail address. This is the e-mail address you set as default when configuring MSMTP. For details, see Edit MSMTP Configuration.

Step 1: Download and Extract

Download and unzip the WordPress package.

  • Download the latest version of Wordpress from https://wordpress.org/download/.
  • Save the downloaded file wordpress-x.x.x.zip to a temporary folder, for example, C:\wordpress_temp
  • Extract the downloaded file (wordpress-x.x.x.zip). This will create folder wordpress-x.x.x

Before Wordpress can be installed, a MySQL user and database are required. For details, see step 2.

Step 2: Create the Database and a User using phpMyAdmin

Follow these instructions to create your WordPress username and database using phpMyAdmin.

Note: These instructions are written for phpMyAdmin; its user interface can vary slightly between versions.

  • Start UniController.
  • Start Apache and MySQL servers.
  • Click phpMyAdmin button - Opens phpMyAdmin in default browser.
  1. If a WordPress database does not already exist in the Database list on the left, create one:
    1. Click Databases button on the top left menu bar.
    2. Choose a name for your WordPress database ('wordpress' or 'blog' are good), enter it in the Database name field, and click Create.
      Note: Database name is added to list on the left.
  2. Click the Privileges button on the top menu bar. If a user relating to WordPress does not already exist in the list of users, create one:
    1. Click Add user account. This opens the add user menu; navigate to the Login Information section:
    2. Choose a username for WordPress ('wordpress' is good) and enter it in the User name field. (Be sure Use text field is selected from the dropdown.)
    3. From the Host dropdown, select Use text field and in the Host field, enter 127.0.0.1
    4. Choose a difficult-to-guess password (ideally containing a combination of upper- and lower-case letters, numbers, and symbols), and enter it in the Password field. (Be sure Use text field is selected from the dropdown.) Re-enter the password in the Re-type field.
    5. Write down the username and password you chose.
    6. Leave all options under Database for user and Global privileges at their defaults.
    7. Click Go.

Note: Other parts of this documentation assume you have set the following: WordPress database name = wordpress, Username for WordPress = wordpress, Password = fred123. Remember to replace these with the values you have set in the above.

Step 3: Set up wp-config.php

How to create and edit a new Wordpress configuration file named wp-config.php

  • Return to where you extracted the WordPress package in Step 1 (folder C:\wordpress_temp\wordpress-x.x.x\wordpress).
  • Rename the file wp-config-sample.php to wp-config.php, and open it in a text editor.

Replace the following using information from Step 2

// ** Database settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'database_name_here' );

/** Database username */
define( 'DB_USER', 'username_here' );

/** Database password */
define( 'DB_PASSWORD', 'password_here' );

/** Database hostname */
define( 'DB_HOST', 'localhost' );

/** Database charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8' );

/** The database collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', '' );

To give the following:

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');

/** MySQL database username */
define('DB_USER', 'wordpress');

/** MySQL database password */
define('DB_PASSWORD', 'fred123');

/** MySQL hostname */
define('DB_HOST', '127.0.0.1');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

Enter your secret key values

Replace the following section:

define('AUTH_KEY',         'put your unique phrase here');
define('SECURE_AUTH_KEY',  'put your unique phrase here');
define('LOGGED_IN_KEY',    'put your unique phrase here');
define('NONCE_KEY',        'put your unique phrase here');
define('AUTH_SALT',        'put your unique phrase here');
define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT',   'put your unique phrase here');
define('NONCE_SALT',       'put your unique phrase here');

With the following example section:

define( 'AUTH_KEY',         't`DK%X:>xy|e-Z(BXb/f(Ur`8#~UzUQG-^_Cs_GHs5U-&Wb?pgn^p8(2@}IcnCa|' );
define( 'SECURE_AUTH_KEY',  'D&ovlU#|CvJ##uNq}bel+^MFtT&.b9{UvR]g%ixsXhGlRJ7q!h}XWdEC[BOKXssj' );
define( 'LOGGED_IN_KEY',    'MGKi8Br(&{H*~&0s;{k0<S(O:+f#WM+q|npJ-+P;RDKT:~jrmgj#/-,[hOBk!ry^' );
define( 'NONCE_KEY',        'FIsAsXJKL5ZlQo)iD-pt??eUbdc{_Cn<4!d~yqz))&B D?AwK%)+)F2aNwI|siOe' );
define( 'AUTH_SALT',        '7T-!^i!0,w)L#JK@pc2{8XE[DenYI^BVf{L:jvF,hf}zBf883td6D;Vcy8,S)-&G' );
define( 'SECURE_AUTH_SALT', 'I6`V|mDZq21-J|ihb u^q0F }F_NUcy`l,=obGtq*p#Ybe4a31R,r=|n#=]@]c #' );
define( 'LOGGED_IN_SALT',   'w<$4c$Hmd%/*]`Oom>(hdXW|0M=X={we6;Mpvtg+V.o<$|#_}qG(GaVDEsn,~*4i' );
define( 'NONCE_SALT',       'a|#h{c5|P &xWs4IZ20c2&%4!c(/uG}W:mAvy<I44`jAbup]t=]V<`}.py(wTP%%' );

Note: Do not use the above as is! Either change these to different unique phrases by changing a few characters in each line (keep the line length the same), or use the online generator.

Save the wp-config.php file

Step 4: Upload the files

Now you will need to decide where on your domain you'd like your WordPress-powered site to appear:

  • In the root directory of your website (for example, http://example.com/).
  • In a subdirectory of your website (for example, http://example.com/blog/).

Note:
The location of your root web directory www will vary depending on where Uniform Server was installed.
A default installation assumes the following path: C:\UniServerZ\www

In the Root Directory

Copy all the contents of the wordpress directory (but not the directory itself) into the root directory of your website.

  • Copy all the contents of folder C:\wordpress_temp\wordpress-x.x.x\wordpress to folder C:\UniServerZ\www

In a Subdirectory

Rename the wordpress directory to your desired name, then copy the directory to your desired location within the root directory of your website.

  • Rename folder C:\wordpress_temp\wordpress-x.x.x\wordpress to C:\wordpress_temp\wordpress-x.x.x\blog
  • Copy folder C:\wordpress_temp\wordpress-x.x.x\blog to folder C:\UniServerZ\www

Step 5: Run the Install Script

Point a web browser to start the installation script.

  • If you placed the WordPress files in the root directory, you should visit: http://localhost/wp-admin/install.php
  • If you placed the WordPress files in a subdirectory called blog, for example, you should visit: http://localhost/blog/wp-admin/install.php

Finishing installation

Enter language, your site title, your desired user name, your choice of a password and your e-mail address. Also displayed is a check-box asking if you would like to discourage search engines from indexing your site. Leave the box unchecked if you would like your blog to be visible to everyone, including search engines, and check the box if you want to block search engines, but allow normal visitors.

Note: all this information can be changed later in your Administration Screens (http://localhost/blog/wp-login.php).


--oOo--