Xampp:服务器证书不包含与服务器名称匹配的ID [英] Xampp : server certificate does NOT include an ID which matches the server name

查看:123
本文介绍了Xampp:服务器证书不包含与服务器名称匹配的ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的apache和mysql都正常,并且在xampp控制面板中运行.但是,当我尝试加载我的一个php页面时,出现了致命错误:

I had both apache and mysql ok and running in xampp control panel. But then when i tried to load one of my php pages i was getting a fatal error :

Call to undefined function mysql_connect(). 

在搜索此错误时,我遇到了一些答案.通常,人们建议在文件php.ini中将extension_dir ="./"更改为extension_dir ="C:\ php \ ext"并取消注释行; extension = php_mysql.dll.

Upon searching about this error i came across some answers. Mostly people suggested in the file php.ini to change extension_dir = "./" to extension_dir = "C:\php\ext" and uncomment the line ;extension=php_mysql.dll.

我尝试过,但是现在当我尝试重新启动apache时,我得到了

I tried that, but now when i try to restart apache i get

error:apache shutdown unexpectedly 

,并在日志中显示:

server certificate does NOT include an ID which matches the server name

有人知道我接下来要做什么吗?我已经花了数小时试图解决这个问题,但无济于事.您的帮助将不胜感激.

Does anybody know what i am suppose to do next? I have spent hours trying to solve this problem but to no avail. Your help will be appreciated.

推荐答案

我遇到了同样的问题(服务器证书不包含与服务器名称匹配的ID.我不知道根本原因是什么,但是我曾经能够使用XAMPP version 5.6-30进行修复.在此之前,我尝试了其他版本,例如71.7-4,但均未成功.可以使用

I was having the same problem (server certificate does NOT include an ID which matches the server name. I don't know what the root cause is but I was able to fix it with XAMPP version 5.6-30. Before that, I tried other versions like 7 and 1.7-4 with no success. That good version is available here.

这篇关于Xampp:服务器证书不包含与服务器名称匹配的ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