This course will become read-only in the near future. Tell us at community.p2pu.org if that is a problem.

Installing PHP


You have two options for using PHP:

  • Download and install it yourself
  • Use a server that already has it

To save the hassle, and room on your hard drive, you can use a free web host. Search for one now!

If you chose to use it yourself, here are some helpful links.

Download PHP
Download PHP Now!

Download MySQL Database (For storing user info. Good to have, incase you want to learn more than just PHP)
 MySQL Link

Download Apache Server
Apache Download Link

Refer to PHP.net's install & config manual

Task Discussion


  • Daniel S   April 9, 2013, 1:31 a.m.

    In my experience, working with PHP is complicated by the need to run a webserver to test it on.  Quite a challenge for a newbie to coding.  
    I have used a nice little webserver tool for a while called Server2Go. It is freeware, runs quite light and can even be copied to a USB drive if you want to move it around. 

    To test your PHP code, just place the .php file into the htdocs folder inside S2Go, click the .exe file and away you go.

    Hope this helps some of you out there,

    Daniel S

  • Eenvincible   Jan. 15, 2013, 2 p.m.

    I have a tutorial on how to easily install all three components at once:

    http://simpledeveloper.wordpress.com/2013/01/13/programming-with-php-setting-up-the-camp/

    I hope you find this helpful!

  • Wasp   Aug. 4, 2012, 4:34 a.m.

    Is anyone using Netbeans for PHP? 

  • bpeterhartman   Aug. 8, 2012, 2:57 p.m.
    In Reply To:   Wasp   Aug. 4, 2012, 4:34 a.m.

    My fiance uses netbeans a lot. Mostly for her Javascript but i think the PHP too.

  • Oki Onome O.   Nov. 25, 2012, 5:06 p.m.
    In Reply To:   Wasp   Aug. 4, 2012, 4:34 a.m.
    Yes, I'm using netbean. I think it is great
  • Josemon Maliakal   July 18, 2012, 12:33 a.m.

    I have been using UBuntu 12.04 a LInux based os, in debian LInux variants you can use the following command to install php from command line 

     

    sudo apt-get install php5

    and to run php files you will be needing apache server and mysql databse. for that use the following commands

     

    sudo apt-get install apache2 

     

    sudo apt-get install mysql-server

     

    And for running apache server use the command below 

     

    sudo /etc/init.d/apache2  start
  • Anonym   Feb. 15, 2013, 11:42 p.m.
    In Reply To:   Josemon Maliakal   July 18, 2012, 12:33 a.m.

    Nice! I look forward to learning how to use Linux for web development on my virtual box once I upgrade my computer.

     

    Me and Ol' Nelly go way back but... it's time.

  • Valentina   May 25, 2013, 3:26 p.m.
    In Reply To:   Josemon Maliakal   July 18, 2012, 12:33 a.m.

    Thanks, you saved me a lot of time googling smiley