Saturday, November 8, 2014

Install PHP 5.6 on Win 8.1 x64

Install PHP 5.6 on Win 8.1 x64


Following the instructions here http://windows.php.net/download/

I downloaded the VC11 x86 Thread Safe (32-bit), even though I'm on 64-bit Win 8.1

The 64-bit is experimental and oh well, I don't need PHP to do super crazy number crunching anyway.

Installation instructions

  • Create dir C:\dev\php
  • Extract the zip contents into that directory
  • Add C:\dev\php to the system environment path
  • copy C:\dev\php\php.ini-development to C:\dev\php\php.ini

Set Time Zone

  • edit C:\dev\php\php.ini
  • Add this line:
    date.timezone = America/Los_Angeles

Change the time zone to match whatever yours is.  This example works for PST in the US.  To see all supported time zones go to http://php.net/manual/en/timezones.php

Get SSL working:

  • edit C:\dev\php\php.ini
  • Uncomment this line:
    ;extension=php_openssl.dll
  • And change the line to read this:
    extension=C:\dev\php\ext\php_openssl.dll

Enable CURL:

  • edit C:\dev\php\php.ini
  • Uncomment this line:
    ;extension=php_curl.dll
  • And change the line to read this:
    extension=C:\dev\php\ext\php_curl.dll

Enable XSL (for PHPDoc):

  • edit C:\dev\php\php.ini
  • Uncomment this line:
    ;extension=php_xsl.dll
  • And change the line to read this:
    extension=C:\dev\php\ext\php_xsl.dll

Install XDebug:

  • Download from here:
    http://xdebug.org/download.php
    • Make sure you pick the one that matches the version of PHP you installed.
    • For example I got "PHP 5.6 VC11 TS (32 bit)"
  • Windows will tell you this type of file is not safe.  Duh.  Save it anyway
    • Save it to C:\dev\php\ext
  • edit C:\dev\php\php.ini
    • THIS IS NOT AN ORDINARY EXTENSION
    • Add it by adding this line at the bottom:
      zend_extension="C:\dev\php\ext\php_xdebug-2.2.5-5.6-vc11.dll"
    • Of course make sure the filename matches the one you downloaded.

Install Composer


Download Composer, it should work fine now:

Thanks to:

http://php.net/manual/en/openssl.installation.php Alan 3 years ago added some great tips on how to do this very thing.

22 comments:

  1. The latest version of PHP is more advanced than before version. I can use the expected features in the current version.
    Regards:
    Best PHP training in chennai
    PHP Training

    ReplyDelete
  2. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here



    Best Hadoop Training Institute in chennai

    ReplyDelete
  3. Thanks you for sharing this unique useful information content with us. Really awesome work. keep on blogging
    Click here:
    angularjs training in chennai
    Click here:
    angularjs training in velarchery

    ReplyDelete
  4. Thanks Admin for sharing such a useful post, I hope it’s useful to many individuals for developing their skill to get good career.
    Click here:
    Microsoft azure training in btm
    Click here:
    Microsoft azure training in rajajinagar

    ReplyDelete
  5. You got an extremely helpful website I actually have been here reading for regarding an hour. I’m an initiate and your success is incredibly a lot of a concept on behalf of me.
    click here
    Selenium Training in Chennai
    |
    Selenium Training in Bangalore

    ReplyDelete
  6. The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.
    Devops training in sholinganallur

    ReplyDelete
  7. Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us and I never get bored while reading your article because, they are becomes a more and more interesting from the starting lines until the end.

    best rpa training in chennai |
    rpa training in chennai |
    rpa training in bangalore
    rpa training in pune | rpa online training

    ReplyDelete
  8. Thanks for splitting your comprehension with us. It’s really useful to me & I hope it helps the people who in need of this vital information. 
    java training in chennai | java training in bangalore

    java interview questions and answers | core java interview questions and answers

    ReplyDelete
  9. I wish to show thanks to you just for bailing me out of this particular trouble. As a result of checking through the net and meeting techniques that were not productive, I thought my life was done.
    safety course in chennai

    ReplyDelete
  10. I am commenting to let you know what a terrific experience my daughter enjoyed reading through your web page.
    iosh course in chennai

    ReplyDelete
  11. Informative post indeed, I’ve being in and out reading posts regularly and I see alot of engaging people sharing things and majority of the shared information is very valuable and so, here’s my fine read.
    click here android saga com
    click here app download
    click here arrow
    click here alternatives
    click here anchor text

    ReplyDelete
  12. Subscription boxes are a type of boxes which are delivered to the regular customers in order to build goodwill of the brand. They are also a part of the product distribution strategy. As a woman, you should subscribe to these boxes to bless yourself with a new and astonishing box of happiness each month. visit mysubscriptionsboxes

    ReplyDelete
  13. Good Post! , it was so good to read and useful to improve my knowledge as an updated one, keep blogging. After seeing your article I want to say that also a well-written article with some very good information which is very useful for the readers....thanks for sharing it and do share more posts like this.
    AWS Online Training
    Online AWS Certification Training

    ReplyDelete