2014年6月22日 星期日

XAMPP 常見問題

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 port和 443 port 被占用,修改系統文件處理:

解決法1:

1.在\ xampp\apache\conf目錄下 ,打开httpd.conf,將80 port 改為未使用port 如 8088
2.在 \ xampp\apache\conf\extra目录下 ,打开httpd-ssl.conf ,將443 port 改為未使用port 如 4433



解決法2:
打開 XAMPP config-> service and port setting 
可設置


解決法3:
修改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





2. 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



沒有留言:

張貼留言