Zend Framework configuration in windows wamp Environment
1. Install WampServer
Download and install WAMPSERVER. In this example, install WAMPSERVER under C: \ wamp.
2. Install Zend Framework
Decompress \ library \ to C: \ wamp \ library in the Zend Framework compressed package (there is no library directory here, you must create one by yourself)
3. Enable rewrite module
Edit httpd. conf.
-Edit the C: \ wamp \ bin \ apache \ Apache2.2.10 \ conf \ httpd. conf file. Or
-Right-click the WampServer icon in the tray --> Apache --> httpd. conf
# LoadModule rewrite_module modules/mod_rewrite.so
Remove '#' and change it:
LoadModule rewrite_module modules/mod_rewrite.so
4. PHP library settings
-Edit C: \ wamp \ bin \ php \ php5.2.7 \ php. ini, or
-Right-click the WampServer icon in the tray --> PHP --> php. ini
; Windows: "\ path1; \ path2"
; Include_path = ".; c: \ php \ shortdes"
Remove ';' and add the Zend Framework package installation path:
Windows: "\ path1; \ path2" (the semicolon is not removed here)
Include_path = ".; c: \ php \ shortdes; c: \ wamp \ library ;"
5. Create a quickstart Project
In the Windows Start Menu, click Run and enter "CMD" to open the DOS command window,
Run the command: "set path = % path %; C: \ wamp \ bin \ php \ php5.2.9-2;" register php.exe path
Run the command "cd C: \ wamp \ www" to switch the current path to the www path of the WAMP website document.
Run the command: "ZendStudio \ ZendFramework-1.8.1 \ bin \ zf. bat create project quickstart
Change the zf. bat path to your own path. Then, zf. bat will create a quickstart project: "Creating project at C:/wamp/www/quickstart"
6. Test the sample project
Open your browser and browse "http: // localhost/quickstart/public/". You can see "Welcome to the Zend Framework! . (If not, restart wmap)
Author "Bob"