Page 1 of 1

Cannot create file "C:\xampp\xampp-control.ini" error

PostPosted: 28. May 2020 18:01
by bjh
After installing xammp for Windows 7.4.6 and making a change in the configuration, i get Cannot create file "C:\xampp\xampp-control.ini" error after clicking on the SAVE button.

Re: Cannot create file "C:\xampp\xampp-control.ini" error

PostPosted: 28. May 2020 18:19
by bjh
also get it when closing XAMPP after stopping Apache and MySQL and clicking the Quit button.

Re: Cannot create file "C:\xampp\xampp-control.ini" error

PostPosted: 31. May 2020 17:17
by wizwych
I am also having the same issue have you changed the Directory name for xampp to another name example xampp_old when you open your control panel again see which directory it is trying to open up..

I changed mine to xampp_old and created a new xampp named directory with all files added yet Control Panel insists on trying to open the xampp_old rather than the newly named folder

Re: Cannot create file "C:\xampp\xampp-control.ini" error

PostPosted: 31. May 2020 22:00
by bjh
did not change the directory name. Used the default settings when installing XAMPP and was the very first app I installed once I had a fully updated Windows 10 installed.

Re: Cannot create file "C:\xampp\xampp-control.ini" error

PostPosted: 02. June 2020 00:48
by wizwych
All i can usggest is Save a copy of HTDOCS and MYSQL/DATA just the data foder save them to your DOCUMENTS folder and unnstall then reinstall XAMPP/WAMP then replace the HTDOCS and the MYSQL/DATA folders with the ones you saved earlier. That worked for me.....

Re: Cannot create file "C:\xampp\xampp-control.ini" error

PostPosted: 04. June 2020 07:16
by sekar
Go to XAMPP, installation directory, select the xampp-control.exe, right click properties--> compatability, Run as administrator, apply.

[img]C:/Users/HOME/Desktop[/img]

Re: Cannot create file "C:\xampp\xampp-control.ini" error

PostPosted: 09. June 2020 20:37
by bjh
@sekar your suggestion still gives me that error.

Re: Cannot create file "C:\xampp\xampp-control.ini" error

PostPosted: 18. June 2020 17:29
by kubegus
sekar wrote:Go to XAMPP, installation directory, select the xampp-control.exe, right click properties--> compatability, Run as administrator, apply.


That's works for me! Cheers!

I have the same problem when I closed the program, because I run it as normal, without "administrator". Now its closed without any warning adviced.

Re: Cannot create file "C:\xampp\xampp-control.ini" error

PostPosted: 26. February 2021 19:58
by avedu
Why does the exe file need Administrator privileges in that folder? It was suggested by XAMPP installation to use C:\xampp to avoid permission issues... now it has a permission issue?

I'm having the problem when I click "Quit" in XAMPP Control Panel v3.2.4... but it seems like this same issue has been happening across multiple versions.

Image

After clicking to force close the app (which reports the error to Microsoft), the XAMPP Control Panel is ultimately closed, and then starting it again shows that Apache and MySQL are still running... I click Stop on both of them, which works fine... then click Quit again, and get the same errors!

So the problem is specifically the Quit button... seemingly regardless of what's going on elsewhere in the interface.

Can someone explain what it's trying to do that Windows blocks access to? I'm a little concerned about things becoming corrupt, or XAMPP doing something weird that could be a security concern here (though updating its own config file shouldn't be a security concern, but requiring admin permission for it could be).

Re: Cannot create file "C:\xampp\xampp-control.ini" error

PostPosted: 05. June 2021 12:15
by ShinProg
Soory for the digging up, but I created an account only to reply this question that needs answers imo.

reference : comments from https://stackoverflow.com/a/38681354

Why does the exe file need Administrator privileges in that folder?

the file Xampp-control.ini for some (security ?) reasons become 'read only'. Two solutions :

  • xampp constrol panel -> run as administrator. You only need it if you want to change settings, xampp don't requires admin privileges to start services.
    You can also make this change permanent by doing this :
    CodeToLife (Nov 23 '20 at 22:02) wrote: Right-click on this shortcut and choose Properties (you may have a Properties icon on the Menu bar - if so, click that instead). If not already there, click on the Shortcut tab in Properties. Click the Advanced button In the dialog that opens, check the box next to Run as Administrator Now it will always run as admin
  • Change the rights of the file :
    HartleySan (Feb 1 at 20:39) wrote:search for xampp-control.ini in the xampp folder. It should be the one in the xampp folder. Right-click it, go to Properties > Security > Edit. From there, allow Full Control for Everyone, then save the settings

Hope it helps,

Re: Cannot create file "C:\xampp\xampp-control.ini" error

PostPosted: 07. June 2021 10:58
by Eaglin
sekar wrote:Go to XAMPP, installation directory, select the xampp-control.exe, right click properties--> compatability, Run as administrator, apply.

[img]C:/Users/HOME/Desktop[/img]

yeah your suggestion right,
I want to include that, make sure after installation restart your device

Re: Cannot create file "C:\xampp\xampp-control.ini" error

PostPosted: 30. December 2023 23:48
by michibinder-isanhuso
sekar wrote:Go to XAMPP, installation directory, select the xampp-control.exe, right click properties--> compatability, Run as administrator, apply.

[img]C:/Users/HOME/Desktop[/img]

thx. minimized: https://www.youtube.com/watch?v=90nN3hyed4E