Press "Enter" to skip to content

Month: October 2011

PHP: PHP Programming on Windows using JetBrains PhpStorm and local PHP

Here’s some steps which may help somebody else install PHP on their Windows machine to run alongside JetBrain’s PhpStorm for PHPUnit testing Download Windows PHP from . I selected PHP 5.3.8 ‘s VC9 x86 Thread Safe (2011-Aug-23 12:01:10) Installer. Install, with no web server configurations, to C:\Program Files (x86)\PHP Download the appropriate APC module from to match your PHP version. I picked: Copy the enclosed php_apc.dll from that .zip file to C:\program files\x86\PHP\ext Download the appropriate XDebug module from to match your PHP version. I picked: Save the file to c:\program files\x96\PHP\ext (I had to save it as c:\users\richyc and then, from my administrator command prompt (see below) do “cp c:\users\richyc\php_xdebug-2.1.2-5.3-vc9.dll.dll “c:\program files (x86)\php\ext”) Start a command prompt, cmd.exe, with administration rights (Windows->Search->cmd.exe right click and then “Run as administrator”) In the command prompt, enter the following: cd “c:\program files (x86)\php\pear” php go-pear.phar Are you install a system-wide PEAR or a local copy? system Accept all defaults pear upgrade pear pear config-set auto_discover 1 pecl channel-update pecl config-set php_suffix .exe pecl install channel:// pear install channel:// channel:// pear/XML_RPC2 pear install phpunit/DbUnit phpunit/PHPUnit_Selenium phpunit/PHPUnit_Story phpunit/PHP_Invoker echo extension = php_apc.dll >> ../php.ini echo zend_extension =…