XMAPP Apache 异常处理

 

 

启动Apache

下午 12:14:52  [Apache]     Problem detected!
下午 12:14:52  [Apache]     Port 80 in use by "Unable to open process" with PID 4!
下午 12:14:52  [Apache]     Apache WILL NOT start without the configured ports free!
下午 12:14:52  [Apache]     You need to uninstall/disable/reconfigure the blocking application
下午 12:14:52  [Apache]     or reconfigure Apache and the Control Panel to listen on a different port

无法开启进程 端口被占用你需要卸载/关闭/重新配置应用程序块或者重置Apache Control Panel中的监听端口

 

解决方法: 关闭占用此端口的程序及服务  或   重新设置Apache端口

查看端口状态:cmd 进入控制台  netstat -ano

通过 services.msc  查看服务  有时候会发生端口被服务占用的情况  我们需要关闭服务

找到对应项双击 更改启动模式

 

一般占用了此端口的程序及服务都是我们要用到的所以我选择采用后面 重新设置Apache的端口

 

找到并打开修改 xampp根目录下的 properties.ini与xampp-control.ini 文件

修改端口号  properties.ini与xampp-control.ini 文件保持一致

难后在XAMPP中修改端口

在Apache 下的config 下的 httpd.conf文件修改端口

验证是否成功:点击admin

大功告成

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Apache2.4 Win64位 配置PHP: #----------------Fastcgi-------------------------------- LoadModule fcgid_module modules/mod_fcgid.so <IfModule mod_fcgid.c> FcgidMaxRequestsPerProcess 1000 FcgidMaxProcesses 15 FcgidIOTimeout 600 FcgidIdleTimeout 600 MaxRequestLen 104857600 </IfModule> #------------------------------------------------------- AddType text/html .php #fastcgi环境配置 <IfModule mod_fcgid.c> AddHandler fcgid-script .php FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000 FcgidInitialEnv PHPRC "F:/web/server/PHP" FcgidInitialEnv OPENSSL_CONF "F:/web/server/PHP/extras/openssl.cnf" FcgidWrapper "F:/web/server/PHP/php-cgi.exe" .php </IfModule> 备注: apache No input filespecified,今天是我们配置apache RewriteRule时出现这种问题,解决办法很简单如下 打开.htaccess 在RewriteRule 后面的index.php教程后面添加一个“?” 完整代码如下 .htaccess RewriteEngine on RewriteCond $1 !^(index.php|images|robots.txt) RewriteRule ^(.*)$ /index.php?/$1 [L] 如果是apache服务器出问题,看看是不是的Apache 把 .php 后缀的文件解析哪里有问题了。 Apache 将哪些后缀作为 PHP 解析。例如,让 Apache 把 .php 后缀的文件解析为PHP。可以将任何后缀的文件解析为 PHP,只要在以下语句中加入并用空格分开。这里以添加一个 .phtml 来示例。 AddType application/x-httpd-php .php .phtml 为了将 .phps教程作为 PHP 的源文件进行语法高亮显示,还可以加上: AddType application/x-httpd-php-source .phps 用通常的过程启动 Apache(必须完全停止 Apache 再重新启动,而不是用 HUP 或者USR1 信号使 Apache 重新加载)。 调试: httpd.exe -w -n "Apache2.4" -k start (引号中为你的apache服务名) module: http://www.apachelounge.com/download/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值