Feed on
Posts
Comments

If you want to run PHP applications on a Windows machine you need Apache, MySQL and PHP. Downloading and configuring the three separate components can be time consuming, however there are some alternatives. Jon Lee Web Development recommends XAMPP
a small application that bundles the programs together for convenience.

I have not used XAMPP, instead using Easy PHP, a very similar package to XAMPP. Easyeasyphpv2_soon.gif PHP comes with a Windows installer which takes only a few minutes to install. Once installed you can access a simple console to start and stop Apache and MySQL:

easyphpconsole.png

Within the directory Easy PHP installs to is a sub directory titled “WWW”, within this directory you can unpack your test applications (blogs, CMS, E-Commerce etc).

Navigate to “http://localhost/yourApplication” and run the installation script as you would on a web-server.

Before doing this you will need to create a database and database user, for that you should use the MySQL Administrator, on which I will write a separate post.

Related Posts

  • Dont WAMP it LAMP it!!
  • MySQL Admin
  • Run a Blog On Your Local PC
  • NVU Free HTML Editor
  • RSS feed

    11 Comments

    Comment by Jon Lee

    Never seen EasyPHP before.. but it certainly looks easy! More straightforward than XAMPP but I still prefer XAMPP because it doesn’t require installation.

    (Comments wont nest below this level)
     
    Comment by SiteLogic

    Ill have to give XAMPP a go. You say it does not require installation, that implies you still have to install “AMP”?

    If that is the case, then Easy PHP is probably…. easier ;-) as the installation puts “AMP” on for you, i.e. one install deploys the whole platform.

    I am sure it has its limitations, I don’t know how difficult it is to add additional libraries…

    (Comments wont nest below this level)
    Comment by Jon Lee

    Nope, I mean you unzip it to a directory, fire up the program and it will run AMP. Stop running the program and AMP shuts off. So XAMPP includes everything you need to test your php scripts :)

     
     
    Comment by coach

    Thanks for the information. These two options are probably easier than using my linux test server. I still like using the linux box but will give these a go as well.

    (Comments wont nest below this level)
    Comment by SiteLogic

    Yeah Linux is definately the way to go if you know how to use it, simply because you are likely to host on linux…. carriage return characters etc are consistent, also, adding additional libraries to PHP is a lot easier…

     
     

    [...] few days ago I wrote a post on using Easy PHP to web applications such as blogs, E-commerce and CMS on your PC. The advantage of running these [...]

    (Comments wont nest below this level)
     
    Comment by HMTKSteve

    I have used this in the past but I still find it easier to use a real server. That server can either be on the internet or in another room of my house.

    (Comments wont nest below this level)
     
    Comment by SiteLogic

    It depends what you are doing, if you are just hacking around then running on localhost is a timesaver, no FTP required, unless you mean you are using a text editor on the remote…

    (Comments wont nest below this level)
     
    Comment by Web Design Media

    XAMPP, EasyPHP and WAMP are very interesting to use…and it saves much time to start development…However, I prefer to install Apache, MySQL and PHP separately (Either on Linux or Windows). This helps to have a better control on what you are doing. Sad to see that many web developers avoid doing this, and jump to easy solutions…nevermind, as far as the job is well done, it’s good!

    (Comments wont nest below this level)
    Comment by SiteLogic

    I used to use Apache / MySQL / PHP on Windows, but now I just use easy PHP. If I need “AMP” I use Linux. Easy PHP is ok for basic stuff…

    Comment by Web Design Media

    Afterall, PHP is better with linux :wink: :wink:

     
     
     

    Sorry, the comment form is closed at this time.