The steps below should allow you to install Zend Server CE & PEAR & PHPUnit so you have a stable development environment on your local PC. This installation has been tested on an Intel Core 2 Duo machine running Win 7 and an AMD Athlon X2 Dual machine running Vista. We installed everything in the “D:\WebServers\Zend\” folder.
Important: We had a lot of headaches putting these steps together. You might have problems that are not even present in this tutorial. We appreciate it if you send us any improvements or additional steps which ensure a smoother installation.
Step 1: Clean Up
Before we start:
a) Back up all your local projects & databases
b) Disable your antivirus & firewall
1.1. Uninstall your current local web server.If you already have Zend Server CE installed you can remove it like this: a) Go to Start->Programs->Zend Server and from there run the Uninstall option b) Go to Control Panel -> Remove Programs find the MySQL Server 5.1 program and uninstall it c) Delete the ZendServer folder with all its contents (or move it to another location on your hard disk, as a backup)
1.2. Go to Control Panel-> Administrative Tools-> Services and make sure there are no %apache% or %mysql% named services in the list. If there are please do your best to remove them.
1.3. RESTART your PC
1.4. Right click on MyComputer(right-click)->Properties->Advanced System Settings->Environment Variables and make sure that the “Path” environment variable contains no references to your previous web server. If it does remove them and RESTART your PC.
Step 2: Install Zend Server CE
2.1. If you are using Skype be careful, it uses ports 80 and 443 as well. You should disable that option in Skype http://www.mydigitallife.info/disable-skype-from-using-opening-and-listening-on-port-80-and-443-on-local-computer/
2.2. Download Zend Server from http://www.zend.com/en/products/server-ce/ and run the installer
2.3. Select “Custom Install” and check all options except the ones that are unchecked in the attached screen shot
2.4. Complete the steps available at http://localhost:10081/ZendServer/
2.5. After the installation is complete, go to D:\WebServers\Zend\ZendServer\etc\php.ini and set:
display_errors = On
display_startup_errors = On
Step 3: Install PEAR
3.1. Open this page in any browser http://pear.php.net/go-pear and save it as a PHP file in D:\WebServers\Zend\Apache2\htdocs\go-pear.php
3.2. Open a browser and go to http://localhost/go-pear.php
3.3. When installing PEAR make sure you set:
“1. Installation prefix ($prefix)” = “D:\WebServers\Zend\ZendServer\bin\”
3.4. Add the PEAR installation path (D:\WebServers\Zend\ZendServer\bin\PEAR) to your “Path” environment variable located in MyComputer(right-click)->Properties->Advanced System Settings->Environment Variables
3.5. Go to D:\WebServers\Zend\ZendServer\etc\php.ini and add the PEAR path to your include path
3.6. RESTART your PC
Step 4: Install PHPUnit
Before you start delete everything from C:\Users\YOUR_USER_NAME\AppData\Local\Temp\
4.1. Open a cmd window. You might need to Run As Administrator
4.2. Run each of the following commands SEPARATELY (and each only once!):
pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
4.3. Now run:
pear install phpunit/PHPUnit
Thanks for getting so far. We really look forward to your comments. Good luck with the installation process!