- Xampp For Visual Studio 2010
- Visual Studio Community
- Xampp Visual Studio 2016
- Conectar Xampp Con Visual Studio
This is old.
We now recommend using MAMP instead of XAMPP. See these instructions for setting up for our PHP classes.
XAMPP is a free distribution package that makes it easy to install Apache Web Server, PHP, PEAR, and MySQL. Before installing XAMPP, you should turn off any other web servers and instances of MySQL you have running on your Windows machine.
Installing XAMPP on Windows
- Download and Install Visual Studio 2008 redistributable package because XAMPP will need this to run properly.
- Download and Install XAMPP for PHP 5.X for Windows- Be sure to select the proper version of PHP as there are many choices.
- Allow the program to make changes to your machine.
- It is VERY important to install on the root of c:. If you don't, some functions of XAMPP may have restrictions that will force you to adjust the settings in your UAC, which isn't recommended.
- Double-click on the new XAMPP Control Desktop shortcut or Use the Search feature in Windows 10 to find the XAMPP Control App, which opens up the XAMPP Control Panel Application. There you will see a column of 'Start' buttons. Select the ones for MySQL and for Apache...you should now see a green 'Running' indicator
- 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:
- After downloading the class files, 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.
- Click Admin next to MySQL on the XAMPP Control Panel to bring up the phpMyAdmin.
- Choose the mysql database on the left.
- Then choose the SQL tab on the top and run the following statement:
- 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).
Xampp For Visual Studio 2010
- 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.
- If it asks you to login, the username is root and the password is pwdpwd.
- On that page, click on the Import link under the Localhost heading. After, it should say 'Importing into the current server'.
- Browse to the Northwind-MySQL.sql file in your class files (c:xampphtdocsWebucator).
- Click the Go button on the bottom left of the page.
- You should get a Success message and Northwind should be added to your list of Databases.
Recommended Code EditorVisual 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.
Testing PHP Files
All your class files should be located in C:xampphtdocsWebucatorClassFiles
To test any of the class files in your browser, say C:xampphtdocsWebucatorClassFilesPHPBasicsDemosHelloWorld.php, you can use 1 of 2 methods:
- Method 1:
- Go to http://localhost/Webucator/ClassFiles/PHPBasics/Demos/HelloWorld.php in your web browser.
- Follow the same pattern to view all other class files; basically the C:xampphtdocs gets changed to http://localhost/
- Method 2:
- Go to http://localhost/Webucator/ClassFiles/ in your web browser.
- Bookmark that page in your browser for easy access to it from now on.
- 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!
Installing XAMPP, VS Code + Environment Setup PHP Tutorial #1
Introduction to this Course
In this series of videos, you will learn Php from starting to the very end. If you are a beginner in the world of PHP programming or even unfamiliar with coding, these video tutorials will help you to develop and deploy your own website using Php.
Before getting our hands dirty with PHP programming, let's set up the tools and environment necessary for this session. The exact installation instructions are provided in the video but I will mention the tools we installed quickly for your future reference.
You will have to download a Microsoft code editor named Visual Studio Code (or any other source code editor of your choice). It is one of the best code editors that provides a very smooth programming experience. There are a lot of other features that make this editor one of the best, like colored keywords, files, and folder navigation panel, syntax autocomplete, etc. But since I have already made a video on VS Code I will not talk a lot about it here. The other thing I installed for working with PHP code is XAMPP. XAMPP is a free and easy to use Apache distribution containing Maria DB and PHP. I have used it through this Php Course. The XAMPP open source package has been designed to be incredibly easy to install and easy to use. Let's see how we can get these softwares quickly into our computers.
1. Go to the link https://code.visualstudio.com/download to download VS Code for your respective operating system and platform.
2. Open the downloaded setup file and install it. The installation process is pretty simple and self-explanatory.
Visual Studio Community
The next step is to install the XAMPP software. It provides interpreters for scripts written in the Php, along with server solutions.
1. Go to this link to download XAMPP according to your OS and platform.
2. Open the downloaded setup file. Follow the setup wizard and install XAMPP .
Xampp Visual Studio 2016
3. Run XAMPP after the installation. Start MySQL and Apache server by clicking Start in front of it. (This has been practically done and explained in the video)
Note: If you face any issue while starting the servers in step 3 regarding Port 80, make sure port 80 is not being used by any other application such as Skype. You can check the port usage stats in the Resource Monitor of the windows OS.
Conectar Xampp Con Visual Studio
Open web browser, type localhost/phpMyAdmin in the address bar, and hit enter. The phpMyAdmin page will open, proving that the installed softwares and other things are working right.