Tutorial : Installing Apache 22.11, PHP 53,
MySQL5.136 & PhpMyAdmin 32in
Windows 7/Vista/XP
MebDey Apache | MSO! [PHP |PHPMyAdmin| Winds
sesh sh ed tad
“theme
Te tt i each ha ito nd ange Speck 2211+
Fa eu empaee arene pee
Mido est by Sip mont Tha cra vb
3
eer pa cr ey ec ara mT
YSU $1 8 BHoNgtcnin 32 for Windows 20°
The Tutorials the modified version found at Vion Master Designs.
Index
+ Step 1 instal Apache
Step 2: ngall Configure PHP 5.2
step 3: Coafigue apace 2221
Step 4 Testing our Apache + PHP
Step 5 insaling and Confiouing MySOLS
Step 6: Instaling 2nd Configcing Papin 3 Optional
Step 7 Making Windows cecagnire mycerer ev Options
The Pre-Requisites :
“apache HTTP Sener (2231)
Sie bect opensource webcerver. You nee this turn your humble compizer to = power
webserver execite your appliations
(Dounlcad acne 221 pth ne mod ee (17530)
ip 53 — Download PH? 5:20 (C6 Thsad safe) 6135,
‘MysQ 51.35 - Goto Dounlead page
Pupmtyadmin 3202
ePMdmin Download Page| Dred Download PHPMuécmin 3201 44071
‘The above downloads ae compatible vith Windows 7/ite/Viste SPL (2 bk 09)
Before starting ths tutorial Pease Tur off UAC (User Access Control in Vista. Trust me you il ot
fed up on how many times i popup whi nstaling this enaronment
Step 1 : Install Apache
Fist create a nex roleer in c:\ andname Ras server
| Star the inealtion ane flow the anceeen inerutons a chown in the sreenese
“in eetings far Server bfarmation are gen Below
eee
ees
(Choose custom ntalation and spect the instal pth a= €:\serer\apache\
‘Once instalation is complete, verily the instalation by cicking onthe Apache Icon in the taskbar,
as shown nthe screencast You can also very your instalation of Apache by opening
hitetacalhas in your browser.
congratulations for succesculinsalistion of apache, We tll have ta configure Space, we wil
do tin the coming tapeSTEP 2 : Install & Configure PHP 5.3
Extract PHP package
"Now to instal HPS. Open the zp fle & Extract al your flas to co\serverpip Navigate to
Rename php.ini- file
Seren forthe fle, pp intdeepment andrename 820 shpnk
EDIT php.ini
(Open up otp-int using any text ecter. (Notepad, Nerdoad, Preferably Dceamwesuer) There
are 2 ects mths fle
Edit 1
Find extension stp =~" and replace it with Please note the slashes)
[nsersion dir = "CiJeerer/shen™
Edit 2
"Now inthe folowing edt you just have to uncomment (by removing the“ ~ semicolon” frm the
etension to activate So here are the extensions to be uncommented Seach foreach one
‘them and remove the semicolon ;
pertnetonstp gee)
‘ha Fist extension enable the Image GD library ef PHP
“a Second enables moztna,
“ne Tied an forth enables us to use MySQL database
Save he pp fie
Adding PHP Environmental Variables in the System path
(Great! Now we have to add tell the computer to start php everytime the computer reboot. So,
avigate to your tta~t-agtjortralPane-agrysten-igyssyances ren savings ten go 12
the advanced tb, Ck onthe Enicomnetsl variables butt, then ral dow in system
variables to find sar, Eat Ade the folowing Cade ti as shown below in the image,
‘eXcenenorn
1. You MUST MUST MUST reboot a windows box ater setting the Path variable Step 2)- you
move on past that point without rebooting - logging off is NOT enough - apache wil have
‘rouble ling your mjSch extensions
1 Finally, Step 2 over |. Now we have PHP configured. Lets move onto configuring Apache
STEP 3 : Configure Apache 2.2.11
Now navigate to
Edit httpd.conf
Some users hat epored tht they weren't abet ei tp contin STA using
Notepad Ty using Dreamer or ay ater etor to et the “conf Files. you are
stl rot abet pen httpd. con lin any text edt, you con ty the folowing solutionsop Apache server from the taskbar and ten ry 10 elt
You shoulé have admrstrotivepreviges Try dscbing UAC
{fone of te above work Reboot your computer sfe mode and then ty to ele
‘tpd.conf
‘The above eppicabe foro ant es
(oka, brace youre, we got § Edt inthis le. No big deal, pretty simple search and ceplace
to
Edit 1
‘Search for
Replace with
eedonule eorite sod modes md rewite.so
Edit 2
‘Add the folowing below the previous edt
Pipranir "server
yserver tp presspcne2 2.001"
Edit 3
sere
‘ade eloing bo te See ne
Set ae tee
See ee a
Edit 4
Search for
Replace with
Edit 5
‘Search for
SHrclude tonf/estraetedetonts cnt
Replace with uc cont/enra/htted-vhosts cnt
Now naigete to c\serersoestesof errs
Edit httpd-vhosts.conf
Replace all the text inside with
‘virtualhast "80>
| oseument Rost “C:/Server/iew/myserver.cev/public heal”
Sentone yee tee
‘airectory °C: /Server/iaa/nyserver.dev/public htal">
| Alowoverri.ce ALL
Options. Indexes FolloweymLinks
Order allow,deny
Allow frow sll
| edaiectory>
vireusingety
Restart the Apache Webserver
| you have followed perfect youl see that Rpache has restarted perfect.
Step 4 : Testing our Apache + PHP
Create Directories to store your web files
1 Firat lts make the required Directories. Create # New Flier nse c:\ server
2, side the cvserver folder, eeate folder called
3. inside co\eerver\ni\ create myserverdev
44 and then finally create puniac.rem: folder inside your ce\cervenmanmyeersen. ser,
Follow tis stucure ci\servaryamayserver.cev\guaitc remy
“Thi is where you willbe puting all your him|scrpt et les tobe accessed by your webserve,Create index.php
(open up notepad. type in the folloing code and save the fle as irdexero inside
c\sererima/eyserver.dev\ouaic Mat) as shown inthe above picture
cone
Tiiadex.ore
| photnteds|
Pease note the fie name #16 intexshp. Many 0 times, Notepad saves its
incest, whe sovng, don't forget to mention the type os AL Fie, hs way
Notepad wil sore as ase
STEP 5 : Installing and Configuring MySQL5
Lets start by unpacking the 2p & star the instalation, Selec Typical eck Next,
¥e mvsaL
(lik Nest ater evening were you are instaling
x Meal?
Skip the Sign-up
was
Install QL Now time to conigure SOL. Bs prety simole if you Fellow the onscreen instructions
Now just follow the folowing images.Bescute
rally cick on Execute and let mysql configure everthing.
Daring the MySQL isolation and canfourctionf you have mised any step or have rot
‘configured propery then you can ran te MySQL Server Instance Config Wizard
hich con be accessed ‘Stort-AllPrograms-MySQL.
“HF MySQL Instance Wezord doesnot complete the ia ep reboot your computer ang
configure again
‘Test MySQL along with Apache+PHP
Now to test whether MYSQL 8 PHP alongwith APACHE are working fin. restart the webserver. ie
cick an the apache fon in your asker (near nein the thar/trtar) and restart the
websenice
‘after has restarted (green pay icon wil be displayed), pont your favourte web browser to
Inspuioestion,[Byou ae abe to ee the above page then you have successflyconigured Apache=PHPS. To
-etly whether MySQLS has been installed scroll down the page uni you come across sql &
nnysql heading as shown below.
i]
i]
poland myrghare mternons for MySQL
‘woohoo # Congratulations! You have successfuly installed Apache2211 HPS 29+MjSOLS: 34
‘on your system “sight
STEP 6 : Installing and Configuring PhpMyAdmin 3
Extract the PhpMyAdmin 3 package
“Ti san optional: You can use your webserver without it as wel
rac ale fs inside the ptpeysancn-2.2.0,2-21-zanqages.21p (0 2 CHpmpmaonn NOW
navigate inside Cisheyacean youl se another folder named pypyione-2.2.0-31
"engages (even f the name's something es), rename this folder fo prs. Cut this renamed ns
{older and paste inside c:\senerinmnnyserver.cev quel neat
[Now i you have followed eventhing propery. when you point your web bromser to
hitptvnns nysarvecclevamasindexpia you will see a login seen or the folowing scree.
1F you get the login screen the username | passwords raot | root
STEP 7 : Making Windows recognize myserver.dev
Optional
Editing hosts file
Navigate toc: ini \ Systema arsversiete
Dopenup hosts innatepacjwordpag/cresmweaver any tet editor and add he felling
2 ayserversdev
lees ee
Conclusion
‘Thankyou or reading this tutorial hope you guys enjoyed @
‘There is 2 screencast based on this tutorial, so do check tout Screencast #1 Instaling Apache 22
SH 53, MySQL 52 6 PUBNIotcmin 32 for Windone 7/'sta
1 you are having any trouble feel free to post a commen
Python Programming Reference Guide: A Comprehensive Guide for Beginners to Master the Basics of Python Programming Language with Practical Coding & Learning Tips