https://wiki.uniformserver.com/index.php?title=Installing_WordPress_on_4.0-Mona&feed=atom&action=historyInstalling WordPress on 4.0-Mona - Revision history2024-03-29T13:20:56ZRevision history for this page on the wikiMediaWiki 1.41.0https://wiki.uniformserver.com/index.php?title=Installing_WordPress_on_4.0-Mona&diff=3638&oldid=prevRic: New page: <span id="top"></span> {| cellpadding="2" |__TOC__||'''Installing WordPress on 4.0-Mona''' |} '''Introduction''' The following instructions show you how to install WordPress on a clean ve...2009-02-15T09:00:05Z<p>New page: <span id="top"></span> {| cellpadding="2" |__TOC__||'''Installing WordPress on 4.0-Mona''' |} '''Introduction''' The following instructions show you how to install WordPress on a clean ve...</p>
<p><b>New page</b></p><div><span id="top"></span><br />
{| cellpadding="2"<br />
|__TOC__||'''Installing WordPress on 4.0-Mona'''<br />
|}<br />
'''Introduction'''<br />
<br />
The following instructions show you how to install WordPress on a clean version of 4.0-Mona.<br />
<br />
WordPress is easy to install on Uniform Server 4.0-Mona, 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.<br />
<br />
It shows you how to install WordPress on UniServer allowing you to explore WordPress’s features, test plugins and widgets.<br />
<br />
== Pre-Installation 1 ==<br />
{|<br />
|-<br />
|valign="top"|<br />
'''''Install Uniform server'''''<br />
<br />
# '''A)''' Create a new folder named '''wordpress_b''' (Can be any name)<br />
# Extract a new copy of Uniform Server V4.0-Mona 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 [[4.0-Mona: Security & passwords#MySQL Password | apanel]] <br />
# '''Start''' Uniform Server. <br />
<br />
'''''Download WordPress''''' <br />
<ol start="4"><br />
<li> '''B)''' Create a new folder '''wordpress_a''' (Can be any name its only a temporary folder)</li><br />
<li> Download WordPress 2.7 (or newer version) from [http://wordpress.org/download/ here] click on Download .ZIP and save to a convenient folder for example '''wordpress_a'''</li><br />
<li> Extract this file to the current folder ('''right click''' on the file to be extracted wordpress-2.7.zip and select '''Extract All'''... click '''Next''' and '''Next''' again).</li><br />
<li> This creates a new folder named: wordpress-2.7 '''(C)''' inside this folder is the main WordPress folder''' wordpress''' '''(D)''' containing all files required for installation.</li><br />
</ol><br />
'''''Copy files to Uniform Server'''''<br />
<ol start="8"><br />
<li> '''E)''' Copy folder '''wordpress''' and all its contents to Uniform Server's root folder <nowiki>*</nowiki>\UniServer\udrive\'''www'''</li><br />
</ol><br />
|<br />
[[Image:Wordpress_1.gif]]<br />
|}<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Pre-Installation 2 ==<br />
{|<br />
|-<br />
|valign="top"|<br />
Create a WordPress configuration file.<br />
{|<br />
|-<br />
|valign="top"|<br />
1&nbsp;<br />
|<br />
'''F)''' Inside the wordpress folder locate the file named:<br />
'''wp-config-sample.php''' Rename it to: '''wp-config.php'''<br />
<br />
|-<br />
|valign="top"|<br />
2&nbsp;<br />
|<br />
After renaming '''open file''' in a text editor (such as Notepad) locate the following three lines:<br />
{|width="80%" style="border:1px solid #ff66ff"<br />
|-<br />
|define('DB_NAME', 'putyourdbnamehere');||// The name of the database<br />
|-<br />
|define('DB_USER', 'usernamehere');||// Your MySQL username<br />
|-<br />
|define('DB_PASSWORD', 'yourpasswordhere');||// ...and password<br />
|}<br />
'''''Change the lines as shown in bold''''':<br />
{|width="80%" style="border:1px solid #006600"<br />
|-<br />
|define('DB_NAME', ''''wordpress'''');||// The name of the database<br />
|-<br />
|define('DB_USER', ''''root'''');||// Your MySQL username<br />
|-<br />
|define('DB_PASSWORD', ''''root'''');|| // ...and password<br />
|}<br />
<br />
Save the file, this configuration file is used by WordPress to locate and access the database which we create in the next step.<br />
|}<br />
|valign="top"|<br />
[[Image:Wordpress_2.gif]]<br />
|}<br />
'''''[[#top | Top]]'''''<br />
<br />
== Installation - Create a WordPress Database ==<br />
Creating the WordPress database is straight forward, tables are automatically inserted during installation<br />
{|<br />
|-<br />
|valign="top"|<br />
{|<br />
|-<br />
|valign="top"|<br />
# Start Uniform Server (Double click on '''Server_Start.bat''' in folder UniServer).<br />
# From apanel (displayed in your browser when the server starts) click on the '''phpMyAdmin''' link. (left menu under tools) Note you can always return to apanel by typing <nowiki>http://localhost/apanel/</nowiki> into your browser address bar.<br />
# '''A)''' We want to create a new database. Name it '''wordpress''' (or something easy to remember if you change this make sure you change the configuration file to match)<br />
# '''B)''' Click on '''Create''' to create the database<br />
|}<br />
|valign="top"|<br />
[[Image:Wordpress_3.gif]]<br />
|}<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Installation ==<br />
To start the WordPress installation process type '''<nowiki>http://localhost/wordpress/wp-admin/install.php</nowiki>''' into your browser and follow the instructions.<br />
<br />
There are two pages to the process as follows:<br />
<br />
'''1)''' Welcome page requires the following information:<br />
<br />
* '''''Blog title:''''' UniCenter Test -- (Choose whatever you like you can change this in WordPress)<br />
* '''''Your e-mail:''''' test@unicenter_test.com -- (Any email will do you can change this in WordPress)<br />
* '''Un-Check''', "''Allow my blog to appear in search engines ...''" -- (Not required for testing)<br />
* Click on '''Install WordPress'''<br />
<br />
<br />
'''2)''' Success page (I liked the final comment)<br />
<br />
'''''Note'':''' username "admin" and password "a1f096". (the password is random make this the first thing you change in WordPress)<br />
<br />
'''''[[#top | Top]]'''''<br />
== Change your WordPress Password ==<br />
Login to WordPress either using the link on the Success page or type type the following into your browser <nowiki>http://localhost/wordpress/wp-login.php</nowiki><br />
<br />
Use the username "admin" and password "see step 2 above"<br />
<br />
Click on '''Users''' (top menu bar) select click on '''Your Profile''', scroll down the page to Update Your Password and enter your new password twice. Click '''Update Profile''' (bottom right)<br />
<br />
'''''Note'':''' The above is not necessary however it is niece to have a password you can remember!<br />
<br />
'''''[[#top | Top]]'''''<br />
== Accessing WordPress Information ==<br />
<br />
{|<br />
|-<br />
|Login to WordPress by typing the following into your browser:||'''<nowiki>http://localhost/wordpress/wp-login.php</nowiki>'''<br />
|-<br />
|To view your Blog type the following into your browser:||'''<nowiki>http://localhost/wordpress/</nowiki>'''<br />
|}<br />
'''''[[#top | Top]]'''''<br />
<br />
<br />
== Permalinks ==<br />
There are three types of WordPress permalinks (permanent links):<br />
<br />
# Default “Ugly” e.g. <nowiki>http://example.com/?page=Number</nowiki><br />
# Pretty Permalinks "uses mod_rewrite" e.g. <nowiki>http://example.com/year/month/day/post-name</nowiki><br />
# PATHINFO "include index.php" e.g <nowiki>http://example.com/index.php/yyyy/mm/dd/post-name/</nowiki><br />
<br />
The following example shows how to enable custom permalinks (Pretty Permalinks). <br />
<br />
# Log into Wordpress select '''Dashboard > Settings > Permalinks'''<br />
# Click '''Custom''' radio button and enter '''/%postname%/%post_id%/'''<br> For a full list of variables check the WordPress Wiki<br />
# Click '''Save Changes'''<br />
<br />
=== Permalinks - Error message ===<br />
When you view your WordPress site the following error message is displayed:<br />
<pre><br />
Forbidden<br />
You don't have permission to access /wordpress/ on this server.<br />
</pre><br />
<br />
To resolve this issue enable mod_rewrite in Apache’s configuration file and allow WordPress to following symbolic links these are covered below:<br />
<br />
'''''[[#top | Top]]'''''<br />
=== .htaccess ===<br />
After clicking "Save Changes" Wordpress creates a new file in folder '''UniServer\udrive\www\wordpress''' named '''.htaccess''' <br />
<br />
Open this file in a text editor it will look similar to this:<br />
<pre><br />
# BEGIN WordPress<br />
<IfModule mod_rewrite.c><br />
RewriteEngine On<br />
RewriteBase /wordpress/<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /wordpress/index.php [L]<br />
</IfModule><br />
# END WordPress<br />
</pre><br />
Add the following line: '''Options +FollowSymLinks''' so the file looks like this:<br />
<pre><br />
Options +FollowSymLinks<br />
# BEGIN WordPress<br />
<IfModule mod_rewrite.c><br />
RewriteEngine On<br />
RewriteBase /wordpress/<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /wordpress/index.php [L]<br />
</IfModule><br />
# END WordPress<br />
</pre><br />
'''''Note'':''' If you change the custom variables all content between '''<nowiki># BEGIN WordPress</nowiki>''' and '''<nowiki># END WordPress</nowiki>''' markers are overwritten hence the reason for putting the line '''Options +FollowSymLinks''' outside of the WordPress block. <br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
=== httpd.conf ===<br />
Edit Apache's configuration file:<br />
<br />
UniServer\udrive\usr\local\apache2\conf\'''httpd.conf'''<br />
<br />
Locate this line (194):<br />
<pre><br />
#LoadModule rewrite_module modules/mod_rewrite.so<br />
</pre><br />
Remove the hash "#" as shown:<br />
<pre><br />
LoadModule rewrite_module modules/mod_rewrite.so<br />
</pre><br />
Save the file and restart servers check the new link format works.<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Portability ==<br />
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.<br />
<br />
'''''[[#top | Top]]'''''<br />
== Conclusion ==<br />
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 [http://wordpress.org/ WordPress.org] when you feel confident get a free blog on [http://wordpress.com/ WordPress.com].<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
----<br />
<br />
[[Category: Uniform Server 4.0-Mona]]<br />
[[Category: Installation]]</div>Ric