This tutorial will show you step-by-step how to install:
- Apache 2
- PHP 5
- MySQL 5
- phpMyAdmin
Installing Apache:
Today we will be installing Apache version 2.2.11. Follow the steps carefully.- Go to web site and download "apache_2.2.11-win32-x86-openssl-0.9.8i.msi" to your desktop.
- Double click "apache_2.2.11-win32-x86-openssl-0.9.8i.msi", and if prompted, click "run".
- An installation wizard will appear:
Click "Next".
- The next page contains the terms of agreement. Select "I accept", and click "Next".
- Read about the Apache Server, and click "Next"
- The next screen will ask you for specific server information. Enter the values seen below:
Click "Next".
- On the next screen, select "Typical Installation" and click "Next".
- Click "Next".
- Click "Install".
- Open up Internet Explorer and type in "http://localhost". If you see a page that says "It works!" then the Apache server has been installed successfully.
NOTE: Apache is installed by default in your "C:\Program Files\Apache Software Foundation\Apache2.2" directory. Please change path as "C:\Apache2.2"
Installing PHP:
- Go to web site and download the "php-5.3.0-Win32-VC9-x86.msi"
- Double click php-5.3.0-Win32-VC9-x86.msi", and if prompted, click "run". Change install directory "C:\PHP5", Select web server apache 2.2x Module,
- After complete installation Open up your Apache configuration file ("C:\Apache2.2\conf\httpd.conf") in notepad and add these seven lines below to the bottom of the "LoadModule" section:
ScriptAlias /php/ "C:/php5/"
Action application/x-httpd-php "C:/php5/php-cgi.exe"
PHPIniDir "C:/php5/"
LoadModule php5_module "C:/php5/php5apache2_2.dll"
AddType application/x-httpd-php .php
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
4. Restart your Apache Server for the changes to take effect: Start > All Programs > Apache HTTP Server 2.2 > Control Apache Server > Restart
5. Open up Internet Explorer and type in: http://localhost/info.php. If your browser takes you to a page that looks like this, then PHP has been installed successfully!
Installing MYSQL:
Next we will be installing MySQL version 5. Follow the steps carefully.- Go to website and download the "mysql-5.0.45-win32.exe" to your desktop.
- Once "972_mysql-essential-5.0.45-win32.zip" has finished downloading, you can extract it using WinZIP or a similiar program.
- Once extracted, double click on the "Setup.exe" file. An installation wizard will appear.
Click "Next".
- Select "Typical" Installation and click "Next".
- Click "Install". (Be patient, this can take up to several minutes).
- The next screen will ask you to "Sign Up". Select "Skip Sign-Up" for now.
- The next screen will tell you that the installation wizard is complete. Make sure that the "Configure the MySQL Server now" field is checked before clicking "Finish".
- The MySQL Server Instance Configuration Wizard should appear. Click "Next".
- Select "Detailed Configuration" and click "Next".
- Select "Developer Machine" and click "Next".
- Select "Multifunctional Database" and click "Next".
- Click "Next".
- Select "Decision Support (DSS)/OLAP" and click "Next".
- Select "Multifunctional Database" and click "Next".
- Make sure "Enable TCP/IP Networking" is checked, the Port Number is set to "3306", and "Enable Strict Mode" is checked. Click "Next".
- Select "Standard Character Set" and click "Next".
- Check "Install As Windows Service", set the Service Name to "MySQL", and check "Launch the MySQL Server automatically". Make sure that the "Include Bin Directory in Windows Path" is NOT checked. Click "Next".
- On the next screen, check the box that says "Modify Security Settings". Enter a password for the default "root" account, and confirm the password in the box below. Do NOT check the boxes "Enable root access from remote machines" or "Create An Anonymous Account". Click "Next".
- Click "Execute". (This may take a few minutes. Be patient).
- Click "Finish".
- To test if MySQL was installed correct, go to: Start > All Programs > MySQL > MySQL Server 5.0 > MySQL Command Line Client. The MySQL Command Line Client will appear:
- It will ask you for a password. Enter the password you created in step 18. (If you enter an incorrect password MySQL will automatically close the command line)
- Next, type in the commands shown below: (shown in blue)
If you don't get any errors, and it returns the information shown above, then MySQL has been successfully installed! Next we will need to configure PHP to work with MySQL.
Installing phpMyAdmin:
- Go to website and download "english.zip" under the phpMyAdmin 3.2.1 section to your desktop.
- Create a new folder called "phpmyadmin" in your "htdocs" directory. Extract the contents of the "phpMyAdmin-3.2.1-english.zip" ZIP file here. Your C:\Apache2.2\htdocs\phpmyadmin".
- then edit Config.sample.inc.php as config.inc.php
- Now Change DirectoryIndex module at httpd.conf
4. phpMyAdmin has now been successfully installed! To use it, open up Internet Explorer and type in "http://localhost/phpmyadmin". This will bring you to the main phpMyAdmin page. If you have any questions, refer to the phpMyAdmin website or the "Documentation.html" file in the /phpMyAdmin/ directory.
0 comments:
Post a Comment