Installing WordPress on 5.0-Nano: Difference between revisions

From The Uniform Server Wiki
Jump to navigation Jump to search
mNo edit summary
Line 18: Line 18:


# '''A)''' Create a new folder named '''wordpress_b''' (Can be any name)
# '''A)''' Create a new folder named '''wordpress_b''' (Can be any name)
# Extract a new copy of Uniform Server V5.0-Nano to this folder<br>'''''Note'':''' You will need a database user name and password in this tutorial I use the Uniform defaults name='''root''' password='''root'''.<br>&nbsp;--- Database user name '''root''' - No need to change this<br>&nbsp;--- Database password '''root''' - Before installing WordPress I recommend changing this using [[5.0-Nano: Security & passwords#MySQL Password | apanel]]   
# Extract a new copy of Uniform Server V5-Nano to this folder<br>'''''Note'':''' You will need a database user name and password in this tutorial I use the Uniform defaults name='''root''' password='''root'''.<br>&nbsp;--- Database user name '''root''' - No need to change this<br>&nbsp;--- Database password '''root''' - Before installing WordPress I recommend changing this using [[5.0-Nano: Security & passwords#MySQL Password | apanel]]   


'''''Download WordPress'''''  
'''''Download WordPress'''''  
<ol start="4">
<ol start="4">
<li> '''B)''' Create a new folder '''wordpress_a''' (Can be any name its only a temporary folder)</li>
<li> '''B)''' Create a new folder '''wordpress_a''' (Can be any name its only a temporary folder)</li>
<li> Download  WordPress 2.8.2 (or newer version) from [http://wordpress.org/download/ here] click on Download .ZIP and save to a convenient folder for example '''wordpress_a'''</li>
<li> Download  WordPress 2.8.6 (or newer version) from [http://wordpress.org/download/ here] click on Download .ZIP and save to a convenient folder for example '''wordpress_a'''</li>
<li> Extract this file to the current folder ('''right click''' on the file to be extracted wordpress-2.8.2.zip and select '''Extract All'''... click '''Next''' and '''Next''' again).</li>
<li> Extract this file to the current folder ('''right click''' on the file to be extracted wordpress-2.8.6.zip and select '''Extract All'''... click '''Next''' and '''Next''' again).</li>
<li> This creates a new folder named: wordpress-2.8.2 '''(C)''' inside this folder is the main WordPress folder''' wordpress''' '''(D)''' containing all files required for installation.</li>
<li> This creates a new folder named: wordpress-2.8.6 '''(C)''' inside this folder is the main WordPress folder''' wordpress''' '''(D)''' containing all files required for installation.</li>
</ol>
</ol>
'''''Copy files to Uniform Server'''''
'''''Copy files to Uniform Server'''''
Line 78: Line 78:
[[Image:Nano_wordpress_1.gif]]
[[Image:Nano_wordpress_1.gif]]
|}
|}
'''''[[#top | Top]]'''''
== Switch to production, start servers ==
UniServer’s default is to use the production PHP configuration file however you may have switched configuration files during development.
Before installing any applications ensure the production configuration is selected. 
'''''Check configuration file'':'''
# Start UniTray, in folder UniServer double click on '''Start.exe''' tray icon created.
# Check configuration: Left click '''tray icon > Server Status''' – Top of page php.ini displays either Production or development.
# If Production displayed no action required you can start servers.
# If development displayed proceed as follows:
# Switch to production, Left click '''tray icon > Advanced > click php.ini switch to Production'''.
'''''Start Servers'':'''
* Start Uniform Server. Left click '''tray icon > click Start UniServer '''
'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''


Line 105: Line 88:
|-
|-
|valign="top"|
|valign="top"|
# Start UniTray, in folder UniServer double click on '''Start.exe''' tray icon created.
# Start Uniform Server. Left click '''tray icon > click Start UniServer '''
# Left click tray icon > click phpMyAdmin - This opens phpMyAdmin in your browser
# Left click tray icon > click phpMyAdmin - This opens phpMyAdmin in your browser
# '''A)''' We want to create a new database. Name it '''wordpress'''
# '''A)''' We want to create a new database. Name it '''wordpress'''
Line 126: Line 111:


