Loading video...
Setting Up Your Development Environment
- A development environment is a setup that allows a programmer to write, test, and debug software.
- Having a PHP local development environment is when your test webserver runs on the same machine where you do your PHP coding.
- In this course, we will use a local development environment that runs on a Windows 7 machine using the Firefox web browser, the XAMPP software distribution, and the PSPad text editor for Windows.
- XAMPP is a software distribution that bundles PHP and the Apache webserver, along with several other pieces of software, that facilitates the setup and configuration of a PHP-enabled webserver.
- PHP version 5.3.5 will be used in this course.
- 127.0.0.1 is known as the 'loopback’ IP address, and it is used to refer to a locally running webserver. localhost is the hostname mapped to the loopback IP address.
- The term Document Root refers to the root folder on a hard drive where files accessible via a webserver are stored. Only files stored in the document root and its subfolders can be served by a webserver.
- For XAMPP, the document root is named htdocs , and it is located in the root XAMPP installation folder. http://localhost/ maps directly to this folder in the default XAMPP setup.
- Here are links to some additional resources if encounter problems setting up your PHP development environment:
- Course software download links:
Setting Up Your Development Environment
Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.


































1 answer
Tue Feb 7, 2012 3:14 AM
Post by Herve Gnidehoue on December 22, 2011
Can U please help for my development environment? The web resources are not very helpful. The Apache is running well but I don't think that the PHP is working. I am pretty sure there is a sort of configuration to be done, a file to be copied from one location to another as far as the PHP is concerned but I don't know how. I've tried several times but in vain.
4 answers
Wed Apr 18, 2012 11:44 PM
Post by anthony sparks on February 24, 2012
this video isnt going past 20:40. i tried running it on multiple browsers and it still wont buffer pas this point. What should i do?
0 answers
Post by Val S on April 15, 2012
Could you please post some instruction on how to set up the web environment for a mac OSX 10.6.x?
I installed xampp for mac but i'm unable to create new folders in the Applications-->XAMPP-->htdocs folder
0 answers
Post by Nitheesh Menon on May 8, 2012
Dear Mathew ,when ever i type firebug on add on search bar i am not getting the firebug 1.7.3 instaed i am getting these two fire bug auto completer 1.4.0 and flas firebug 3.4.2 which one u want me to install...?waiting for your reply
1 answer
Last reply by: Jonathan Bello
Tue May 8, 2012 9:47 PM
Post by Jonathan Bello on May 8, 2012
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
What should I do? I followed step by step from the video.
1 answer
Last reply by: Gowri Meenakshi
Thu May 10, 2012 10:34 AM
Post by Gowri Meenakshi on May 10, 2012
I have windows 7. After downloading zip , extracted to c:\Users\user1\xampp i was trying to run setup_xampp.bat file..lot of lines like
.\install\awk.exe: can't open file C:\Users\user1\xampp\apache\conf\extra\httpd-
perl-asp.conftemp
source line number 8
shown and when i check using xampp_control Apache server is not working.. localhost\ returns error.. Skype is not loaded. Help me..
1 answer
Last reply by: Matthew Boone
Wed May 23, 2012 2:29 PM
Post by Matthew Boone on May 23, 2012
Any reason I couldn't use dreamweaver instead of pspad?
0 answers
Post by Abdul Sidibe on June 2, 2012
I use mac. does the process apply with regarding to unzipping of xampp?
0 answers
Post by Tomas Dale on July 6, 2012
I have the IIS installed in the machine and when I try to open apache it opens IIS, how can I have both Web Servers running ?
0 answers
Post by Charles Georg on July 31, 2012
Hello, Im having a problem getting the XAMPP splash page to come up when I enter 127.0.0.1. Where do you get that information. Thanks
0 answers
Post by Elizabeth Etta on August 4, 2012
I would be grateful if this can be answered for me. I have written a basic hello world php code. However whenever I paste I run it on the browser it just prints my php code on the screen. I have followed the instructions to go into the http.conf file and I typed the instructions into the file given by matthew Machaj.
PHPIniDir "C:/Users/user1/xampp/php"
LoadModule php5_module "C:/Users/user1/xampp/php/php5apache2_2.dll"
AddHandler application/x-httpd-php .php
When I try to start the xampp control panel it runs and immediately stops
When I try to run xampp_start I get an error in the cmd prompt that opens up.
The error is like this module php_5 module is already loaded, skipping
Error line 513 of C:/Users/User1/xampp/apache/conf/httpd.conf
Only the first PHPInIDir directive honored per configuration tree- subsequent ones ignored
Any help will be greatly appreciated
0 answers
Post by yana gafouri on September 3, 2012
I have Mac OS, should I download XAMPP for Mac OS? Could you please provide specific for Mac OS instructions? Thank you. Yana
1 answer
Last reply by: Edward Harrison
Wed Oct 31, 2012 1:49 PM
Post by Edward Harrison on October 30, 2012
I am unable to view the Document root as:
http://localhost/intro2php/sample.html
It only works as:
C:/Users/MyName/xampp/htdocs/intro2php/sample.html
Why is this? It will be essential to know as part of learning PHP is understanding paths, etc.
0 answers
Post by Reginald Hairston on March 4 at 09:04:56 PM
Do you have a recommendation for a Mac text editor?