1,478
edits
m (→Conclusion) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<span id="top"></span> | <span id="top"></span> | ||
{| cellpadding="2" | {| cellpadding="2" | ||
|__TOC__||'''Installing WordPress on 5 | |__TOC__||'''Installing WordPress on 5-Nano Series''' | ||
|} | |} | ||
'''Introduction''' | '''Introduction''' | ||
The following instructions show you how to install WordPress on a clean version of 5 | The following instructions show you how to install WordPress on a clean version of 5-Nano. | ||
WordPress is easy to install on Uniform Server 5 | WordPress is easy to install on Uniform Server 5-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. | It shows you how to install WordPress on UniServer allowing you to explore WordPress’s features, test plugins and widgets. | ||
Line 23: | Line 23: | ||
<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. | <li> Download WordPress 2.9 (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. | <li> Extract this file to the current folder ('''right click''' on the file to be extracted wordpress-2.9.zip and select '''Extract All'''... click '''Next''' and '''Next''' again).</li> | ||
<li> This creates a new folder named: wordpress-2. | <li> This creates a new folder named: wordpress-2.9 '''(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 229: | Line 229: | ||
* Login to WordPress by typing the following into your browser: '''<nowiki>http://localhost:82/wordpress/wp-login.php</nowiki>''' | * Login to WordPress by typing the following into your browser: '''<nowiki>http://localhost:82/wordpress/wp-login.php</nowiki>''' | ||
* 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>''' | ||
'''''Note'':''' The plugin contains the following code that automatically tracks the MySQL port. Hence no need to change the above line if using the plugin: | |||
{| | |||
|- | |||
| | |||
<pre> | |||
// === Set base path ========================================================== | |||
$path_array = explode("www", dirname( __FILE__ )); // Split pat at www | |||
$base = "$path_array[0]"; // absolute path to ..UniServer/ | |||
// ====================================================== End Set base path === | |||
// === Get MYSQL port ========================================================= | |||
// Use port from configuration file - because user can change this file | |||
$file_conf = $base.'usr\\local\\mysql\\my.ini'; // Config file | |||
if ($filearray=file($file_conf)) { // read file into array | |||
foreach ($filearray as $txt) { // scan array for port | |||
if(preg_match("/^\s*port\s*=\s*(\d+)/", $txt,$match)){ // check save matches | |||
$mysql_port = $match[1]; // match found save port number | |||
break; // give up nothing else to do | |||
} | |||
} | |||
} | |||
else { // failed to read file | |||
echo "Cannot read the file"; | |||
} | |||
// ===================================================== END Get MySQL Port === | |||
/** MySQL hostname */ | |||
define('DB_HOST', 'localhost:$mysql_port'); | |||
</pre> | |||
|} | |||
'''''[[#top | Top]]''''' | '''''[[#top | Top]]''''' | ||
Line 238: | Line 274: | ||
* Under '''Plugins''' | * Under '''Plugins''' | ||
* Navigate to sub-folder '''Uniform Server 5-Nano 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/ | * Download file [http://sourceforge.net/projects/miniserver/files/Plugins/UniServer%2055-Nano%20Plugins/Applications/V55_WordPress/V55_WordPress_2_9.exe/download V55_WordPress_2_9.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. | 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. |