Well first of all I want to say this is for Windows Users but you can get some points even you on Linux and Mac OS cause the basic procedure is same though some times I specify the Windows terms.!
1) First of all Download the XAMPP and Install it on your computer
http://ignum.dl.sourceforge.net/project/xampp/XAMPP%20Windows/1.7.3/xampp-win32-1.7.3.exe
2) restart the computer if necessary.
3) go to start->all programs->XAMPP Control Panel Application
and run it ,
if you on Windows Vista and 7 (64bit will be applied the same procedure)
Start-> just type XAMPP on "search program and files" (search TEXT box)
4) then tick (check) SVC on both Apache and SQL if you want FileZilla which is used to upload files to your server through FTP protocol since you run this program on your own machine you can simply drag and drop files into that SAMPP installed directory but if you work on Networked computer and the XAMPP files installed on another computer then you may need to enable FileZilla as well also I assume you already know how to build a network and configure its settings since it is not relative to this topic I just ignored it.
5) then press on Start if you want to configure them just click on Admin button (in case the MySQL doesn't work cause it may happen then go to XAMLL installed directory and run mysqlstart.exe so it will start the MySQL manually)
5 II)after you done open your browser and type
127.0.0.1 or localhost on your computer to see it was installed properly
remember sometimes it will raise and error if you ignore the
http:// part also the Firefox browser raises and security warning if you add https:// prefix that means you intend to access to SSL protected site though you don't have actually a certificate to show so Firefox looks on that certificate and if doesn't found raise and warning so don't worry just proceed.!
Note if you installed FileZilla then you can also access to this address as well
ftp://127.0.0.1/
unless only!
http://127.0.0.1/ <- port 80
https://127.0.0.1/ <- SSL
6) to configure your server (it means your Local PC) type 127.0.0.1 or localhost and follow the simple interface which is the root to the entire Server (your PC)
7) now go to XAMPP installed directory and find the htdocs folder
and remember that's where you need to place your all files which need to be run on your local server and if you intend to run a .php file then you can't just simply double click and run it instead open the web browser and
type
http://127.0.0.1/yourfilename.php
if you have sub folders then place them in that htdocs folder so the name will go as
http://127.0.0.1/subfolder/yourfilename.php
DON'T EVER SPECIFY THE HTDOCS FOLDER'S NAME
it will show your content in that file
and remember if you use php codes in a file keep the extension as .php
cause unless it won't work.!
To learn PHP
http://www.w3schools.com/php/php_intro.asp
http://www.homeandlearn.co.uk/php/php.htm
No Reference!
by Core
2010/06/16 .
Last edited:
