2

So I recently installed XAMPP, following a YouTube guide along the way. I click the start actions for Apache and MySQL and everything was going smooth until when I click the Shell icon on the right side of the command panel and the cmd associated with it just opens for a brief second and immediately closes I kept clicking on it hoping for it to work and nope it still just opens for a brief second and closes.

I kept searching for possible solutions online and still, it doesn't solve the issue. I tried tweaking the config of the Apache and MySQL and it still didn't fix it. I also try reinstalling using different XAMPP versions and still the problem persists. I also tried running it as administrator and issue is still there.

Additionally I'm using Windows 10

If anyone knows a possible fix for this I would greatly appreciate it.

Edit: I screen recorded my XAMPP issue, here's the link to that video : https://youtu.be/h-lM250Pqwc

Ivy
  • 33
  • 1
  • 1
  • 4

2 Answers2

11

Same issue on Windows 11

Running xampp-control as administrator did the trick. Source

Some alternative solutions:

  1. Run SFC scan
  2. Edit the registry key to stop CMD from closing
Green Perry
  • 111
  • 1
  • 4
0

Follow these steps:

  1. Open the xampp folder.
  2. Search for xampp_shell.
  3. Right click it and run it as administrator.

That's it!

Jeff Schaller
  • 2,352
  • 5
  • 23
  • 38
Yuvraj
  • 11
  • Please add some explanation to your answer such that others can learn from it. What if the user does not have admin permissions? – Nico Haase Feb 21 '23 at 07:47
  • 1
    Add detail description not only steps.So, User can know what the actual problem and why your steps act as a solution to fix the problem. – Monish Khatri Feb 22 '23 at 13:35