更正xampp

时间:2018-04-24 10:08:32

标签: mysql apache xampp

我是xampp的初学者。每次启动XAMPP控制面板时,我都会在日志框中看到错误列表。这是一个例子:

14:58:16  [main]    Initializing Control Panel
14:58:16  [main]    Windows Version: Windows 7 Professional SP1 64-bit
14:58:16  [main]    XAMPP Version: 7.1.16
14:58:16  [main]    Control Panel Version: 3.2.2  [ Compiled: Nov 12th 2015 ]
14:58:16  [main]    Running with Administrator rights - good!
14:58:16  [main]    XAMPP Installation Directory: "c:\program files (x86)\xampp\"
14:58:16  [main]    WARNING: Your install directory contains spaces.  This may break programs/scripts
14:58:16  [main]    WARNING: Your install directory contains special characters.  This may break programs/scripts
14:58:16  [main]    Checking for prerequisites
14:58:41  [main]    All prerequisites found
14:58:41  [main]    Initializing Modules
14:58:41  [Apache]  Problem detected!
14:58:41  [Apache]  Port 80 in use by "Unable to open process" with PID 4!
14:58:41  [Apache]  Apache WILL NOT start without the configured ports free!
14:58:41  [Apache]  You need to uninstall/disable/reconfigure the blocking application
14:58:41  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
14:58:41  [main]    The FileZilla module is disabled
14:58:41  [main]    The Mercury module is disabled
14:58:41  [main]    The Tomcat module is disabled
14:58:41  [main]    Enabling autostart for module "Apache"
14:58:41  [main]    Enabling autostart for module "MySQL"
14:58:41  [main]    Starting Check-Timer
14:58:41  [main]    Control Panel Ready
14:58:42  [Apache]  Autostart active: starting...
14:58:42  [Apache]  Problem detected!
14:58:42  [Apache]  Port 80 in use by "Unable to open process" with PID 4!
14:58:42  [Apache]  Apache WILL NOT start without the configured ports free!
14:58:42  [Apache]  You need to uninstall/disable/reconfigure the blocking application
14:58:42  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
14:58:42  [Apache]  Attempting to start Apache service...
14:58:42  [mysql]   Autostart active: starting...
14:58:42  [mysql]   Attempting to start MySQL service...
14:58:44  [mysql]   Status change detected: running
14:58:49  [mysql]   Status change detected: stopped
14:58:49  [mysql]   Error: MySQL shutdown unexpectedly.
14:58:49  [mysql]   This may be due to a blocked port, missing dependencies, 
14:58:49  [mysql]   improper privileges, a crash, or a shutdown by another method.
14:58:49  [mysql]   Press the Logs button to view error logs and check
14:58:49  [mysql]   the Windows Event Viewer for more clues
14:58:49  [mysql]   If you need more help, copy and post this
14:58:49  [mysql]   entire log window on the forums
14:59:22  [mysql]   Attempting to start MySQL service...
14:59:24  [mysql]   Status change detected: running
14:59:28  [mysql]   Status change detected: stopped
14:59:28  [mysql]   Error: MySQL shutdown unexpectedly.
14:59:28  [mysql]   This may be due to a blocked port, missing dependencies, 
14:59:28  [mysql]   improper privileges, a crash, or a shutdown by another method.
14:59:29  [mysql]   Press the Logs button to view error logs and check
14:59:29  [mysql]   the Windows Event Viewer for more clues
14:59:29  [mysql]   If you need more help, copy and post this
14:59:29  [mysql]   entire log window on the forums

我还附上了Apache和MySQL服务设置的截图: 有人可以帮助我识别和纠正这些错误。我应该重新安装Xampp吗?请回答。

1 个答案:

答案 0 :(得分:0)

正在使用的端口80"无法打开进程"与PID 4!

要更改端口号,请打开文件

  

[XAMPP安装文件夹] /apache/conf/httpd.conf

搜索字符串'Listen'和ServerName并更新端口号

或者关闭使用端口80的程序,您可以使用此命令检查

  

C:> netstat -a -b

通常是Skype ..