winxp[sp2]下Apache无法正常使用实战得出的解决办法
最近准备搞几个PHP的网站,于是需要在自己的电脑里装个PHP的服务器,已经很久没碰PHP,apache,mysql这些东西了所以就偷个懒直接下在个套装软件叫appserv,它可以一次性的在你的机器中安装php,mysql,apache,zend,phpmyadmin软件,非常的方便,而且有多种组合方式,详细可以去他的网站去了解.因为很早以前就用过这个软件,都是象软件一样安装好就可以用了的,可这次确遇到了个*烦.我先是下载了
AppServ 2.5.3 这个版本.我的系统是win xp sp2 版本
# PHP 5.0.3
# Apache 2.0.52
# MySQL 4.1.8
# Zend Optimizer 2.5.7
# phpMyAdmin 2.6.1-rc2
安装好后发现硬盘灯狂闪,电脑变的非常的慢.根本无法正常使用.看进程发现有两个apache进程,有一个是时不时的跳出来占用大量的CPU资源,没办法只好强行停止.以为是apache2.0与XP系统冲突,就又下载了AppServ 2.4.3
# PHP 4.3.10
# Apache 1.3.33
# MySQL 4.1.8
# Zend Optimizer 2.5.7
# phpMyAdmin 2.6.1-rc2
安装之后发现apache根本无法启动. 查看log文件显示
error.log:
[Sat Aug 06 22:47:12 2005] [crit] (10022)提供了一个无效的参数。: setup_inherited_listeners: WSASocket failed to open the inherited socket.
于是google一下,找到了一篇文章 "Win[sp2]下Apache无法正常工作的解法办法"
http://blog.chinaunix.net/article.php?articleId=36486&blogId=8054 引用
Apache SP2 启动 CPU setup_inherited_listeners
系统:Windows[sp2]
-----------------------------------------------
软件:Apache 1.3*
现象:无法启动,在服务里启动报告 ”服务启动后被自动关闭....“
Errlog:
[Mon Jul 18 12:48:24 2005] [crit] (10022)提供了一个无效的参数。: setup_inherited_listeners: WSASocket failed to open the inherited socket.
-------------------------------------------------------------------------------------------------------------
软件:Apache 2.0.*
现象:能正常启动,但大量占用CPU,不释放内存,(由于一直尝试运行子进程,可在任务管理器里看到经常现两个apache进程)用127.0.0.1访问没反应
Errlog:
[Mon Jul 18 04:07:28 2005] [notice] Server built: Feb 10 2005 06:11:34

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

PHPhassignificantlyimpactedwebdevelopmentandextendsbeyondit.1)ItpowersmajorplatformslikeWordPressandexcelsindatabaseinteractions.2)PHP'sadaptabilityallowsittoscaleforlargeapplicationsusingframeworkslikeLaravel.3)Beyondweb,PHPisusedincommand-linescrip

What’s still popular is the ease of use, flexibility and a strong ecosystem. 1) Ease of use and simple syntax make it the first choice for beginners. 2) Closely integrated with web development, excellent interaction with HTTP requests and database. 3) The huge ecosystem provides a wealth of tools and libraries. 4) Active community and open source nature adapts them to new needs and technology trends.

IIS and PHP are compatible and are implemented through FastCGI. 1.IIS forwards the .php file request to the FastCGI module through the configuration file. 2. The FastCGI module starts the PHP process to process requests to improve performance and stability. 3. In actual applications, you need to pay attention to configuration details, error debugging and performance optimization.

Multiple calls to session_start() will result in warning messages and possible data overwrites. 1) PHP will issue a warning, prompting that the session has been started. 2) It may cause unexpected overwriting of session data. 3) Use session_status() to check the session status to avoid repeated calls.

NGINX and Apache each have their own advantages and disadvantages, and the choice should be based on specific needs. 1.NGINX is suitable for high concurrency scenarios because of its asynchronous non-blocking architecture. 2. Apache is suitable for low-concurrency scenarios that require complex configurations, because of its modular design.
