xampp问题端口80或8080不起作用

时间:2015-07-24 12:45:11

标签: php mysql apache xampp port

我在Windows 7上安装了XAMPP并尝试启动Apache和MySQL服务器。它没有奏效。然后我尝试通过在与Apache相同的行上单击Config并选择httpd.config来更改端口listen 80以侦听8080,但即使这样也行不通。

当我启动Apache和MySQL时,它在控制台中说:

15:33:34  [main]    Initializing Control Panel
15:33:34  [main]    Windows Version: Windows 7 Home Premium SP1 64-bit
15:33:34  [main]    XAMPP Version: 5.6.11
15:33:34  [main]    Control Panel Version: 3.2.1  [ Compiled: May 7th 2013 ]
15:33:34  [main]    You are not running with administrator rights! This will work for
15:33:34  [main]    most application stuff but whenever you do something with services
15:33:34  [main]    there will be a security dialogue or things will break! So think 
15:33:34  [main]    about running this application with administrator rights!
15:33:34  [main]    XAMPP Installation Directory: "d:\xampp\"
15:33:34  [main]    Checking for prerequisites
15:33:34  [main]    All prerequisites found
15:33:34  [main]    Initializing Modules
15:33:34  [Apache]  Problem detected!
15:33:34  [Apache]  Port 80 in use by "D:\Program Files (x86)\Skype\Phone\Skype.exe" with PID 5028!
15:33:34  [Apache]  Apache WILL NOT start without the configured ports free!
15:33:34  [Apache]  You need to uninstall/disable/reconfigure the blocking application
15:33:34  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
15:33:34  [Apache]  Problem detected!
15:33:34  [Apache]  Port 443 in use by "D:\Program Files (x86)\Skype\Phone\Skype.exe" with PID 5028!
15:33:34  [Apache]  Apache WILL NOT start without the configured ports free!
15:33:34  [Apache]  You need to uninstall/disable/reconfigure the blocking application
15:33:34  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
15:33:34  [mysql]   MySQL Service detected with wrong path
15:33:34  [mysql]   Change XAMPP MySQL and Control Panel settings or
15:33:34  [mysql]   Uninstall/disable the other service manually first
15:33:34  [mysql]   Found Path: "D:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld" --defaults-file="D:\Program Files\MySQL\MySQL Server 5.1\my.ini" MySQL
15:33:34  [mysql]   Expected Path: d:\xampp\mysql\bin\mysqld.exe --defaults-file=d:\xampp\mysql\bin\my.ini mysql
15:33:34  [mysql]   Problem detected!
15:33:34  [mysql]   Port 3306 in use by ""D:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld" --defaults-file="D:\Program Files\MySQL\MySQL Server 5.1\my.ini" MySQL"!
15:33:34  [mysql]   MySQL WILL NOT start without the configured ports free!
15:33:34  [mysql]   You need to uninstall/disable/reconfigure the blocking application
15:33:34  [mysql]   or reconfigure MySQL and the Control Panel to listen on a different port
15:33:34  [main]    The Mercury module is disabled
15:33:34  [main]    The Tomcat module is disabled
15:33:34  [main]    Starting Check-Timer
15:33:34  [main]    Control Panel Ready
15:36:36  [Apache]  Problem detected!
15:36:36  [Apache]  Port 80 in use by "D:\Program Files (x86)\Skype\Phone\Skype.exe" with PID 5028!
15:36:36  [Apache]  Apache WILL NOT start without the configured ports free!
15:36:36  [Apache]  You need to uninstall/disable/reconfigure the blocking application
15:36:36  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
15:36:36  [Apache]  Problem detected!
15:36:36  [Apache]  Port 443 in use by "D:\Program Files (x86)\Skype\Phone\Skype.exe" with PID 5028!
15:36:36  [Apache]  Apache WILL NOT start without the configured ports free!
15:36:36  [Apache]  You need to uninstall/disable/reconfigure the blocking application
15:36:36  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
15:36:36  [Apache]  Attempting to start Apache app...
15:36:36  [Apache]  Problem detected!
15:36:36  [Apache]  Port 80 in use by "D:\Program Files (x86)\Skype\Phone\Skype.exe" with PID 5028!
15:36:36  [Apache]  Apache WILL NOT start without the configured ports free!
15:36:36  [Apache]  You need to uninstall/disable/reconfigure the blocking application
15:36:36  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
15:36:36  [Apache]  Problem detected!
15:36:36  [Apache]  Port 443 in use by "D:\Program Files (x86)\Skype\Phone\Skype.exe" with PID 5028!
15:36:36  [Apache]  Apache WILL NOT start without the configured ports free!
15:36:36  [Apache]  You need to uninstall/disable/reconfigure the blocking application
15:36:36  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
15:36:36  [Apache]  Attempting to start Apache app...
15:36:36  [Apache]  Status change detected: running
15:36:37  [Apache]  Status change detected: stopped
15:36:37  [Apache]  Error: Apache shutdown unexpectedly.
15:36:37  [Apache]  This may be due to a blocked port, missing dependencies, 
15:36:37  [Apache]  improper privileges, a crash, or a shutdown by another method.
15:36:37  [Apache]  Press the Logs button to view error logs and check
15:36:37  [Apache]  the Windows Event Viewer for more clues
15:36:37  [Apache]  If you need more help, copy and post this
15:36:37  [Apache]  entire log window on the forums
15:36:38  [mysql]   Problem detected!
15:36:38  [mysql]   Port 3306 in use by ""D:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld" --defaults-file="D:\Program Files\MySQL\MySQL Server 5.1\my.ini" MySQL"!
15:36:38  [mysql]   MySQL WILL NOT start without the configured ports free!
15:36:38  [mysql]   You need to uninstall/disable/reconfigure the blocking application
15:36:38  [mysql]   or reconfigure MySQL and the Control Panel to listen on a different port
15:36:38  [mysql]   Attempting to start MySQL service...

我该怎么办?

1 个答案:

答案 0 :(得分:3)

对我来说,似乎你实际上并没有使用端口8080.Apache尝试使用端口80和443,它们已被Skype阻止。

无论是""D:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld" --defaults-file="D:\Program Files\MySQL\MySQL Server 5.1\my.ini" MySQL",它都会阻止你的端口3306 for mysql。

您应该杀死这些进程或再次更改Apache和MySql的端口。对于Apache,请使用“config”按钮,然后编辑httpd.conf文件。在该文件中,将行Listen 80更改为Listen 8080。之后,请确保保存更改。

如果您想使用MySql和端口3306,则相同(此处为my.ini)。