search
HomeBackend DevelopmentPHP Tutorialapache安装后运行正常,为什么在此服务下网页打不开

先把我的配置和apache的错误分析说下,最后就是请各位看下我遗漏了什么地方了,帮我解决这个问题 
1:配置:win2003+mysql+php+iis+apache  机器上还安装了.net3.5+mssql
   杀毒的软件只有卡巴(其实我已经停了,并退出了)
   apache的端口配置: Listen 80             iis的80端口一直是停用的
                  目录: DocumentRoot "d:/wamp/www/"

几个月前我是手动配置的有点问题,也出现了网页打不开,网页一直是在加载中,后来我把360safe给卸了,讯雷也给卸了,卡巴给停了,就可以了
现在是停了卸了也不行,就换了wampserver2.0,但是还是不行,所以我这里就判断问题是出在apache上了,如不对,请指出

2:继续分析
   

netstat -ano|findstr 80
             查看80端口的进程,如下:

TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       4768
TCP    127.0.0.1:80           127.0.0.1:2193         ESTABLISHED     4768
TCP    127.0.0.1:2193         127.0.0.1:80           ESTABLISHED     5172
TCP    127.0.0.1:30523        0.0.0.0:0              LISTENING       1804

tasklist /fi "PID eq 4768"
             查看4768进程执行的程序

映像名称                       PID 会话名              会话#       内存使用
========================= ======== ================ =========== ============
httpd.exe                    4768 Console                    0     14,796 K

到这里应该是没有错的,我看了任务管理器里的进程是对的,有两个httpd.exe进程,这个是apache特有的两个进程,没有问题的

到了这里我怎的找不出是什么问题了,请各位帮忙,谢谢


回复讨论(解决方案)

windows防火墙的规则有没有允许80端口通过,或者是apache的httpd.exe程序通过?

CunningBoy
防火墙关了,杀毒的软件全退了。。。这个忘记在上面说了。

卸载Apache,重装试试。
问题很奇怪

重新安装apache,要不你把所有的LAMP都重新在安装一下吧。

试过.html的文件吗?看下 .html的能否打开

iis 和 Apache 能同时使用吗?

应该是顿口被占了

把Apache端口改成82试试

iis 和 Apache 能同时使用吗?

应该是顿口被占了

把Apache端口改成82试试


你可以再DOS下启动一下Apache 

看输出什么错误

打不开的原因,好像就是你的服务器被战用了,其它的服务器的端口也是80的。你需要做的是将其它一切有可能的服务器关掉。然后重启。      

IIS和Apached都是服务器哦!!!

IIS和Apache共存是没有问题的,只要其中的应用端口不冲突。
迅雷开着的话有可能出这种问题,现在都卸了应该不是迅雷的问题;系统自带的防火墙关闭没有?
可以给Apache设置其他的端口试试看。
实在不行,就装个2008Server,装个PHP的插件IIS就可以直接运行PHP了,既然在Windows下,就用IIS吧。

用.html的网页一直都是在加载中。。。防火墙都关了,悲剧的不行了

现在我都卸了,改用php+iis+mysql了,不用Apache,以后再解决这个问题吧。

用.html的网页一直都是在加载中。。。防火墙都关了,悲剧的不行了

现在我都卸了,改用php+iis+mysql了,不用Apache,以后再解决这个问题吧。

?,就这样放弃了。

iis跟apache是重叠的,把iis卸掉,启动apache,查看mysql数据库跟apache服务器的服务(控制面板/管理工具/服务)有没有打开。

端口被占用了吧

打不开的原因,好像就是你的服务器被战用了,其它的服务器的端口也是80的。你需要做的是将其它一切有可能的服务器关掉。然后重启。
++++++++++++

应该是80端口被其他程序占用了.

http://www.newsmth.net/pc/pccon.php?id=7204&nid=377140&order=&tid=0

iis+apache?
同样的东西为什么都要安装?建议楼主把所有环境都卸载以后重头开始重新安装,建议你安装xampp

skype有可能会占用80端口。。。。不知道楼主用skype了没?

w7系统有iis功能冲突,关闭iis就可以了。

apache打不开怎么办windows7系统

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
The Continued Use of PHP: Reasons for Its EnduranceThe Continued Use of PHP: Reasons for Its EnduranceApr 19, 2025 am 12:23 AM

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.

PHP and Python: Exploring Their Similarities and DifferencesPHP and Python: Exploring Their Similarities and DifferencesApr 19, 2025 am 12:21 AM

PHP and Python are both high-level programming languages ​​that are widely used in web development, data processing and automation tasks. 1.PHP is often used to build dynamic websites and content management systems, while Python is often used to build web frameworks and data science. 2.PHP uses echo to output content, Python uses print. 3. Both support object-oriented programming, but the syntax and keywords are different. 4. PHP supports weak type conversion, while Python is more stringent. 5. PHP performance optimization includes using OPcache and asynchronous programming, while Python uses cProfile and asynchronous programming.

PHP and Python: Different Paradigms ExplainedPHP and Python: Different Paradigms ExplainedApr 18, 2025 am 12:26 AM

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 and Python: A Deep Dive into Their HistoryPHP and Python: A Deep Dive into Their HistoryApr 18, 2025 am 12:25 AM

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.

Choosing Between PHP and Python: A GuideChoosing Between PHP and Python: A GuideApr 18, 2025 am 12:24 AM

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 and Frameworks: Modernizing the LanguagePHP and Frameworks: Modernizing the LanguageApr 18, 2025 am 12:14 AM

PHP remains important in the modernization process because it supports a large number of websites and applications and adapts to development needs through frameworks. 1.PHP7 improves performance and introduces new features. 2. Modern frameworks such as Laravel, Symfony and CodeIgniter simplify development and improve code quality. 3. Performance optimization and best practices further improve application efficiency.

PHP's Impact: Web Development and BeyondPHP's Impact: Web Development and BeyondApr 18, 2025 am 12:10 AM

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

How does PHP type hinting work, including scalar types, return types, union types, and nullable types?How does PHP type hinting work, including scalar types, return types, union types, and nullable types?Apr 17, 2025 am 12:25 AM

PHP type prompts to improve code quality and readability. 1) Scalar type tips: Since PHP7.0, basic data types are allowed to be specified in function parameters, such as int, float, etc. 2) Return type prompt: Ensure the consistency of the function return value type. 3) Union type prompt: Since PHP8.0, multiple types are allowed to be specified in function parameters or return values. 4) Nullable type prompt: Allows to include null values ​​and handle functions that may return null values.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.