Apache, PHP, MySQL and phpMyAdmin installation of Windows operating system

Posted Apr 25, 2009 by andriux / comments 1 comments / Print / Font Size Decrease font size Increase font size

Apache, PHP, MySQL and phpMyAdmin installation of Windows operating system


1) Download

http://httpd.apache.org/download.cgi - Si?skit?s Apache 2 "Win32 Binary (MSI Installer)"
http://www.php.net/downloads.php - Si?skit?s PHP 5 "zip package"
http://dev.mysql.com/downloads/ - Offer Download MySQL "Generally Available". Required to download the Windows (x86) "or the file that holds the most.
http://www.phpmyadmin.net/home_page/downloads.php - Si?skit?s the latest version of the beta. Also advisable to download the tar.bz2 file (it takes less, but this will require the support of archiving bz2 and tar files such as Power Archiver ((http://www.powerarchiver.com/download/))
Top of contents

2) Installation

a) Apache
Double-click on the file "apache .... msi"
Dissipated installation program, click "Next", then accept the "GNU Public Rights", ultimately specify the information in the first two puktus you can enter "localhost", but the e-mail is advisable to specify the correct. And the option to work with the 80 "Port". I think it is best to install into "C: \"
If you raised any problems, Apache should start to test the visit http://localhost/. "Page should be written," Seeing this instead of the website you expected? ". If you see this, it means you are successfully coping with the Apache installation.

b) PHP
Unpack downloaded "php Win32.zip ..." file.
In the new folder, it pervadinkite to "PHP" (If it even more when you enter you will find one folder named "php ..." pervadinkite and in the "PHP", upload this directory to "C: \"

c) the MySQL
Unpack the file "mysql .... zip"
Log on to the newly created folder and run the file "setup.exe"
Select the installation type "Costume" (Install the full package, maybe things will take time; D)
MySQL install to "C: \ MySQL \"
?raðykite your data if you have MySQL.net account'à. If you do not, create.
MySQL Setup I

Leave everything as is, only you can change the number of connecting to the DB (for me a very nice number of 50, and, therefore, indicated in a)
If you use Lithuanian letters, select "Character Set" - utf8.
"Service Name" and select according to the MySQL version.
Create a "root" password.
Top of contents

3) Settings


a) Apache
Your pages will be achieved through the "C: \ Apache2 \ htdocs" if you want to change this, open the file "httpd.conf" in the "C: \ Apache2 \ conf \" (Open the program "Notepad")
Click "CTRL + F, type" DocumentRoot "and double-click" Find Next ". The line between '' brackets, enter the location where you store your pages (the change is not necessary). Do not forget that the "\" characters to be changed to "/".

b) PHP
Press the "CTR + F, type" DirectoryIndex "and double-click on" Find Next ". The end of a row enter "index.php"
At the bottom of the file, add two new lines

LoadModule php5_module C: / PHP/php5apache2.dll
AddType application / x-httpd-php. Php

Save and close the "httpd.conf" file.

Copy the "php.ini-recommended" file located in "C: \ PHP" to "C: \ Apache2 \" and it pervadinkite in the "php.ini"
Open the "php.ini" file.
In this case the comments are put into the symbol ";"
If the server to use only their own development, it is advisable to find a line that begins "display_errors = Off" and "Off" to "On". This will be a lot easier to know where the place you made a mistake scripto
About the libraries to read the PHP web site

c) II, MySQL
Click "CTRL + F" type "extension = php_mysql.dll", click "Find Next". A row at the beginning of nutrinkite "symbol
Save and close the php.ini file.

Open "C: \ PHP \" and then in the file "libmySQL.dll" upload to:
I) If you have Windows 2000, then to "C: \ WINNT \ system32"
II) If you have Windows XP, this is the "C: \ Windows \ system32"

Open "C: \ PHP \ ext \ and then in the" php_mysql.dll "upload to:" C: \ Apache2 \ "

d) phpMyAdmin
Unpack "phpMyAdmin ... case. Atsiradys? a new folder, if it is of the same name in the directory it pervadinkite "phpMyAdmin", if it does not go back and the new folder pervadinkite to "phpMyAdmin"
Folder "phpMyAdmin" which is a program file, upload to the "C: \ Apache2 \ htdocs", or to another folder you specified in paragraph 3.a.

e) The last working
From the "Tray" piešin?li? choose "Apache" (a circle with a pen, but inside the index), on the press the left mouse button, select "Apache2" and paspasukite "Restart"
Reloading time, should not encounter any problems. If you have, try to solve them yourself.
Top of contents


4) Inspection

a) Apache + PHP
3.a If nepakeit?te is nothing in the open "C: \ Apache2 \ htdocs" if it is changed, open the location.
Create a file "phpinfo.php" and type in "
Open your browser and visit your http://localhost/phpinfo.php

b) Apache + PHP + MySQL + phpMyAdmin
Open your browser and go to page http://localhost/phpMyAdmin/
If you operate without problems, then it's time to start mokintis HTML, PHP and MySQL.
Top of contents


6) Links


http://www.w3.org/ - WWW Consortium
http://www.apache.org/ - Apache
http://www.php.net/ - PHP
http://www.mysql.com/ - MySQL
http://www.phpmyadmin.net - phpMyAdmin

http://www.w3schools.com/ - a lot of information on the page creation.
http://www.php.net/download-docs.php - All about PHP (Si?skit?s Windows HTML Help "If you are using Windows OS, if any other, then" many HTML files)
http://dev.mysql.com/doc/ - MySQL Product documentation (best to use. "chm" files, but the MySQL Language Reference "is no longer such a thing)," MANUAL'? "can be found in" C: \ MySQL \ doc \ manual.html. "
http://www.phpmyadmin.net/documentation/ - phpMyAdmin documentation

Rate this Article:

Be the first to rate me.


* You must be logged in order to leave comments, please login or join us.

Comments

karand
karand said... on July 6th, 2009 at 2:19 PM
Score: 1 You have voted for this comment already. You have voted for this comment already.

Great content ,
For newbie this complex things practice tutorials ,my opinion install xampp .It’s contain all installation no need config php settings.



Bookmark and Share
Sign up for our email newsletter
Name:
Email: