Page 1 of 1

Apache service not starting

PostPosted: 08. July 2023 15:44
by adadmavi
New to the forum ...
Any pointers on how to resolve this pls ?

20:03:05 [Apache] Attempting to start Apache service...
20:06:22 [mysql] Attempting to start MySQL service...
20:06:22 [mysql] Status change detected: running
20:06:27 [mysql] Status change detected: stopped
20:06:27 [mysql] Error: MySQL shutdown unexpectedly.
20:06:27 [mysql] This may be due to a blocked port, missing dependencies,
20:06:27 [mysql] improper privileges, a crash, or a shutdown by another method.
20:06:27 [mysql] Press the Logs button to view error logs and check
20:06:27 [mysql] the Windows Event Viewer for more clues
20:06:27 [mysql] If you need more help, copy and post this
20:06:27 [mysql] entire log window on the forums

Re: Apache service not starting

PostPosted: 09. July 2023 16:32
by daniel2904
Hello friend
I downloaded the latest version of Xampp and got the same errors.
I'm also going to write a post about another error (MySQLI not working).
Fortunately, I upgraded from another laptop, so I had a working config file there.
I replaced the new config files with my old ones and with a few tweaks, got it working.

The problem is the directory paths in the config file.
I'm taking an educated guess here.
It seems in the latest version, you set some variables at the top of the config, and the variables are used to create the paths to the actual directories that are needed in the config.
To figure out which paths I needed to change, I started Apache, and checked the event view (I'm on Windows 11).
Event viewer often gives the file and line where the config died.
Go to that line, if it's a relative path or it uses a variable, replace it with the full path to the directory.

I'm sorry if my explanation isn't well written.
I'm not feeling great on this side, so I hope this is enough to get you started in figuring out what is going on.

Have a good evening.