Install Zend framework in Apache

Source: Internet
Author: User
Tags zend framework

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. 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/
  2. 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"
  3. 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
  4. 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.so

    The above is the basic configuration of Zend framework. The path of the Zend framework project to be configured is as follows: 

  5. 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"
  6. 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"
  7. Restart Apache

Then enter localhost in the browser to view the running page of the Zend frame project.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.