Local test solution for PHP environment not functioning correctly
Source: Internet
Author: User
KeywordsExecute run resolve
PHP, a nested abbreviated name, is the abbreviation for the English Hypertext Preprocessing language (Php:hypertext preprocessor). PHP is an HTML embedded language, PHP and Microsoft's ASP somewhat similar, is a server-side embedded HTML document script language, language style has similar to C language, is now widely used by many web programmers. PHP's unique syntax blends C, Java, Perl, and PHP from innovative syntax. It can execute dynamic Web pages faster than CGI or Perl.
&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Dynamic pages made with PHP compared to other programming languages, PHP embeds programs into HTML documents and executes more efficiently than CGI that completely generates HTML tags; php executes on the server side compared to scripting language JavaScript, which is also embedded in HTML documents. Take full advantage of the performance of the server; the PHP execution engine also hosts the PHP programs that users frequently visit in memory, and other users don't need to recompile the program once again, as long as they execute the code directly in memory, which is one of the most efficient embodiments of PHP. PHP has a very powerful function, all of the CGI or JavaScript features PHP can be implemented, but also support almost all popular databases and operating systems.
Yesterday on the computer installed Dede local test environment, want to run a few PHP programs to play. The installation process is normal, installation is complete, start Apache, but how can not start. Always started, and inexplicably stopped automatically. I started--> run--> input services.msc into the "service (local)", where manually started, or did not succeed, give a warning box. Tip: The Apache2.2 service on the local computer is started and stopped. Some services automatically stop if they have nothing to do, such as the Performance Logs and Alerts service. I don't know what that means. Went to Google for a while.
The finished solution is published as follows:
Right-click on the Desktop Network Neighborhood--> Click Properties--> Open the Networking window--> on the local Area Connection Right-click Properties--> Open the Local Area Connection Properties dialog box--> under the General tab, this connection uses the following items (o): Double-click Internet Protocol (TCP/IP)--> to open the Internet Protocol (TCP/IP) Properties dialog box--> Click the "Advanced (V) ..." button on the right leg--> to open the Advanced TCP/IP Settings dialog box--> Click the WINS tab--> to select Disable NetBIOS (s) on TCP/IP. --> always click "OK" button.
These two days do not know why Apache startup when there are always problems, find a lot of methods or not, depressed for several days.
Always prompt when you manually start Apache: The Apache service on the local computer is started and stopped, and some services stop automatically if they have nothing to do, such as the log and alert service.
Today finally solved the problem, the heart more comfortable.
The workaround is as follows:
Select in Network connection properties
TCP/IP Properties--> Advanced-->wins Label---> Below are options for enabling LMHOSTS queries and NetBIOS
Instead, you can immediately see the Apache Process CPU drop quickly (no more attempts to open the Subprocess) in Task Manager
It's been tested for a while.
It might still have something to do with Tcpip.sys's file.
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.