Dra*_*vic 16 php apache xampp port
我正在使用XAMPPS来托管我的机器上的PHP文件.我最近安装了XAMPP,但由于PID 4 - NT内核和系统正在使用端口80,我无法启动Apache服务.
我知道通过使用不同的端口(例如httpd.conf中的端口8080等更改)将针对此问题找到解决方法.但是我需要通过PID 4进程释放端口80并将其分配给Apache服务.我过去已经这样做了,但却忘记了当时的决议步骤.请帮我修理一下
这是我在启动Apache时遇到的错误
`11:19:52 AM [Apache] Error: Apache shutdown unexpectedly.`
`11:19:52 AM [Apache] This may be due to a blocked port, missing dependencies,`
`11:19:52 AM [Apache] improper privileges, a crash, or a shutdown by another method.`
`11:19:52 AM [Apache] Press the Logs button to view error logs and check`
`11:19:52 AM [Apache] the Windows Event Viewer for more clues`
`11:19:52 AM [Apache] If you need more help, copy and post this`
`11:19:52 AM [Apache] entire log window on the forums`
Run Code Online (Sandbox Code Playgroud)
从apache错误日志文件中记录:
[Wed Jul 03 00:54:17.004882 2013] [mpm_winnt:notice] [pid 248:tid 240] AH00354: Child: Starting 150 worker threads.
[Wed Jul 03 01:17:37.485351 2013] [mpm_winnt:notice] [pid 4200:tid 228] AH00428: Parent: child process 248 exited with status 1073807364 -- Restarting.
[Wed Jul 03 08:51:45.875976 2013] [ssl:warn] [pid 400:tid 228] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Wed Jul 03 08:51:46.188476 2013] [core:warn] [pid 400:tid 228] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Jul 03 08:51:46.844726 2013] [ssl:warn] [pid 400:tid 228] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Wed Jul 03 08:51:49.047851 2013] [mpm_winnt:notice] [pid 400:tid 228] AH00455: Apache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.16 configured -- resuming normal operations
[Wed Jul 03 08:51:49.047851 2013] [mpm_winnt:notice] [pid 400:tid 228] AH00456: Server built: Feb 23 2013 13:07:34
[Wed Jul 03 08:51:49.047851 2013] [core:notice] [pid 400:tid 228] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache
[Wed Jul 03 08:51:49.063476 2013] [mpm_winnt:notice] [pid 400:tid 228] AH00418: Parent: Created child process 5384
[Wed Jul 03 08:51:50.579101 2013] [ssl:warn] [pid 5384:tid 240] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Wed Jul 03 08:51:51.579101 2013] [ssl:warn] [pid 5384:tid 240] AH01909: RSA certificate configured for www.example.com:443 does NOT include an ID which matches the server name
[Wed Jul 03 08:51:51.750976 2013] [mpm_winnt:notice] [pid 5384:tid 240] AH00354: Child: Starting 150 worker threads.
Run Code Online (Sandbox Code Playgroud)
请帮我.
注意:我没有IIS,WEB客户端,全球范围的WEB服务.
chi*_*apa 77
在您的XAMPP控制面板上,在apache旁边,选择"Config"选项并选择第一个文件(httpd.conf):
在那里,寻找"监听"线(您可以使用记事本中的查找工具)并且必须有一行说明"收听80".注意:还有其他一些行"listen"但它们应该被注释(以#开头),你需要更改的那个就是说"听80".现在将其更改为"Listen 1337".
立即启动Apache.
如果错误存在,那是因为还有另一个端口已经在使用中.因此,再次选择配置选项(在xampp控制面板中的apache旁边)并选择第二个选项(httpd-ssl.conf):
在那里,寻找"Listen 443"这一行并将其改为"Listen 7331".
启动apache,它现在应该正常工作.
请遵循以下
选择"Apache(httpd.conf)"并在下面找到此代码并将其更改为以下代码:
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 0.0.0.0:80
#Listen [::]:80
Listen 80
#
# Dynamic Shared Object (DSO) Support
Run Code Online (Sandbox Code Playgroud)保存(ctrl + s)
之后,返回xampp控制面板并再次单击其配置
选择"Apache(httpd-ssl.conf)"在下面找到此代码并再次更改:
# Note: Configurations that use IPv6 but not IPv4-mapped addresses need two
# Listen directives: "Listen [::]:443" and "Listen 0.0.0.0:443"
#
#Listen 0.0.0.0:443
#Listen [::]:443
Listen 443
Run Code Online (Sandbox Code Playgroud)保存(ctrl + s)
然后,单击"配置"(注意:在netstat上方)并单击"服务和端口设置",然后保存它们.
最后,转到"控制面板" - >"程序和功能" - >"打开或关闭Windows".
取消选中"Internet信息服务",然后单击"确定".
只需等待它,您的计算机/笔记本电脑将自动重启并尝试再次打开您的xampp控制面板,然后启动您的Apache.
| 归档时间: |
|
| 查看次数: |
107667 次 |
| 最近记录: |