* '''''Blog title:''''' UniCenter Test -- (Choose whatever you like you can change this in WordPress)
* '''''Blog title:''''' UniCenter Test -- (Choose whatever you like you can change this in WordPress)
* '''''Your e-mail:''''' test@unicenter_test.com  -- (Any email will do you can change this in WordPress)
* '''''Your e-mail:''''' test@ztest.com  -- (Any email will do you can change this in WordPress)
* '''Un-Check''', "''Allow my blog to appear in search engines ...''" -- (Not required for testing)
* '''Un-Check''', "''Allow my blog to appear in search engines ...''" -- (Not required for testing)
* Click on '''Install WordPress'''
* Click on '''Install WordPress'''
Line 142: Line 127:
* Dashboard page opens and displays - "Notice: you're using the auto-generated password for your account...."   
* Dashboard page opens and displays - "Notice: you're using the auto-generated password for your account...."   
* Click '''Yes, Take me to my profile page'''
* Click '''Yes, Take me to my profile page'''
* New Password: '''''Uniform_Server''''' - Use your own
* New Password: '''''root66''''' - Use your own
* Confirm Password: '''''Uniform_Server''''' - Type your new password again.
* Confirm Password: '''''root66''''' - Type your new password again.
* Click '''Update Profile'''
* Click '''Update Profile'''


Line 245: Line 230:
* To view your Blog type the following into your browser: '''<nowiki>http://localhost:82/wordpress/</nowiki>'''
* To view your Blog type the following into your browser: '''<nowiki>http://localhost:82/wordpress/</nowiki>'''


'''''[[#top | Top]]'''''
== Plugin ==
The above instructions are generic allowing you to install the latest version of WordPress.
If you prefer a click and go solution go to [http://sourceforge.net/projects/miniserver/files/Plugins/UniServer%2055-Nano%20Plugins/Applications/ '''SourceForge''']
* Under '''Plugins'''
* Navigate to sub-folder '''Uniform Server 5-Nano Plugins'''
* Download file [http://sourceforge.net/projects/miniserver/files/Plugins/UniServer%2055-Nano%20Plugins/Applications/V55_WordPress/V55_WordPress_2_8_6.exe/download V55_WordPress_2_8_6.exe]
Save this to folder UniServer, to install double click on file. WordPress is pre-configured and ready to go. Check out the read me file for latest information.
'''''Note'':''' This plugin is intended to quickly get WordPress up and running allowing you to explore the software. If you intend running a production server delete the folders installed and perform a manual install this allows you to tailor WordPress and include any missing modules.
'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''


Line 255: Line 254:


----
----


[[Category: Uniform Server 5.0-Nano]]
[[Category: Uniform Server 5.0-Nano]]
[[Category: Installation]]
[[Category: Installation]]

Revision as of 19:08, 11 December 2009

Installing WordPress on 5.0-Nano

Introduction

The following instructions show you how to install WordPress on a clean version of 5.0-Nano.

WordPress is easy to install on Uniform Server 5.0-Nano, do you need a portable version, no problem. New to blogging and want to get a feel for it in your own time and not be embarrassed by making mistakes on-line. Then this page is probably what you are looking for.

It shows you how to install WordPress on UniServer allowing you to explore WordPress’s features, test plugins and widgets.

Pre-Installation 1

Install Uniform server

  1. A) Create a new folder named wordpress_b (Can be any name)
  2. Extract a new copy of Uniform Server V5-Nano to this folder
    Note: You will need a database user name and password in this tutorial I use the Uniform defaults name=root password=root.
     --- Database user name root - No need to change this
     --- Database password root - Before installing WordPress I recommend changing this using apanel

Download WordPress

  1. B) Create a new folder wordpress_a (Can be any name its only a temporary folder)
  2. Download WordPress 2.8.6 (or newer version) from here click on Download .ZIP and save to a convenient folder for example wordpress_a
  3. Extract this file to the current folder (right click on the file to be extracted wordpress-2.8.6.zip and select Extract All... click Next and Next again).
  4. This creates a new folder named: wordpress-2.8.6 (C) inside this folder is the main WordPress folder wordpress (D) containing all files required for installation.

Copy files to Uniform Server

  1. E) Copy folder wordpress and all its contents to Uniform Server's root folder *\UniServer\www

Top

Pre-Installation 2

Create a WordPress configuration file.

F) Inside the wordpress folder locate the file named: wp-config-sample.php Rename it to: wp-config.php

After renaming open file in a text editor (such as Notepad) locate the following three lines:

define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password

Change the lines as shown in bold:

define('DB_NAME', 'wordpress'); // The name of the database
define('DB_USER', 'root'); // Your MySQL username
define('DB_PASSWORD', 'root'); // ...and password

Save the file, this configuration file is used by WordPress to locate and access the database which we create in the next step.

Top

Installation - Create a WordPress Database

Creating the WordPress database is straight forward, tables are automatically inserted during installation

  1. Start UniTray, in folder UniServer double click on Start.exe tray icon created.
  2. Start Uniform Server. Left click tray icon > click Start UniServer
  3. Left click tray icon > click phpMyAdmin - This opens phpMyAdmin in your browser
  4. A) We want to create a new database. Name it wordpress
  5. B) Click on Create to create the database

Note:

  • You can start phpMyAdmin from Apanel, start Apanel by typing http://localhost/apanel/ into your browser address bar.
  • From Apanel click on the phpMyAdmin link. (left menu under tools)

