Initialize apache and mysql on windows 7 32 bits using Xampp

3

I would like to initialize Apache and Mysql from Xampp as soon as the system is booted, I ran some searches and found this:

  

Service installation: In C: / xampp / apache double-click on "apache_installservice.bat".   Uninstalling the service: In the C: / xampp / apache double-click "apache_uninstallservice.bat"

     

Service installation: In C: / xampp / mysql double-click on "mysql_installservice.bat". Uninstalling the service: No   C: / xampp / mysql double-click on "mysql_uninstallservice.bat"

But I came across the following problem, when I run both the following messages appear, respectively:

  

Installing Apache2.4 as an Service    Installing the 'Apache2.4' service   (OS 5) Access is denied. : AH00369: Failed to open the Windows service manager, per   haps you forgot to log in to Adminstrator?   Now we Start Apache2.4 :)   The service name is invalid.

     

For more help, enter NET HELPMSG 2185.

     

Press any key to continue. . .

     

Installing MySQL as an Service    The system can not find the file specified. Install / Remove of   the Denied Service! Try to start the MySQL deamon as service ... O   The service name is invalid.

     

For more help, enter NET HELPMSG 2185.

     

Press any key to continue. . .

Someone could help, thank you!

    
asked by anonymous 27.07.2017 / 18:37

2 answers

2

This is happening because you are trying to run these .bat files without the privileges of an Administrator account or User Account Control is enabled.

To disable account control go to:

  

Control Panel, User Accounts, Change   User Account Control button, lower the entire button, restart the   computer and when Windows starts again try running the files    .bat .

    
27.07.2017 / 19:03
2

This solution works for me.

Open the XAMPP Control Panel, and click the config button. See:

ThenyoujusthavetoenablethecorrespondingAutostartforMysqlandApacheandclicktheSavebutton.Seebelow:

But it is necessary to start XAMPP together with Windows, to do this, just paste the XAMPP shortcut path to this folder:

  C: \ Users \ USERNAME \ AppData \ Roaming \ Microsoft \ Windows \ Start Menu \ Programs \ Startup

or

  C: \ ProgramData \ Microsoft \ Windows \ Start Menu \ Programs \ StartUp

On my PC the path to the Windows startup folder is this:

  C: \ Users \ Cat \ AppData \ Roaming \ Microsoft \ Windows \ Start Menu \ Programs \ Startup

    
27.07.2017 / 19:03