Friday, May 9, 2008

Setting up XAMPP - local php environment

Hello to all!

Today we are going to talk about how to set up a local PHP testing environment on your own computer using the server localhost or It is understood that PHP is installed on a server in order to parse PHP files and output into the browser, but how are you going to do that on your own computer where you have so many things running about?

Well, we'll use xampp, by Apache Friends, which is an apache package with MySQL community version, PHP, FTP support, and more. It supports many platforms: Windows, Mac, Linux, Solaris and more!

What's more? xampp is free!

Installing xampp will take awhile after you have selected the appropriate download for your platform. After installing, you will be able to access the server using http://localhost/, or add the port number if you use it, on your browser.

You will need to remember that other people that can connect to you can access your apache server using your IP address. You will need to set some of the security options available on the server mainpage.

To edit the files on the server, either you can use the ftp protocol, or you can access it via your local hard drive (for example on Windows, htdocs folder inside where xampp is installed).

And if you want to upgrade MySQL, just the version of MySQL from the official website, and install into where xampp is installed.

Well, signing off.
Sam Yong

NEXT UP: PHP IDE choosing guide

1 comment:

Brad said...

Hey Sam!

Good to see someone else likes xampp and sets it up at home!