Monday, July 11, 2011

How you can Create your blog Site With WordPress even on a Localhost



I despise the "all-in-one" XAMPP package that offers Apache, MySQL, PHP along with other tools while in the one application.

It is rather tough to customize or optimize each component individually or fix any issue that could possibly arise.

It is in addition difficult educate yourself on the cause any person component could have should they be all bundled from package.

Therefore, I invented this tutorial to tell you ways to install Apache, MySQL and PHP separately and customize all of them to be perfect for your requirements.

I can guarantee there won't be any help available on the internet showing you ways place in everybody separately as effective as this tutorial! Other tutorials always take out a bit of sheet of configuration every now and again providing a failed installation.

I installed each component on my own local PC and documented each part of this particular article.

These steps are doing fine on Windows based pc.

I'll write another tutorial on Ubuntu Linux before i write again if there's interest away from you oh my gosh readers.

If you might have any question about these steps or experience difficulty when received it, go ahead and ask. You'll find my contact information through the backlink to my website during the authors bio box in the final analysis informed.

1. MySQL setup:

Download the newest version of MySQL Community Server at mysql. com

Version 5. 1. 42 is definitely the current version of MySQL at this time whilst this writing.

My downloaded file is mysql-5. 1. 42-win32. msi

Run the MSI file and employ this settings:

* Typical Setup Type

* Check "Configure the MySQL Server now" and "Register the MySQL Server now"

* Check "Detailed Configuration"

* Check "Developer Machine"

* Check "Multifunctional Database"

* Accept default setting for "InnoDB Tablespace Settings"

* Check "Decision Support (DSS)/OLAP"

* Check "Enable TCP/IP Networking" and "Enable Strict Mode". Leave the main harbour number at 3306.

* Check "Standard Character Set"

* Check "Install As Windows Service" and "Launch the MySQL Server automatically".

* Check "Include Bin Directory in Windows PATH". This method to help run MySQL belonging to the command line. It is really quite helpful.

* Enter a good solid root password , nor check "Enable root access from remote machines" and "Create An Anonymous Account" since these types of options can establish security loophole.

* Click "Execute" as well as install MySQL with your local machine.

Start MySQL and make up a new database with regards to your WordPress installation. You must offer an appropriate good name for your database. With this tutorial, I name the database as "WordPress" along with the admin user as "wpadmin". Put it back to all you could like.

Open your terminal (MS DOS or cygwin) and execute here commands:

$ mysql -u root -p

Enter password: ********

mysql> create database WordPress;

Query OK, 1 row affected (0. 03 sec)

mysql> grant all using blogging platforms. * to wpadmin @localhost identified by 'changeme';

Query OK, 0 rows affected (0. 03 sec)

mysql> flush privileges;

Query OK, 0 rows affected (0. 02 sec)

mysql> exit

Bye

2. Apache setup:

Download Apache 2. 2 at apache. org

My downloaded file is httpd-2. 2. 15-win32-x86-no_ssl. msi

Run the MSI file and employ below settings:

* Network Domain: localhost

* Server Name: localhost

* Administrator's E-mail address: youremail @email. com

* Be sure that "for All Users" is checked.

* Typical Setup Type

* Hit "Install" and will also setup Apache onto your local machine.

After cellular phone completes, drop by Key pad -> Administrative Tools -> Services, search for the "Apache2. 2" service and double-click it.

From here you're able to stop the service and alter the startup type to "Manual"

Configure Apache:

Open and get a new httpd. conf at C: \Program Files\Apache Software Foundation\Apache2. 2\conf as below:

Uncomment this particular line:

LoadModule rewrite_module modules/mod_rewrite. so

Add:

LoadModule php5_module "C: /php/php5apache2_2. dll"

Search for

Replace:

AllowOverride None

With:

AllowOverride All

Add index. php to DirectoryIndex as below:

DirectoryIndex index. php index. html

Find and add:

AddType application/x-httpd-php. php. phtml

Add this line towards end of httpd. conf

PHPIniDir "C: /php"

Restart Apache to make the updated configuration effective.

3. PHP setup:

Download PHP 5. 2. 13 at php. net

My downloaded file is php-5. 2. 13-Win32. zip

Unzip the downloaded bundle to C: \php

Copy C: \php\libmysql. dll to C: \WINDOWS\system32

Copy C: \php\php. ini-recommended and rename it as being php. ini

Open and customize the newly copied C: \php\php. ini

Uncomment:

extension_dir = "ext"

extension=php_gd2. dll (it is utilized for CAPTCHA)

extension=php_mysql. dll

extension=php_mysqli. dll

Add:

date. timezone = "Australia/Melbourne"

4. WordPress setup:

Download modern version of WordPress at WordPress. org

At plenty of time of these writing, it will be version 3. 0. 1

Download and unzip WordPress-3. 0. 1. zip to C: \Program Files\Apache Software Foundation\Apache2. 2\htdocs

Go to C: /Program Files/Apache Software Foundation/Apache2. 2/htdocs/WordPress

Rename wp-config-sample. php to wp-config. php

Update wp-config. php at C: /Program Files/Apache Software Foundation/Apache2. 2/htdocs/WordPress with all the following settings:

define('DB_NAME', 'WordPress');

define('DB_USER', 'wpadmin');

define('DB_PASSWORD', 'changeme');

define('DB_HOST', 'localhost');

Click this particular connection to generate secret keys api. WordPress. org/secret-key/1. 1/salt and replace the below values using the generated keys from that link.

define('AUTH_KEY', 'put your phrase here');

define('SECURE_AUTH_KEY', 'put your specific phrase here');

define('LOGGED_IN_KEY', 'put your phrase here');

define('NONCE_KEY', 'put your distinct phrase here');

Make sure the Apache server continues to running. If it's not, start this.

Open your favourite browser at:

localhost/WordPress/wp-admin/install. php

Follow the instructions displayed on the screen to achieve setting up WordPress.

.