Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>In earlier versions of EasyPHP there is a BAT file that does the PEAR installation steps for you...</p> <p><code>C:\Program Files (x86)\EasyPHP-5.3.6.0\php\go-pear.bat</code></p> <p>It also has most of the file-paths preconfigured, so you don't really need to change anything.</p> <hr> <p><strong>UPDATE:</strong><br> So EasyPHP 5.3.8 and 5.3.9 don't seem to have this BAT file, so these are the steps I needed to take to get the PEAR library installed.</p> <ul> <li><p>Rename <br><code>\Program Files (x86)\EasyPHP-5.3.9\php\php539x120203095725\php.ini</code> <br>to <code>php.ini.disabled</code><br> This is because I found the local ini file caused lots of extension errors. I don't think this file is used by Apache, so you can probably leave it disabled.</p></li> <li><p>Add two folders to your Windows <code>PATH</code>.<br> (Press <code>Win+Pause</code> to open System Settings > Advanced System Settings > Environment Variables > System Variables > Double-click Path.)<br> Keep the existing folders there, but add another two, separated by semi-colons <code>;</code></p> <ul> <li>Your <code>php.exe</code> folder. On my machine this was: <code>c:\Program Files (x86)\EasyPHP-5.3.9\php\php539x120203095725</code></li> <li>The location you would like to install PEAR. I used <code>D:\Dev\PEAR</code><br> <br></li> </ul></li> <li><p>Download <a href="http://pear.php.net/go-pear.phar" rel="noreferrer">http://pear.php.net/go-pear.phar</a></p></li> <li><p>Shift + Right-Click the folder you downloaded <code>go-pear.phar</code> to > Open command window here</p></li> <li><p>Type <code>php go-pear.phar</code></p></li> <li><p>Press enter to install system-wide PEAR (the default)</p></li> <li><p>Type 1 to change the installation base. I chose <code>D:\Dev\PEAR</code>. The other settings should be OK to leave as default. Press enter again (twice) when prompted.</p></li> <li><p>Run the REG file that was just created. You can type <code>D:\Dev\PEAR\PEAR_ENV.reg</code> and click yes when prompted.</p></li> <li><p>Check that you have the latest version by typing:</p> <pre><code>pear channel-update pear.php.net pear upgrade </code></pre></li> <li><p>Ensure your web-apps can use the PEAR library, by editing <code>EasyPHP-5.3.9\conf_files\php.ini</code> and uncommenting the <code>include_path</code> directive and adding your PEAR path to the end. <em>Note that you have to use PEAR/pear.</em> Example:</p> <pre><code>include_path = ".;${path}\php\includes;d:\Dev\PEAR\pear" </code></pre> <p>EasyPHP will automatically restart Apache for you.</p></li> </ul> <p>You can then proceed to install other modules. For example, phpUnit is installed by typing:</p> <pre><code>pear config-set auto_discover 1 pear install pear.phpunit.de/PHPUnit </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload