Now, let us quickly install WordPress so we are on the same frequency:
Pop over to
http://WordPress.org/download/
and download WordPress in either the.zip
or.tar.gz
format. At the time of writing, the latest stable version of WordPress was 3.3.2. Unzip WordPress and place it into a desired location on your local web server.Next, let's create a database for WordPress on your website. For the purposes of this book, I've decided to name my database
wordpress_phonegap
. In my case, I created the databasewordpress_phonegap
using phpMyAdmin:Type in
wordpress_phonegap
and click on Create.Now, go to the root of your
WordPress
folder and you should see a file namedwp-config-sample.php
. Open up the file in the text editor of your choice and look for these lines:define('DB_NAME', 'database_name_here');
,define('DB_USER' and 'username_here');
,define('DB_PASSWORD', 'password_here');
. Changedatabase_name_here
,username_here
, andpassword_here
to the appropriate values and save the file aswp-config.php
.Now open up your web browser and navigate to the location where you have placed your WordPress installation. In my case, I renamed the
WordPress
folder toworpress_phonegap
and I have placed the folder athttp://loc
alhost/public_html
. Hence, this is what I will see when I visithttp://localhost/public_html/WordPress_phonegap
:Setup page for WordPress
Now
enter the information for the Site Title, Username, Passwords, and Your E-mail fields. Once done, click on the button Install WordPress. For the purposes of this book, I named the site as WordPress and PhoneGap Mobile Applications
and I am using admin
as the username.
Once you have successfully installed WordPress, you should see the following on your browser: