How to start Apache and MySQL automatically when Windows 8 comes up
Go to the Config button (upper right) and select the Autostart for Apache:
To start XAMPP at startup in Windows, paste a shortcut of the XAMPP control panel in this folder:
C:\Users\ USERNAME \AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
or
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
Apache
- Run
cmd
as administrator - Go to the Apache bin directory, for example,
C:\xampp\apache\bin
- Run:
httpd.exe -k install
more information - Restart the computer, or run the service manually (from services.msc)
MySQL
- Run
cmd
as administrator - Go to the MySQL bin directory, for example,
C:\xampp\mysql\bin
- Run:
mysqld.exe --install
more information - Restart the computer, or run the service manually (from services.msc)
Start the control panel using "Run as administrator". Then you can install Apache and MySQL as a service: