apache, php, mysql installation

17
apache_2.0.59-win32-x86-no_ssl.msi php-5.1.2-Win32.zip mysql-5.0.41.win32.zip or mysql-5.0.41-win32.exe Used - apache_2.0.59-win32-x86-no_ssl.msi Go to your desktop to the previously created folder and double click apache_2.0.59- win32-x86-no_ssl.msi . This will start installation of Apache web server. Follow the instructions: Fig. 0 - !n the first two fields type in localhos  and in the last one in!o"localhos . "e will be installing Apache as a service which starts auto#atically when co#puter starts therefore we select #or 80. !f you are about to use your web server $ust fro# ti#e to ti#e then you #ay choose #or 8080. This way you would need to start Apache #anually everyti#e you are going to use it. Fig. 0% - &elect $%som and click nex.

Upload: sal27adam

Post on 03-Jun-2018

266 views

Category:

Documents


0 download

TRANSCRIPT

8/13/2019 Apache, Php, Mysql Installation

http://slidepdf.com/reader/full/apache-php-mysql-installation 1/17

apache_2.0.59-win32-x86-no_ssl.msi

php-5.1.2-Win32.zip

mysql-5.0.41.win32.zip or mysql-5.0.41-win32.exe

Used - apache_2.0.59-win32-x86-no_ssl.msi

Go to your desktop to the previously created folder and double click apache_2.0.59-

win32-x86-no_ssl.msi.This will start installation of Apache web server. Follow the instructions:

Fig. 0 - !n the first two fields type in localhos and in the last one in!o"localhos.

"e will be installing Apache as a service which starts auto#atically when co#puter

starts therefore we select #or 80.

!f you are about to use your web server $ust fro# ti#e to ti#e then you #ay choose #or8080. This way you would need to start Apache #anually everyti#e you are going to use

it.

Fig. 0% - &elect $%som and click nex.

8/13/2019 Apache, Php, Mysql Installation

http://slidepdf.com/reader/full/apache-php-mysql-installation 2/17

Fig. 0' - (ecause we want our server to be installed in $&'(er)er click $han*e button tochange the path of the installation.

 )avigate to $&'(er)er and click +, . *n the ne+t screen click nex.

http:,,localhost,http:,,/.0.0.,

 both tests worked

8/13/2019 Apache, Php, Mysql Installation

http://slidepdf.com/reader/full/apache-php-mysql-installation 3/17

 )ow lets see if Apache is running. *pen your browser and if you were installing Apache

as a service 12ort 304 then type in U56 hp&localhos and press ner.

7ou should see the sa#e page as displayed above.!f you were installing Apache using 2ort 3030 then you would need to first start it by

going to (ar / ll #ro*rams / pache # (er)er 2.0.59 / $onrol pache

(er)er and click (ar.Then in your browerss U56 type hp&localhos&8080. This should open the sa#e page

in your browser. 8ake sure you allow Apache access on your firewall.

##

Go to your desktop and in the folder you initially created find file called php-%..9-

"in9.ip.

;+tract the content of this file to <:=&erver=2hp.

 )ow we need to add our <:=&erver=2hp folder to the pah of the n)ironmenariales. To do this right click y $omp%er icon on your desktop and choose

#roperies. Then choose )ance tab and click n)ironmen ariales button 1Fig.

94.

Fig. 9

 )ow select #ah fro# the (ysem )ariales list in the botto# part of the window and

click i 1Fig. 4.

8/13/2019 Apache, Php, Mysql Installation

http://slidepdf.com/reader/full/apache-php-mysql-installation 4/17

Fig.

!n the new window click inside the ariale )al%e& bo+ and press n button on your

keyboard to get to the end of the path.

 )ow type in or copy and paste the following 7 <:=&erver=2hp 1Fig. %4. 8ake sure youstart it with se#icolon and to use back slashes.

Fig. %

8/13/2019 Apache, Php, Mysql Installation

http://slidepdf.com/reader/full/apache-php-mysql-installation 5/17

*nce you have done this click +,  in all of the windows until you close the (ysem

#roperies window. )ow you need to restart the co#puter.

 )e+t step will be to find out if our 2>2 is working. Go to (ar / %n and type cm. !nthe co##and pro#pt window type php -). 7ou should see so#ething like Fig. '.

Fig. '

"e still have so#e tweaking to do before we finish our installation.

Go to <:=&erver=2hp and find file called php.ini-recommene. 5ena#e that file to

php.ini.*pen this file and #ake the following a#end#ents:

. identify line with oc_roo  and change it to:

oc_roo <:=&erver=Apache'hocs

. identify line with exension_ir :.: and change it to:

exension_ir <:=&erver=2hp'e+t ;on< %se o%le q%oes = >?

&ave and close the file.

pache $on!i*%raion

 )ow we need to #ake sure that Apache knows where to search for php #odules.

To do that first go to $&'(er)er'pache2'con!  and open file hp.con!  in your te+t

editor.

(ecause we will be running 2>2 as an Apache #odule which is faster and #ore secureoption co#paring to <G! binary? we will need to do the following changes to hp.con!  

file:

. identify @oao%le section and add the following line at the top of this section:

@oao%le php5_mo%le :$&(er)er#hpphp5apache2.ll:

. identify ype section and add the following line at the top of this section:

ype applicaionx-hp-php .php

9. lastly place the following line so#ewhere within the content:##AniBir :$&(er)er#hp: - ensure you have a closing slash at the end of the

 path.

&ave and close file. 5estart Apache by going to (ar / ll #ro*rams / pache #

(er)er 2.0.59 / $onrol pache (er)er and click esar.

8/13/2019 Apache, Php, Mysql Installation

http://slidepdf.com/reader/full/apache-php-mysql-installation 6/17

 )ow go to $&'(er)er'pache2'hocs folder and select all files by pressing $rl C  on

your keyboard. 5ight click on any of the selected files and choose #roperies. !n

ri%es section of the Deneral tab tick ien checkbo+ and click pply and +,  toclose the window. This way you will only see your own files in this folder which is the

roo of our web server and the place where you will be setting up all your pro$ects.

!nside $&'(er)er'pache2'hocs create a file and give it a na#e phpin!o.php. *pen

this file with your te+t editor and place the following line:

EFphp phpin!oGH7 F/. &ave and close the file.

5estart Apache

*pen your browser and type the following line in the U56:

hp&localhosphpin!o.php . 7ou should see now a 2>2 infor#ation page 1Fig. /4.

Fig. / )ow that our Apache and 2>2 is installed lets #ove on to the ne+t section where we

will be installing 8y&@6.

y(I@

mysql-5.0.41.win32.zip or mysql-5.0.41-win32.exe

8/13/2019 Apache, Php, Mysql Installation

http://slidepdf.com/reader/full/apache-php-mysql-installation 7/17

Fig. 3 - <lick nex.

Fig. - &elect $%som and click nex.

8/13/2019 Apache, Php, Mysql Installation

http://slidepdf.com/reader/full/apache-php-mysql-installation 8/17

Fig. 0 - <lick $han*e button to change the path of the installation.

Fig. - )avigate to $&(er)er'ysql and click +, ? then click nex.

8/13/2019 Apache, Php, Mysql Installation

http://slidepdf.com/reader/full/apache-php-mysql-installation 9/17

Fig. - <lick Ansall to start installation.

Fig. 9 - Buring installation a new window will pop up introducing y(I@ nerprise.

&i#ply click nex twice to continue with your installation.

8/13/2019 Apache, Php, Mysql Installation

http://slidepdf.com/reader/full/apache-php-mysql-installation 10/17

Fig. - 7our installation is finished. 7ou are now ready to configure your 8y&@6

&erver. <lick Jinish to start configuration.

8y&@6 <onfiguration

Fig. % - *n the first screen click nex.

8/13/2019 Apache, Php, Mysql Installation

http://slidepdf.com/reader/full/apache-php-mysql-installation 11/17

Fig. ' - &elect Beaile $on!i*%raion and click nex.

Fig. / - &elect Be)eloper achine and click nex.

8/13/2019 Apache, Php, Mysql Installation

http://slidepdf.com/reader/full/apache-php-mysql-installation 12/17

Fig. 3 - &elect %li!%ncional Baaase and click nex.

Fig. - 6eave everything as default and click nex.

8/13/2019 Apache, Php, Mysql Installation

http://slidepdf.com/reader/full/apache-php-mysql-installation 13/17

Fig. 90 - &elect Becision (%ppor GB((H+@# and click nex.

Fig. 9 - 6eave two options checked and port nu#ber as 3306 and click nex.

8/13/2019 Apache, Php, Mysql Installation

http://slidepdf.com/reader/full/apache-php-mysql-installation 14/17

Fig. 9 - &elect (anar characer (e and click nex.

Fig. 99 - &elect Ancl%e Kin Birecory in Winows # and leave other options asdefault. <lick nex.

8/13/2019 Apache, Php, Mysql Installation

http://slidepdf.com/reader/full/apache-php-mysql-installation 15/17

8/13/2019 Apache, Php, Mysql Installation

http://slidepdf.com/reader/full/apache-php-mysql-installation 16/17

8/13/2019 Apache, Php, Mysql Installation

http://slidepdf.com/reader/full/apache-php-mysql-installation 17/17

The last thing you need to do is to open php.ini file located in $&'(er)er and unco##ent

the line exensionphp_mysql.ll by re#oving se#icolon 7 at the beginning. &ave the

file and close it. 5estart the co#puter.

esar apache