You are on page 1of 6

STEPS TO INSTALL XAMPP

1. Download and Install Visual Studio 2008 redistributable package because XAMPP will
need this to run properly.
2. Download and Install XAMPP for PHP 5.X for Windows- Be sure to select the proper
version of PHP as there are many choices.
1. In your web browser, go to https://www.apachefriends.org/index.html

2. Click on the download link for XAMPP.

3. When prompted for the download, click "Save" and wait for your download to finish.
Open CD or DVD drive from My Computer. Install the program, and click on "Run."

4. Accept the default settings. A command will open and offer an initial installation prompt.
Just hit the Enter key, and accept the default settings. To simplify installation, just hit
ENTER when prompted on the command line. You can always change settings, by editing
the configuration files later.

When your installation is complete, exit the command window by typing x on the command
line.
5. Start the XAMPP Control Panel.

6. Start the Apache and MySQL components. You can also start the other components, if
you plan to use them.

7. Verify the Apache install, by clicking on the Apache administrative link in the Control Panel.

8. Verify the MySQL installation, by clicking on the MySQL administrative link in the
XAMPP Control Panel.
NOTE: If you find another service is already running on port 80 on your computer, read our
instructions on how to change XAMPP to use a different port like 8080.
TESTING YOUR XAMPP INSTALLATION
In your web browser, go to http://localhost. You should see the start page of XAMPP:

LAB FILES
1. Download the class files,
2. Create a folder in htdocs named "Webucator" and extract your class files in that folder.

SETTING THE MYSQL PASSWORD ON WINDOWS


The PHP files use "pwdpwd" for the MySQL root password, while the default password is NO
password.
1. Click Admin next to MySQL on the XAMPP Control Panel to bring up the
phpMyAdmin.
2. Choose the mysql database on the left.
3. Then choose the SQL tab on the top and run the following statement:
Update user set Password=PASSWORD ('pwdpwd') where User = 'root';
4. You also need to update line 21 of the xampp/phpMyAdmin/config.inc.php file with the
new password (pwdpwd).
Note: In order to connect to the myPHPAdmin center, you must do these steps in order.
INSTALLING NORTHWIND DATABASE USING XAMPP
NOTE: you should download the class files above before following these instructions, as it
contains the Northwinds Database file(s).
1. To install the Northwind database used in class, click Admin next to MySQL on the
XAMPP Control Panel to bring up the phpMyAdmin. That should take you
to http://localhost/phpmyadmin.
2. If it asks you to login, the username is root and the password is pwdpwd.
3. On that page, click on the Import link under the Localhost heading. After, it should say
"Importing into the current server".
4. Browse to the Northwind-MySQL.sql file in your class files
(c:\xampp\htdocs\Webucator).
5. Click the Go button on the bottom left of the page.
6. You should get a Success message and Northwind should be added to your list of
Databases.

RECOMMENDED CODE EDITOR


• Visual Studio Code (Download, Install, and Set up)
• While you may use a different editor or IDE, Visual Studio Code is an excellent IDE to
learn to code on. It provides a nice balance of power and simplicity and it is available on
Windows and Mac.

DESIGNATE YOUR TESTING SERVER IN DREAMWEAVER


NOTE: The following only applies if you are using Dreamweaver. If you are not, please ignore
this section.
1. Go to Site, then New Site.
2. In the Site Setup dialog, fill in the Site Name (e.g., PHP) and browse to the Local Site
Folder (e.g., c:\XAMPP\htdocs\Webucator\ClassFiles\ on Windows or
\Applications\XAMPP\xamppfiles\htdocs\ on a Mac).
3. Choose the Servers tab.
4. At the bottom of the box on the right, click +.
5. On the Basic tab, provide a Server Name, set Connect using to Local/Network, ensure the
Server Folder matches the local site folder you specified in step 2, and set the Web URL
to http://localhost/Webucator/ClassFiles/.
6. Click the Advanced button.
7. In the Server Model field, select PHP MySQL.
8. Click Save. The server should appear in the table on the Servers tab.
9. Make sure that both the Remote and Testing checkboxes are checked.
10. Click Save.
TESTING PHP FILES
All your class files should be located in C:\xampp\htdocs\Webucator\ClassFiles\
To test any of the class files in your browser, say
C:\xampp\htdocs\Webucator\ClassFiles\PHPBasics\Demos\HelloWorld.php, you can use 1 of 2
methods:
1. Method 1:
1. Go
to http://localhost/Webucator/ClassFiles/PHPBasics/Demos/HelloWorld.php in
your web browser.
2. Follow the same pattern to view all other class files; basically the
C:\xampp\htdocs\ gets changed to http://localhost/
2. Method 2:
1. Go to http://localhost/Webucator/ClassFiles/ in your web browser.
2. Bookmark that page in your browser for easy access to it from now on.
3. From there, you can see all the lesson folders and drill down to any class file for
testing/viewing.

And that's it
Happy Windows XAMPPing!

Bibliography
HOW TO INSTALL XAMPP FOR WINDOWS
In-text: (wikiHow, 2018)

Your Bibliography: wikiHow. (2018). How to Install XAMPP for Windows. [online] Available at:
https://www.wikihow.com/Install-XAMPP-for-Windows [Accessed 27 Mar. 2018].

HOW TO INSTALL, START AND TEST XAMPP ON WINDOWS FOR INTRODUCTION TO PHP | WEBUCATOR
In-text: (Webucator, 2018)

Your Bibliography: Webucator. (2018). How to install, start and test XAMPP on Windows for Introduction to PHP | Webucator. [online]
Available at: https://www.webucator.com/how-to/how-install-start-test-xampp-on-windows-setup-of-introduction-php.cfm [Accessed 27 Mar.
2018].

You might also like