title: Xampp : server certificate does NOT include an ID which matches the server name
body: <p>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 : </p>
  
  <pre><code>Call to undefined function mysql_connect(). 
  </code></pre>
  
  <p>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. </p>
  
  <p>I tried that, but now when i try to restart apache i get </p>
  
  <pre><code>error:apache shutdown unexpectedly 
  </code></pre>
  
  <p>and in the logs it shows:</p>
  
  <pre><code>server certificate does NOT include an ID which matches the server name
  </code></pre>
  
  <p>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.</p>