Using Linux, Apache, MySQL, and PHP For Software Deployment

It’s really beneficial.
* Enter a new root password and do NOT check “Permit root entry from remote machines” and “Generate An Anonymous Account” because these two possibilities will make protection loophole.
* Click on “Execute” and it will install MySQL on your neighborhood machine.

Commence MySQL and develop a new database for your WordPress set up. You will need to provide an suitable identify for your database. In this tutorial, I name the database as “WordPress” and the admin user as “wpadmin”. Transform it to no matter what you like.ke.

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

$ mysql -u root -p
Enter password: ********

mysql> produce database WordPress
Query Okay, 1 row impacted (.03 sec)

mysql> grant all on WordPress.* to wpadmin @localhost recognized by ‘changeme’
Query Ok, rows affected (.03 sec)

mysql> flush privileges
Query Okay, rows affected (.02 sec)

mysql> exit
Bye

2. Apache setup:
Download Apache two.two at apache.org
My downloaded file is httpd-2.two.fifteen-win32-x86-no_ssl.msi
Operate the MSI file and use the subsequent configurations:
* Network Domain: localhost
* Server Identify: localhost
* Administrator’s E-mail Handle: youremail @e-mail.com
* Make convinced “for All Users” is checked.
* Common Setup Variety
* Hit “Install” and it will setup Apache on your nearby machine.

Right after the installation completes, go to Handle Panel -> Administrative Resources -> Providers, glimpse for the “Apache2.2” services and double-click on it.
From the following you can prevent the support and adjust the startup variety to “Manual”

Configure Apache:

Open and modify the httpd.conf at C:\Program Files\Apache Software package Foundation\Apache2.2\conf as under:
Uncomment the following line:
LoadModule rewrite_module modules/mod_rewrite.so
Add:
LoadModule php5_module “C:/php/php5apache2_two.dll”
Lookup for
Change:
AllowOverride None
With:
AllowOverride All

Include index.php to DirectoryIndex as below:
DirectoryIndex index.php index.html

Discover and include:
AddType software/x-httpd-php.php.phtml

Add this line to the conclude of httpd.conf
PHPIniDir “C:/php”

Restart Apache to make the updated configuration effective.

three. PHP setup:
Download PHP five.2.13 at php.web
My downloaded file is php-five.2.13-Win32.zip
Unzip the downloaded bundle to C:\php

Copy C:\php\libmysql.dll to C:\WINDOWS\system32
Duplicate C:\php\php.ini-advised and rename it as php.ini

Open and modify the freshly copied C:\php\php.ini
Uncomment:
extension_dir = “ext”
extension=php_gd2.dll (this is utilised for CAPTCHA)
extension=php_mysql.dll
extension=php_mysqli.dll

Include:
date.timezone = “Australia/Melbourne”

four. WordPress setup:
Download the most recent version of WordPress at WordPress.org
At the time of this composing, it is version 3..1
Download and unzip WordPress-3..one.zip to C:\Program Files\Apache Program Foundation\Apache2.2\htdocs

Go to C:/Plan Files/Apache Application Basis/Apache2.2/htdocs/WordPress
Rename wp-config-sample.php to wp-config.php

Update wp-config.php at C:/System Files/Apache Software program Basis/Apache2.2/htdocs/WordPress with the following settings:
define(‘DB_NAME’, ‘WordPress’)
outline(‘DB_USER’, ‘wpadmin’)
define(‘DB_PASSWORD’, ‘changeme’)
define(‘DB_HOST’, ‘localhost’)

Click on the following hyperlink to produce top secret keys api.WordPress.org/mystery-crucial/1.one/salt and exchange the subsequent values with the generated keys from that website link.

define(‘AUTH_KEY’, ‘put your exceptional phrase here’)
define(‘SECURE_AUTH_KEY’, ‘put your exclusive phrase here’)
outline(‘LOGGED_IN_KEY’, ‘put your unique phrase here’)
outline(‘NONCE_KEY’, ‘put your special phrase here’)