SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    Non-Member
    Join Date
    May 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can I run PHP locally on my PC?

    Can I run PHP locally on my PC?

  2. #2
    SitePoint Mentor bronze trophy
    John_Betong's Avatar
    Join Date
    Aug 2005
    Location
    City of Angels
    Posts
    1,834
    Mentioned
    73 Post(s)
    Tagged
    6 Thread(s)
    Hi James and welcome to the forum.

    As far as running PHP locally on your PC is concerned the answer is maybe

    If you are running an Apple Mac, Windows or Linux then search for WAMP or XAMPP both are free and not only allow PHP but also MySQL databases.

    Why would you like to run PHP on your computer?
    Learn how to be ready for The New Move to Discourse

    How to make Make Money Now with a *NEW* look

    Be sure to congratulate Patche on earning Member of the Month for July 2014

  3. #3
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,151
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    Vagrant is the way to go.

    http://docs.vagrantup.com/v2/getting-started/

    Once you follow those install instructions the below is a sitepoint article discussing using puphpet to create vagrant config files to easily setup a lamp environment on the vm using vagrant.

    http://www.sitepoint.com/build-virtu...asily-puphpet/
    The only code I hate more than my own is everyone else's.

  4. #4
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,606
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    I've used XAMPP for the past several years to set up sandbox environments, since it's basically a one-click install to get up and running. However, Vagrant does look interesting.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  5. #5
    SitePoint Addict bronze trophy mawburn's Avatar
    Join Date
    Apr 2014
    Posts
    213
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    On a Windows machine, I highly suggest XAMPP over other options like WAMP or self install.

  6. #6
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,151
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    The problem with using XAMPP is that that more often than not projects require other languages such as; ruby or node js. In some cases you are also left with UNIX scripts that no one has created a windows counterpart for either. Setting up everything is much easier in a *NIX environment where is it relatively painless to install just about anything regardless of how large a project becomes or dependencies are added. Vagrant is well worth the time to learn. I've been stuck on XAMPP using windows for just about all my career and it finally nice to have a local environment where installing anything is easy. Not to mention having an option to closely replicate a production server locally. Also leveraging puppet to easily install specific versions of software considering that can be tricky using apt-get or the other *NIX equivalents. I would go as far to say Vagrant + Virtual Box + Puppet + PupHpet is the best *new technology stack for local environments. I will never be installing XAMPP again.
    The only code I hate more than my own is everyone else's.

  7. #7
    SitePoint Zealot bronze trophy xMog's Avatar
    Join Date
    Mar 2011
    Posts
    145
    Mentioned
    3 Post(s)
    Tagged
    1 Thread(s)
    If you're new to programming and everything around computers, then you could try with WAMP like other suggested (if you are on Windows). If you're familiar with Linux, you should check out vagrant / virtual box / puphpet.

  8. #8
    SitePoint Member PhoenixWS's Avatar
    Join Date
    May 2014
    Location
    UK
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im currently using WAMP on a windows 7 based computer. Easy to install and get running.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •