欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

安装XAMPP时启动Apache失败解决方法 xampp-win32-1.8.3-1-VC11-installer 有大用 有大大用

Apache出现…… with PID 4解决办法

标题有限制,出现Port 80 in use by "Unable to open process" with PID 4解决办法!

方法/步骤

  1. 是系统的服务占用了80端口,所以要么结束系统服务,要么修改apache端口。

    PID4的服务是World Wide Web Publishing Service

    这里选择结束这个系统服务,运行services.msc,找到然后停止即可。


经验内容仅供参考,如果您需解决具体问题(尤其法律、医学等领域),建议您详细咨询相关领域专业人士。
举报作者声明:本篇经验系本人依照真实经历原创,未经许可,谢绝转载。

来自 https://jingyan.baidu.com/article/54b6b9c0d6a16d2d583b4790.html



我现在的XAMP版本是xampp-win32-1.8.3-1-VC11-installer下载

Apache启动提示
10:33:43  [Apache] Problem detected!
10:33:43  [Apache] Port 80 in use by "Unable to open process" with PID 4!
10:33:43  [Apache] Apache WILL NOT start without the configured ports free!
10:33:43  [Apache] You need to uninstall/disable/reconfigure the blocking application
10:33:43  [Apache] or reconfigure Apache and the Control Panel to listen on a different port
10:33:43  [Apache] Problem detected!
10:33:43  [Apache] Port 443 in use by ""C:\Program Files (x86)\VMware\VMware Workstation\vmware-hostd.exe" -u "C:\ProgramData\VMware\hostd\config.xml"" with PID 5728!
10:33:43  [Apache] Apache WILL NOT start without the configured ports free!
10:33:43  [Apache] You need to uninstall/disable/reconfigure the blocking application
10:33:43  [Apache] or reconfigure Apache and the Control Panel to listen on a different port
网上找了解决办法

系统提示80端口和443端口被占用,通过修改配置文件可以选择未被占用的端口:

1.在\ xampp\apache\conf目录下  ,打开httpd.conf,将里边的80端口全部改成一个未被占用的端口,比如8088
2.在 \ xampp\apache\conf\extra目录下 ,打开httpd-ssl.conf ,将文件里的443端口全部换成一个未被占用的端口,比如4431

(在 D:\xampp\apache\conf\  文件夹里面搜所有的 443  替换成 4431)

我试过了还是没有解决
后来发现在xampp根目录下有两个个文件properties.ini和xampp-control.ini
1、打开properties.ini,找到
[General]
installdir=D:\xampp
base_stack_name=XAMPP
base_stack_version=1.8.3-1
base_stack_platform=windows
require_root_privileges=1
[Apache]
apache_server_port=80
apache_server_ssl_port=443
apache_root_directory=/xampp/apache
apache_htdocs_directory=D:\xampp/htdocs
apache_domainname=127.0.0.1
apache_configuration_directory=D:\xampp/apache/conf
apache_unique_service_name=
[MySQL]
mysql_port=3306
mysql_host=localhost
mysql_root_directory=D:\xampp\mysql
mysql_binary_directory=D:\xampp\mysql\bin
mysql_data_directory=D:\xampp\mysql\data
mysql_arguments=-u root -P 3306
mysql_unique_service_name=
[PHP]
php_binary_directory=D:\xampp\php
php_configuration_directory=D:\xampp\php
红色标注部分设置了其实端口,依次修改成
apache_server_port=8088
apache_server_ssl_port=4431



1、打开xampp-control.ini,找到


[ServicePorts]
Apache=80
ApacheSSL=443
MySQL=3306
FileZilla=21
FileZillaAdmin=14147
Mercury1=25
Mercury2=79
Mercury3=105
Mercury4=106
Mercury5=110
Mercury6=143
Mercury7=2224
TomcatHTTP=8080
TomcatAJP=8009
Tomcat=8005


修改成 
Apache=8088
ApacheSSL=4431
重新启动,还是没搞定  ,我要疯了


安装XAMPP时启动Apache失败解决方法 <wbr>xampp-win32-1.8.3-1-VC11-installer

重新审视xampp管理界面
安装XAMPP时启动Apache失败解决方法 <wbr>xampp-win32-1.8.3-1-VC11-installer


1:打开config按钮
安装XAMPP时启动Apache失败解决方法 <wbr>xampp-win32-1.8.3-1-VC11-installer

2:代开service and port settings按钮
安装XAMPP时启动Apache失败解决方法 <wbr>xampp-win32-1.8.3-1-VC11-installer

发现改了那么多东西,端口号依然是80,443,郁闷啊
修改它。。。。
安装XAMPP时启动Apache失败解决方法 <wbr>xampp-win32-1.8.3-1-VC11-installer

修改成8088,4431


重新启动,搞定。不容易啊。


来自 http://blog.sina.com.cn/s/blog_542095870101hvq7.html

普通分类: