我已经在windows 7上安装了XAMPP,并尝试启动Apache和MySQL服务器。但这并没有奏效。然后,我尝试通过单击与Apache相同行的Config并选择httpd,将端口侦听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)SkypePhoneSkype.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)SkypePhoneSkype.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 FilesMySQLMySQL Server 5.1binmysqld" --defaults-file="D:Program FilesMySQLMySQL Server 5.1my.ini" MySQL
15:33:34 [mysql] Expected Path: d:xamppmysqlbinmysqld.exe --defaults-file=d:xamppmysqlbinmy.ini mysql
15:33:34 [mysql] Problem detected!
15:33:34 [mysql] Port 3306 in use by ""D:Program FilesMySQLMySQL Server 5.1binmysqld" --defaults-file="D:Program FilesMySQLMySQL Server 5.1my.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)SkypePhoneSkype.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)SkypePhoneSkype.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)SkypePhoneSkype.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)SkypePhoneSkype.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 FilesMySQLMySQL Server 5.1binmysqld" --defaults-file="D:Program FilesMySQLMySQL Server 5.1my.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...
我该怎么办?
对我来说,它似乎不像你实际上使用端口8080。Apache尝试使用端口80和443,这些端口已经被Skype阻止了。
无论""D:Program FilesMySQLMySQL Server 5.1binmysqld" --defaults-file="D:Program FilesMySQLMySQL Server 5.1my.ini" MySQL"
是什么,它阻塞了mysql的3306端口。
你应该杀死这些进程或者再次更改Apache和MySql的端口。对于Apache使用"config"按钮,然后编辑httpd.conf
文件。在该文件中,将行Listen 80
更改为Listen 8080
。之后,请确保保存您的更改。
如果你想使用它,MySql和端口3306也是一样的(这里是my.ini
)。