Configuration and creation steps of the MVCzendframework framework on apache: (1) download the latest zendframework library. (2) create: Method 1: Enter the binfile In the downloaded zendframework library. 2. Find the zf. bat file. 3. Open the zf. bat file, enter the cmd command window, and enter zf. batcreatproj.
Configuration method and creation steps of the MVC zend framework on apache: (1) download the latest zend framework library. (2) create: Method 1: Enter the binfile In the downloaded zend framework library. 2. Find the zf. bat file. 3. Open the zf. bat file, enter the cmd command window, and enter zf. bat creat proj.
Configuration method and creation steps of the MVC zend framework on apache:
(1) download the latest zend framework library.
(2) create:
Method 1:
1. Go to the binfile In the downloaded zend framework library.
2. Find the zf. bat file.
3. Open the zf. bat file and enter the cmd command window. Enter zf. bat creat project + the full path (custom) of the project to be created to generate a framework project.
4. Use the zend studio software to create an empty project named "hspzf.
5. Copy the framework project generated in step 1 to the project "hspzf.
Method 2:
Directly created in zend studio. However, due to version issues in the software, your libraries may not match the versions in the software, sometimes some file pathnames are difficult to solve when they are adjusted.
Tip: We recommend that you use method 1.
Configuration:
1. First in the php. in File
Extension = php_pdo_mysql.dll
Explanation: the PDO extension defines a lightweight and consistent interface for PHP to access the database. It provides a data access abstraction layer so that no matter what database is used, you can query and obtain data through consistent function execution. PDO is released with PHP5.1 and can also be used in the PECL extension of PHP5.0, and cannot run in the previous PHP version.
Remove the semicolon to enable this function.
2. Enable the rewrite function in apache
Open the apache file, find the httpd. conf file under the conf file name, and query the rewrite function in this file.
LoadModule rewrite_module modules/mod_rewrite.so
Remove the # sign before it to enable the rewrite function.
Enable the recognition. htaccess function,
Locate AllowOverride None and change None to All. (Remember to change everything)
3. Configure the Virtual Machine
If the development environment is customized:
Start the VM configuration in the httpd. conf file
# Configure Virtual hosts to start Virtual hosts
Include conf/extra/httpd-vhosts.conf remove the # Of this line to start.
Configure your own virtual machine:
Configure in the httpd-vhosts.conf in the extra file in the conf file
# Configure your own VM
ServerAdmin webmaster@dummy-host2.somenet.com
DocumentRoot "E:/Apache HTTP Server/htdocs/write your own project name/public"
ServerName myzf.com
DirectoryIndex index. php
Options FollowSymLinks
AllowOverride None
Order allow, deny
Allow from all
Add dns in C: \ Windows \ System32 \ drivers \ etc \ hosts
Your own IP ServerName
For example, 127.0.0.1myzf.com
4. Restart apache
5. http://myzf.com can be accessed on your computer
Success