Top

Installation

To start the WordPress installation process type http://localhost/wordpress/wp-admin/install.php into your browser and follow the instructions.

There are two pages to the process as follows:

1) Welcome page requires the following information:

  • Blog title: UniCenter Test -- (Choose whatever you like you can change this in WordPress)
  • Your e-mail: test@ztest.com -- (Any email will do you can change this in WordPress)
  • Un-Check, "Allow my blog to appear in search engines ..." -- (Not required for testing)
  • Click on Install WordPress


2) Success page (I liked the final comment)

Note: username "admin" and password "XA6T%h9y*EFE". (the password is random make this the first thing you change in WordPress)

3) Login and change your WordPress Password

  • Click Login
  • Enter Username: admin
  • Enter Password: XA6T%h9y*EFE - whatever was generated for you
  • Dashboard page opens and displays - "Notice: you're using the auto-generated password for your account...."
  • Click Yes, Take me to my profile page
  • New Password: root66 - Use your own
  • Confirm Password: root66 - Type your new password again.
  • Click Update Profile

Note: The above is not necessary however it is niece to have a password you can remember!

Top

Accessing WordPress

Login to WordPress by typing the following into your browser: http://localhost/wordpress/wp-login.php
To view your Blog type the following into your browser: http://localhost/wordpress/

Top

Permalinks

There are three types of WordPress permalinks (permanent links):

  1. Default “Ugly” e.g. http://example.com/?page=Number
  2. Pretty Permalinks "uses mod_rewrite" e.g. http://example.com/year/month/day/post-name
  3. PATHINFO "include index.php" e.g http://example.com/index.php/yyyy/mm/dd/post-name/

The following example shows how to enable custom permalinks (Pretty Permalinks).

  1. Log into Wordpress select Dashboard > Settings > Permalinks
  2. Click Custom radio button and enter /%postname%/%post_id%/
    For a full list of variables check the WordPress Wiki
  3. Click Save Changes

Top

Portability

If you want a portable version of WordPress copy the folder UniServer and all its content to your USB memory stick that’s it. Don’t expect fantastic speeds however it is usable.

Top

Move Servers

One of Uniform Server’s unique features is the capability to run more than one complete server on the same PC. When running a server from a USB memory stick you can use this to great advantage and prevent server clashes. You will have noticed UniTray’s icon displays one (meaning standard ports). Moving UniServer increments this digit and so on for each server move. In reality it’s not just a port change but a complete server update, running server status displays the server characteristics.

Move Servers:

  1. Assumes a new extracted server.
  2. Stop all running Uniform Servers
  3. Start UniTray, in folder UniServer double click on Start.exe tray icon created.
  4. Move servers, Left click tray icon > Advanced > click Move Servers multi-server operation.
  5. In the pop-up window at all prompts press enter to accept defaults.
  6. The tray icon will display 2, if you already use a server with this number repeat steps 4 and 5 each server must have a unique number.


  • After moving the servers you can now install WordPress as explained above.
  • However before proceeding you need to use the new server ports for installation.
  • To find these: Left click tray icon > Server Status


I moved the servers to icon 3 hence Apache port = 82 and MySQL port = 3308

At Pre-Installation 2

At pre-instaltion step 2 there is an additional line to change. All four lines that require changing are shown below:

F) Inside the wordpress folder locate the file named: wp-config-sample.php Rename it to: wp-config.php

After renaming open file in a text editor (such as Notepad) locate the following four lines:

define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost'); /** MySQL hostname */

Change the lines as shown in bold:

define('DB_NAME', 'wordpress'); // The name of the database
define('DB_USER', 'root'); // Your MySQL username
define('DB_PASSWORD', 'root'); // ...and password
define('DB_HOST', 'localhost:3308'); /** MySQL hostname */

Save the file, this configuration file is used by WordPress to locate and access the database..

To start the WordPress installation process type http://localhost:82/wordpress/wp-admin/install.php into your browser and follow the instructions.

After installation page access requires the addition of a port number as shown

  • Login to WordPress by typing the following into your browser: http://localhost:82/wordpress/wp-login.php
  • To view your Blog type the following into your browser: http://localhost:82/wordpress/

Top

Plugin

The above instructions are generic allowing you to install the latest version of WordPress.

If you prefer a click and go solution go to SourceForge

Save this to folder UniServer, to install double click on file. WordPress is pre-configured and ready to go. Check out the read me file for latest information.

Note: This plugin is intended to quickly get WordPress up and running allowing you to explore the software. If you intend running a production server delete the folders installed and perform a manual install this allows you to tailor WordPress and include any missing modules.

Top

Conclusion

WordPress is extremely easy to install on UniServer, if you want to have a go at blogging give it a spin on your own PC.

Need more information pop over to WordPress.org when you feel confident get a free blog on WordPress.com.

Top