Page 1 of 1

7.4.12, control panel 3.2.4 won't show apache started

PostPosted: 06. December 2020 20:56
by sootsnoot
I've posted a detailed description at https://stackoverflow.com/questions/65161907/attempting-to-start-apache-app-xampp-panel-never-shows-running-though-it-is
But the gist is that everything seems to work okay as with previous versions of xampp. Using xampp-control.exe I can start and stop MySQL as always. But when I start Apache, the Apache module name never gets highlighted or the PID and port displayed, or the Start button changed to Stop. Yet clicking Netstat shows httpd.exe listening on 0.0.0.0 port 80, my vhosts on localhost display fine in my browser, and the apache error log looks normal. The only way I've found to stop apache is to use netstat to find the PID listening on port 80, and then use process explorer to kill that PID.

On a slightly different note, just now I tried running apache_stop.bat, and nothing happened (no output and it's still running). Looking at the source of the script, I see the guts of it is:
call "@@BITROCK_INSTALLDIR@@\killprocess.bat" "httpd.exe"

I have no idea about @@BITROCK_INSTALLER@@ but I can see that there is no file named "killprocess.bat" anywhere below the xampp installation tree...

Thanks for any help!

Re: 7.4.12, control panel 3.2.4 won't show apache started

PostPosted: 07. December 2020 19:28
by sootsnoot
Well, it turned out my problem was solved by running xampp-control.exe as administrator.

Doing that caused the module name to get highlighted, its two PIDs to be displayed, along with the port (80, I did not include SSL in the configuration), and the Start button changed to Stop.

While I had seen some vague warnings that sometimes it was necessary to run xampp-control as administrator, I had assumed that if not doing so caused a problem, there would be some kind of error displayed or logged somewhere. And I don't believe I had ever run it as administrator under my previous version of xampp, 1.8.2.