Home > Article > Backend Development > Setting up zendframework project environment under windows (configuration through command line)_PHP tutorial
1. First, you must make sure your PHP version is no less than 5.1.4, but it is strongly recommended to use 5.2.3 or higher
2. Make sure your php.ini has the following modules enabled:
extension=php_pdo.dll
extension=php_pdo_mysql.dll
3. Open Apache’s configuration file httpd.conf and make sure you have enabled the following modules:
LoadModule rewrite_module modules/mod_rewrite.so
Continue to search for the httpd.conf file. If AllowOverride is None, be sure to change None to all
4. Set environment variables:
For example, the bin directory of my zend tool:
;F:ZendFrameworkbin
If "php.exe command does not exist..." appears, put the php.exe directory into the environment variable:
;D:softwarewampbinphpphp5.3.10
5. Ok, let’s test:
Enter zf show version to display version information.
Enter zf create project f:webzendframe to create the zendframe project in my php environment
6. Copy the zend file under the library of the zend framework you downloaded to the library directory of the project.
7. Congratulations, enter http://127.0.0.1/zendframe/public in the address bar to display the interface, indicating that the zend framework configuration is successful!