Environment apache2.2 + Zend framework 1.10
Before proceeding to the following steps, make sure that PHP and Apache have been installed successfully.
Zend framework does not need to be installed. After decompression, you can add something to the environment variables. The following lists the steps to be done:
-
- 1. Download the Zend framework and decompress it to a certain location. If Zend studio has been installed on the machine, Zend studio contains the Zend framework. Take Zend studio 7.1.2 installed in the Directory D:/program file as an example. Its Zend framework is in D:/program files/Zend studio-7.1.2/plugins/org. zend. PHP. framework. resource_7.1.1.v20100207-1700/resources/ZendFramework-1/
-
- Modify PHP's PHP. ini file, find its "include_path", and change it to the following:
Export de_path = ".; D:/program files/Zend studio-7.1.2/plugins/org. Zend. php. Framework. resource_7.1.1.v20100207-1700/resources/ZendFramework-1/library"
-
- Add the bin path of Zend framework to the system environment variable path.
D:/program files/Zend studio-7.1.2/plugins/org. Zend. php. Framework. resource_7.1.1.v20100207-1700/resources/ZendFramework-1/bin
- Modify the Apache configuration file httpd. conf and find the following line.
# Loadmodule rewrite_module modules/mod_rewrite.so
Remove the previous # as shown below
Loadmodule rewrite_module modules/mod_rewrite.soThe above is the basic configuration of Zend framework. The path of the Zend framework project to be configured is as follows:
-
- Modify the DocumentRoot value to point to the public directory of the zendframework project. The project name here is XXX. For example:
DocumentRoot "D:/program files/Apache Software Foundation/apache2.2/htdocs" changed
DocumentRoot "D:/project/php_wp/XXX/Public"
-
- Modify the following <directory "D:/program files/Apache Software Foundation/apache2.2/htdocs">
<Directory "D:/project/php_wp/XXX/Public">
At the same time, modify the content in this directory label to "AllowOverride all"
-
- Restart Apache
Then enter localhost in the browser to view the running page of the Zend frame project.