[mysql] error running apache after xampp install

I installed xampp on win7 and get this error when starting apache. I unchecked skype and nothing changes. How do I find what is using port 80? How do I fix this please. I dont have another server running.

update this is the error. I click on start and  get this problem
    Error: Apache shutdown unexpectedly.
11:27:19 PM  [Apache]   This may be due to a blocked port, missing dependencies, 
11:27:19 PM  [Apache]   improper privileges, a crash, or a shutdown by another method.
11:27:19 PM  [Apache]   Press the Logs button to view error logs and check
11:27:19 PM  [Apache]   the Windows Event Viewer for more clues
11:27:19 PM  [Apache]   If you need more help, copy and post this
11:27:19 PM  [Apache]   entire log window on the forums

The below link didnt help me

Why won't Apache start in XAMPP installation?

Here is the error log

[Sat Jun 07 22:36:53.823331 2014] [ssl:warn] [pid 6048:tid 236] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 07 22:36:54.084345 2014] [ssl:warn] [pid 6048:tid 236] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 07 22:36:55.240412 2014] [mpm_winnt:notice] [pid 6048:tid 236] AH00455: Apache/2.4.9 (Win32) OpenSSL/1.0.1g PHP/5.5.11 configured -- resuming normal operations
[Sat Jun 07 22:36:55.241412 2014] [mpm_winnt:notice] [pid 6048:tid 236] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:13:13
[Sat Jun 07 22:36:55.241412 2014] [core:notice] [pid 6048:tid 236] AH00094: Command line: 'E:\\xampp\\apache\\bin\\httpd.exe -d E:/xampp/apache'
[Sat Jun 07 22:36:55.339417 2014] [mpm_winnt:notice] [pid 6048:tid 236] AH00418: Parent: Created child process 1840
[Sat Jun 07 22:36:55.950452 2014] [ssl:warn] [pid 1840:tid 248] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 07 22:36:56.202467 2014] [ssl:warn] [pid 1840:tid 248] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 07 22:36:56.299472 2014] [mpm_winnt:notice] [pid 1840:tid 248] AH00354: Child: Starting 150 worker threads.

This question is related to mysql apache xampp

The answer is


www.example.com:443:0 server certificate does NOT include an ID which matches the server name

I was getting this error when trying to start Apache, there is no error with Apache. It's an dependency error on windows 8 - probably the same for 7. Just right click and run as Admin :)

If you're still getting an error check your Antivirus/Firewall is not blocking Xampp or port 443.


After changing main port from 80 to 8080 you have to change the config in XAMPP control panel as I show in the images:

1) enter image description here

2) enter image description here

3) enter image description here

Then restart the service and that's it !


I think killing the process which is uses that port is more easy to handle than changing the ports in config files. Here is how to do it in Windows. You can follow same procedure to Linux but different commands. Run command prompt as Administrator. Then type below command to find out all of processes using the port.

netstat -ano

There will be plenty of processes using various ports. So to get only port we need use findstr like below (here I use port 80)

netstat -ano | findstr 80

this will gave you result like this

TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       7964

Last number is the process ID of the process. so what we have to do is kill the process using PID we can use taskkill command for that.

taskkill /PID 7964 /F

Run your server again. This time it will be able to run. This can uses for Mysql server too.


I had the same problem, I solved changing the ports.

-> Clicked button Config front of Apache.
1) Select Apache (httpd.conf)
2) searched for this line: Listen 80
3) changed for this: Listen 8081
4) saved file
-> Click Config button front of Apache.
1) Select Apache (httpd-ssl.conf)
2) searched for this line: Listen 443
3) changed for this: Listen 444
4) saved file
I can run xammp from port 8081
http://localhost:8081/
You have to give port number you gave to enter the localhost
Hope this helps you to understand what is happening.


I got the same error when xampp was installed on windows 10.

www.example.com:443:0 server certificate does NOT include an ID which matches the server name

So I opened httpd-ssl.conf file in xampp folder and changed the following line

ServerName www.example.com:443

To

ServerName localhost

And the problem was fixed.


Examples related to mysql

Implement specialization in ER diagram How to post query parameters with Axios? PHP with MySQL 8.0+ error: The server requested authentication method unknown to the client Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver' phpMyAdmin - Error > Incorrect format parameter? Authentication plugin 'caching_sha2_password' is not supported How to resolve Unable to load authentication plugin 'caching_sha2_password' issue Connection Java-MySql : Public Key Retrieval is not allowed How to grant all privileges to root user in MySQL 8.0 MySQL 8.0 - Client does not support authentication protocol requested by server; consider upgrading MySQL client

Examples related to apache

Enable PHP Apache2 Switch php versions on commandline ubuntu 16.04 Laravel: PDOException: could not find driver How to deploy a React App on Apache web server Apache POI error loading XSSFWorkbook class How to enable directory listing in apache web server Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details How to enable php7 module in apache? java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing while starting Apache server on my computer

Examples related to xampp

Xampp localhost/dashboard phpMyAdmin ERROR: mysqli_real_connect(): (HY000/1045): Access denied for user 'pma'@'localhost' (using password: NO) Is there way to use two PHP versions in XAMPP? Where to find htdocs in XAMPP Mac phpMyAdmin access denied for user 'root'@'localhost' (using password: NO) How to downgrade php from 7.1.1 to 5.6 in xampp 7.1.1? How to turn on/off MySQL strict mode in localhost (xampp)? mysqli_connect(): (HY000/2002): No connection could be made because the target machine actively refused it How to install mcrypt extension in xampp Fatal error: Uncaught Error: Call to undefined function mysql_connect()