I can assure you that there will be no help available on the internet showing you how to install each of them individually as good as this tutorial! Other tutorials always leave a little piece of configuration here and there, resulting in failed installations.
I have installed every component on my local computer and documented every step in this article.
These steps will work on Windows.
I will write another tutorial on the Ubuntu Linux in the near future, if there is interest from you, dear readers.
If you have any questions about these steps or difficulties when setting up, feel free to ask. You'll find my contact details via the link on my website in the resource box at the end of this article.
1 MySQL setup
Download the latest version of MySQL Community Server in mysql.com
Version 5.1.42 is the current version of MySQL at the time of this writing.
My downloaded file is mysql-5.1.42-win32.msi
Run the MSI file and use the following settings:
* Typical Setup Type
* Check the "Configure MySQL Server now" and "Register MySQL Server now"
* Check the "Detailed Configuration"
* Check the "Developer Machine"
* Check the "multi-database"
* Accept the default setting for "InnoDB tablespace settings"
* Check "for decision support (DSS) / OLAP"
* Check the "Enable TCP / IP networking" and "Enable Strict Mode". Leave the port number of the 3306th
* Check the "Standard character set"
* Check the "Install as Windows Service" and "Start MySQL Server automatically".
* Check the "Include Bin Directory in Windows path." This option will run MySQL from the command line. This is very useful.
* Enter the new root password and click "Enable root access from remote machines" and "Anonymous Create an account" of these two options would create a security loophole.
* Click on "Execute" and it will install MySQL on your local computer.
Start MySQL and create a new database for your WordPress installation. You should ensure an appropriate name for the database. In this tutorial, I name the database as "WordPress" and the admin user as "wpadmin". Change whatever you want.
Open a terminal (MS DOS or Cygwin) and execute the following command:
$ mysql-u root-p
Enter password: ********
mysql> CREATE DATABASE wordpress;
Query OK, 1 row affected (0.03 sec)
mysql> give you all the wordpress .* 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 the Apache 2.2 on apache.org
My downloaded file is httpd-2.2.15-win32-x86-no_ssl.msi
Run the MSI file and use the following settings:
* Network Domain: localhost
* Server name: localhost
* Administrator e-mail address: youremail@email.com
* Make sure the "all users" is checked.
* Typical Setup Type
* Click "Install" and it will setup Apache on your local machine.
After the installation completes, go to Control Panel -> Administrative Tools -> Services, look for "apache2.2" service and double-click.
From here you can stop the service and change the Startup Type to "Manual"
Configure Apache :
Create and modify httpd.conf in C: \ Program Files \ Apache Software Foundation \ apache2.2 \ conf as below:
Uncomment the following line:
LoadModule rewrite_module modules / mod_rewrite.so
Add to:
LoadModule php5_module "C: / php/php5apache2_2.dll"
Search for
replacement:
None AllowOverride
S:
All AllowOverride
Add index.php to DirectoryIndex as below:
DirectoryIndex index.php index.html
AddType application / x-httpd-php.php.phtml
Add this line to the end of httpd.conf
PHPIniDir "C: / php"
Restart Apache to update the configuration of the force.
3 PHP setup
Download PHP 5.2.13 on php.net
My downloaded file is a PHP-5.2.13 Win32.zip
Unzip the downloaded package into C: \ php
copy c: \ php \ libmysql.dll in C: \ WINDOWS \ system32
Copy C: \ php \ php.ini-recommended and rename it as php.ini
Open and edit the new copy C: \ php \ php.ini
uncomment:
extension_dir = "ext"
extension = php_gd2.dll (this is used for CAPTCHA)
extension = php_mysql.dll
expansion php_mysqli.dll =
Add:
date.timezone = "Australia / Melbourne"
4 WordPress Setup
Download the latest version of WordPress on WordPress.org
At the time of this writing, it is version 3.0.1
Download and unzip the 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 the wp-config-sample.php to wp-config.php
Update wp-config.php in the C: / Program Files / Apache Software Foundation/Apache2.2/htdocs/WordPress with the following settings:
define ('db_name', 'wordpress');
define ('db_user', 'wpadmin');
define ('DB_PASSWORD', 'changeme');
define ('DB_HOST', 'localhost');
Click on the following link to generate secret keys api.WordPress.org/secret-key/1.1/salt and replaced with the following values of generated keys from the water.
define ('AUTH_KEY', 'put a unique phrase here');
define ('SECURE_AUTH_KEY', 'put a unique phrase here');
define ('LOGGED_IN_KEY', 'put a unique phrase here');
define ('NONCE_KEY', 'put a unique phrase here');
Check the Apache server is still running. If not, start it up.
Open your favorite browser to:
localhost / wordpress / wp-admin / install.php
Follow the onscreen instructions to complete installation of WordPress.
No comments:
Post a Comment