Php development and debugging environment Establishment

Source: Internet
Author: User
ArticleDirectory
    • Built on the server
    • Created in other directories

Download the wampserver installation in a simple way.

 

The following describes how to establish a development environment with good ide support.

 

MySQL and management tools

Mysql-essential-5.1.47-win32.msi

Navicat_premium [You can also use the famous phpMyAdmin, but it is a web version.ProgramNavicat is more convenient]

Zends erver

ZendServer-CE-php-5.3.2-5.0.2-Windows_x86.exe

[You can select MySql for this installation, but you need to download it online. Therefore, you can perform this independently in the previous step.]

 

After the installation is complete, the Zend \ zendserver \ etc \ zendenablerconf. xml file header "Success ?" Change to "<" and restart Apache

Enter http: // localhost: 10081, enter the required information, and configure it successfully. Here, you can visually manage the PHP extension module [some extensions are often required for existing projects, notes for first-time use]

Zend Studio

ZendStudio-7.2.0.exe

 

PHP manual Configuration:

Put PHP script php_manual_zh.rar to the agreed directory and start zendstudio

In window \ preferences \ PHP manual, set and writeCodeYou can refer to these descriptions

 

 

 

The project is created on the server.

The project is created under the Zend server directory $ \ Zend \ apache2 \ htdocs. You can see the effect and tracking in real time.

Created in other directories

The project is created in other directories, such as D: \ labs \ PHP \ workspaces \ zfdemo. The configuration method is as follows:

(1) Create ZF. conf In the Zend \ apache2 \ conf \ directory of Zend serverd.

 

Listen 88

Namevirtualhost *: 88

<Virtualhost *: 88>

DocumentRoot "D: \ labs \ PHP \ workspaces \ zfdemo \ public"

<Directory "D: \ labs \ PHP \ workspaces \ zfdemo">

AllowOverride all

Allow from all

</Directory>

</Virtualhost>

 

In httpd. conf: add

Include CONF/ZF. conf

 

(2) Restart Apache

 

(3) visit http: // localhost: 88/to view the page

You can add environment settings to The. htaccess file.

Setenv application_env Development

 

This is consistent with Application \ configs \ application. ini.

 

(4) Error debugging

If any problem occurs in the middle, view the following log files, which contain detailed causes.

Apache2 \ logs \ error. Log

Zendserver \ logs \ php_error.log

 

 

References Based on Zend framework

Pro Zend framework techniques-Build a full CMS projectworkflow

http://digitaluscms.com/digitalus_1.8.1.zip

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.