24, July 2008

Configuring PHP4, APACHE and MySQL on Windows XP - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server
Topic: Configuring PHP4, APACHE and MySQL on Windows XP
« previous next »
Pages: [1] Print

Author Topic: Configuring PHP4, APACHE and MySQL on Windows XP  (Read 785 times)
OMG!I am geek
**
Posts: 53
434 credits
Members referred : 0


« on: Nov 04, 2005, 03:58:21 PM »

Configuring PHP4, APACHE and MySQL on Windows XP

STEPS TO INSTALL PHP4, APACHE AND MySQL ON WINDOWS XP
===============================================

1) First of all, download php4 setup (zip file) php4.3.4-win32.zip from www.php.net Visit through proxy
2) Unzip this file into D drive (say) and name the folder as php4 (or whatever you like), so that the path is
d:\php4
3) Now, rename the php.ini-dist file to php.ini
4) Copy this file into your Windows\System32 directory.
5) Return back to your php4 folder and copy another file named php4ts.dll into Windows/System32
directory.
6) Copy php.ini and php4ts.dll into d:\php4\sapi
7) Now download Apache Http Server (at the time of writing this guide, I was using version 1.3.2Cool, from
its site.
Cool It is better to download the windows installer package (.msi), because it is just as simple to install as any other
software.
9) Install Apache Http Server into your D drive and let the path be d:\apache group\apache. Here, you will
find a folder named HTDOCS. We will use this folder as our root directory ("/"). It means that all your php
and html pages will be saved here, and you can manage these pages in different folders. Such as, you can create
a folder in HTDOCS, named TEST and write the following php script and save it into this folder:

<?php
echo(phpinfo());

?>
Suppose, we named this script as testinfo.php and saved it into d:\apache group\apache\htdocs\test

10) Copy the files php.ini and php4ts.dll from d:/php4 into d:\apache group\apache\
11) Now its time to make some changes into your httpd.conf file, which is present in d:\apache group\apache\conf
12) Copy the following lines at the end of httpd.conf file:

LoadModule php4_module d:\php4\sapi\php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php

Now, search for the following lines in your httpd.conf file :

# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.

Atfer these lines add the following line (means remove the commenting sign # and modify the path as

ServerRoot "d:/Apache Group/Apache"

13) This was all about setting up Apache with PHP4. Simple, isnt it ?
14) The last thing left is MySQL. Download the installer package from its site. (At the time of writing this guide,
I was using the version 3.23.55).
15) Install it into your D drive as D:\mysql
16) Use localhost as your server (domain) name wherever the MySQL install wizard asks you to provide a server name.
17) You`re just a single step away from success. Look into your mysql directory and there you will find a file named my-small.cnf.
Rename this file into my.cnf and copy it into D drive, so that it becomes D:\my.cnf.
1Cool Dont forget to copy this file into Windows\System32.
19) Be sure to keep a shortcut for Apache startup on your desktop. To start the MySQL server, just make a shortcut of
D:\mysql\bin\winmysqladmin on desktop. Double Click to start, you will find a green traffic signal on your taskbar.

Thats all about setting up and successfully installing PHP4, APACHE and MySQL on windows XP.

HAPPY PROGRAMMING!
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« Reply #1 on: Dec 28, 2005, 02:16:15 AM »

this looks very much like the same tutorial i followed on my first server

Visit through proxy Visit through proxy Visit through proxy

Last blog : phpHaze 1.59.1 in Development
Magus computerista
General's Aide
***
Gender: Male
Posts: 129
86 credits
Members referred : 0



« Reply #2 on: Dec 28, 2005, 02:19:08 AM »

I use XAMPP. It has all the packages that you will need, and it is very easy to install.

http://www.apachefriends.org/en/ Visit through proxy
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=654
Tags : tutorials mysql apache php.ini httpd.conf Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server
Topic: Configuring PHP4, APACHE and MySQL on Windows XP
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 24, 2008, 11:53:20 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.717
Total Topics: 7.379
Total Members: 3.711
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: Asimina

34 Guests, 5 Users online :

11 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.