Installing Apache, PHP, MySQL and Wordpress on Windows Platform - Part 1
Posted by Daniel - 749 Views
Hi, this is the list of steps I have been using to install Apache, PHP, MySQL and Wordpress on Windows platform as development purposes, so this might not be the perfect setting for production server, but it works well for my development workstation in order to test and debug. I had wrote it with the most practical way hoping that these steps can be easily adapted by the first time user of Apache, PHP, mySQL and Wordpress if they want to taste this powerful combination of open source products. OK, lets get started shall we…
INSTALLING APACHE, MySQL AND PHP
1) Install Apache as windows service.
c:\apache is a good path to install it so it will be easier for you to browse the files later for maintenance since the default will install Apache on a very long path - a bit annoying for me. I am using
Apache 2.2.4 when this tutorial was written, you can get Apache here.
2) Install MySQL- I use MySQL version 5 - and also I recommend you to install MySQL GUI Tools. There will be a step where you need to enter the root password for mySQL, you can enter anything but for this tutorial purpose please enter “1234567″ for root password.
3) Extract the PHP5 files to
c:\php. If you haven’t download it, you can get the PHP5 files here.
4) We will use CGI php.exe instead of using the ISAPI module so Copy php5ts.dll to
c:\php. You may choose to use the ISAPI module if you want to but based on my experience (forgive the lack of my knowledge please), I can’t get the PHP to run with ISAPI module, and I haven’t had time to find out why.
5) Edit php.ini files
- find doc_root entry. put “c:\apache\htdocs”
- find extension_dir entry put “c:/php/ext”
- find extension list entries then enable these extensions for mysql support:
extension=php_mysqli.dll
6) Edit your Apache httpd.conf file then add these lines above the Main Configuration line block:
AddType application/x-httpd-php .php
# For PHP 5
Action application/x-httpd-php “/php/php-cgi.exe”
Also add these lines for directory permission on c:\php
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
Satisfy all
</directory>
Find the DirectoryIndex entry then make sure you put index.php there as shown below:
DirectoryIndex index.html index.php
</ifmodule>
7) Restart apache by typing this commands on the command prompt:
net start apache2 [enter]
Note: If you have IIS installed, you have to make sure that the IIS is not running before starting Apache service. To shut the IIS down, type this command on your command prompt:
8 ) Create a text file with notepad, then type this line on the file:
save it as info.php into c:\apache\htdocs
Open your browser then type http://localhost/info.php on the address bar then hit enter key.
if everything goes well the page will display your php configuration values with the php version info at the top. OK, lets get to the Part 2 - Installing Wordpress.
The following posts are programmatically considered as related to the current post by YARPP Plugin:
- Installing Apache, PHP, MySQL and Wordpress on Windows Platform - Part 2
- The Modified Version of phoogle WordPress plugin - Eliminating the needs of Exec-PHP
- TCPView for Windows, Tool to check TCP and UDP Connections on your system
- ContuttoPDF (Wordpress Plugin to convert your Content to PDF)
- Wordpress, How to insert the Gravatar icon into the comment section
Leave a Reply
Hi, my name is Daniel Nugraha, a single male live on an island called Java, Indonesia. This is the place for me to share my interest in computer programming.
-
Get my Full Feed Here
Comments - Thanks Guys :)
Rangga Kusuma: Gan, Tengkiu buat postingan yang sangat berguna. Kebetulan ada project utk bikin sms gateway, dan converter Agan sangat berguna utk...
Chuck Norton: I actually went ahead & bolted over to Justin’s Get The Image plugin here: http://justintadlock.com/ar...
Chuck Norton: Question: is it possible to insert something like [custfieldimg=”joice1.jpg,15 0,1:1″] into the actual templates instead of...
Therese Lachance: Hi, Any idea how to have ContuttoPDF fetch the correct page language?
tresloukadu: yo how did u fixed when the tags shows <? and it shows < “& l t ; ” ?? please send me an email.













