PHP development tool trilogy EpisodeII-ZendServer [500error

Source: Internet
Author: User
Tags php example server error log zend server
If you want to develop web.net, you need to install IIS +. NETFramework. If JSP is to be developed, install apache + tomcat. If PHP is to be developed, install apache + php, however, application development usually involves mysql. Therefore, there are many php programming environments integrated with the risk package, including mobile security Apach.

If you want to develop the web. net, you need to install IIS +. NET Framework. If JSP is to be developed, install apache + tomcat. If PHP is to be developed, install apache + php, however, application development usually involves mysql. Therefore, there are many php programming environments integrated with the risk package, including mobile security Apach.

If you want to develop the web. net, you need to install IIS +. NET Framework. If JSP is to be developed, install apache + tomcat. If PHP is to be developed, install apache + php, however, generally, application development also involves mysql. Therefore, there are many php programming environments integrated with a full set of packages, including manually installing Apache + php + mysql, or choose MAMP/Appserv/XAMPP, etc. However, this is an industry environment and is not a development environment. Therefore, we need Zend Server, let's see what he can help us.

2010/05 Zend Server is developed to version 5.0. If you only need to configure the environment, you can use the CE version.

I believe that many php developers, especially those who use notepad ++, are familiar with the debugging method for program development and will need the expected changes in advance, when you need to know the current information of the changes, DUMP the data to the dataset, for example, print $ a + $ B * $ c, if no matter how the result is, it is not as good as our latest data, the previous practice must be to print the three changes: $ a, $ B, and $ c, check whether it is correct. We recommend that you use the three function numbers in the example, or you want to know the current value of each change, and you have finished debugging like this.

Let's get started with Zend Server soon. Unfortunately, Zend Server was developed by foreigners. Unfortunately, it is better to install Zend Server on Windows OS in non-English languages, the setting cannot be used. It will display 500 million rows of memory, and we will discuss how to solve it later.

Note! There are many examples in this article, so it will take a long time to zoom in the picture.

STEP 1:

Upgrade Zend server 5.0 to the latest version on the official Zend website.

The CE version is a Community version, free of charge, but cannot use the debug function or accept support.

This is the same as appserv, but zend is one of the main companies in php zookeeper.

STEP 2:

Xing's security case

Because we want to install phpmyadmin, mysql, and other suites together, we want to choose Custom security.

Next, we want to work together on security. I am more worried than just checking all the connections that can be checked. (The suggestions should not be too worried, because the added security software communication must be implemented in the following regions)

I want to modify the Security token. I want to install it under C:/Zend.

Because there are no special requirements, the port will not be changed.

After waiting for a long time, I finally finished it (too worried, all done). I just checked both of them and confirmed it.

STEP 3:

Zookeeper's Zend Server 500 Internal Server Error has failedEventBook

When you are very happy to install the Zend server, the browser should be able to activate http: // localhost: 10081/ZendServer/this website, but it seems that Zend Server is not like this (I guess he hasn't seen zookeeper yet ~ What is Yi, I only know it !!~ ). I threw out a bunch of messages.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

It took me about four or five days to set up the Zend server, and I have read many technical documents, I didn't mention this issue either. I finally found this official bug prompt in Zend Form. However, the same problem is also mentioned in the blog of the former employee, however, when he put the security process in google docs and used iframe for inbound access, the result was that google could not find the token.

The cause of this bug is that the security team was able to handle internal vulnerabilities in non-English Windows operating systems. Therefore, the management interface of zend server cannot be modified.

Solution:

Find the zend server's Security category, and find etc/ZendEnablerConf. in this xml case, if you follow the security steps above and the same settings, then it should be in C: /zend/ZendServer/etc/ZendEnablerConf. this xml location opens this case (for Windows 7 users, please change the permission first)

It seems that there is no problem after this case is opened, but how can the start of xml be changed to a warning ~

We make the previous Parts Original

Then, restart apache (please go to the service administrator)

Back, big brother.

STEP 4:

After agreeing to the zend clause, set your password and grant permissions.

In this way, the Server part is set

Zend Studio Debug mode

Remember that we have previously installed Zend Studio. When we started Zend Studio, the following will automatically prompt us to find the Zend Server.

However, if the port is set to 80, it should be 10080. We should first change it to 80 port.

After modification, we can start a php project.

File-New-PHP project

If it is correct to log on to server security, the case should be directly set in the htdocs resource.

Next, we will create a new php file.

Next, we will introduce some sort routines. After the program is completed, we will press right-click in the program region-> Run As-> php web page

At this time, a conversation window should appear. Please confirm whether there is still 10080. If yes, this indicates that our server has not been set. Please reset it.

We are very pleased to confirm the calculation of the information.

However, if the result is too many, we need to debug the program. At this time, we will return to the program programming interface, you can click the top data area of the program at the end of the page, and then click two at the left corner, in the program programming environment region, press right button-> debug as-> php web page

At this time, a conversation window will pop out and ask if you want to enter the debug mode.

At this time, the program will stop at our inserted center, and there will be an additional change zone, we will remember all the changes and their shapes in our program's current release period, so we don't need to figure it out.

The Debug mode should be the best and most necessary function to use, but other ide components can also implement this function, for example, PhpED produced by NuSphere also has the Debug mode, which also includes the allocation and control of db. It is also a set of components that are not optimized, however, based on zend, a major company in php programming, zend will still be used at the moment, and the Zend Frameword framework will be used at the end, so...

Other important functions of zend server include:

Improve the reliability and security of PHP applications
Confirm deployment
Problems found before client calls
Quickly and accurately locate the root cause of the problem
Improve Application Performance
Working example column: unload the PHP example of a long running row

Of course, this is also a one-year update cost of $1195. If you only need to renew the php program, you can use the Zend Server CE version later, it is free of charge, but I do not know whether the Debug mode can be used.

In the end, this article is very long. If you have finished reading this article, please refer to your example.

Random Posts

  • Create Remoting written by Ausir using FLEX AS3 and ColdFusion
  • ZF in ∞ days-> day 5-> use Form to create a table named written by Ausir
  • IE 8 together, let the family stay together ...... Written by Ausir
  • Transparent raw beans-raw material package written by Cora
  • 「 Hello world! Haha !」 The first written by admin
  • Using FLEX-AS3 as the number of JAVA helloudfs written by Ausir
  • Spring and summer eyes ...... Eyeshadow DM design written by Cora
  • Using FLEX-AS3 as a JAVA 9-9 multiplication table written by Ausir
  • Article on guaranteed-performance: Creating an old shop-high-performance, dry-weight, and dirty data packets written by Cora
  • Article on the warranty subject: Sorry! Think of someone else ..... DM design written by Cora

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.