How to start Apache and MySQL automatically when Windows 8 comes up

后端 未结 11 1725
野性不改
野性不改 2020-12-23 11:29

I am using XAMPP, version 3.2.1. I just installed it on Windows 8. Every time I need to go to the XAMPP Control Panel to start services (MySQL, Apache,...); in Windows&

相关标签:
11条回答
  • 2020-12-23 11:58

    If on your system User Control Account is Off then you can run the XAMPP as Administrator and check the boxes for run as service.

    And if on your system User Control Account is On then it may not work. You have go to Configuration files and manually install as a service or run apache_installservice.bat for Apache and mysql_installservice.bat for MySQL at the path

    1. C:\xampp\apache
    2. C:\xampp\mysql

    if path is the default path.

    0 讨论(0)
  • 2020-12-23 11:59

    You could copy the XAMPP shortcut into "Local Disk C /users/YourUserName/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Start-up"...

    This will make the control panel start up with the computer. Then if you were to select the configuration in the top right hand corner of the control panel you can make Apache and MySQL auto start... This is a quite long-winded get around, but it works for Windows 10.

    0 讨论(0)
  • 2020-12-23 12:01

    You can do it via cmd.

    For Apache

    Open cmd in administrator mode. Change directory to C:/xampp/apache/bin. Run the command as httpd.exe -k install. Your Apache server service will be installed. You can start it from services.

    For MySQL

    Change directory to C:/xampp/mysql/bin. Run the command as mysqld --install. Your MySQL service will be installed. You can start it from services.

    Note: Make sure the selected Apache and MySQL services are set to start automatically.

    You're done. There isn't any need to launch the XAMPP control panel

    0 讨论(0)
  • 2020-12-23 12:05

    One of the latest XAMPP releases (XAMPP for Windows v5.6.11 (PHP 5.6.11) for sure, probably some earlier versions too) does not have the Control Panel with the "Svc" checkbox that allows to install Apache and MySQL as a service.

    Go to your XAMPP/Apache directory instead (typically C:/xampp/apache) and run apache_installservice.bat as an administrator. There is also apache_uninstallservice.bat for uninstall.

    To run MySQL as a service. Do it the same way - the location is xampp/mysql and batch files are: mysql_installservice.bat for service installation and mysql_uninstallservice.bat for removing the MySQL service.

    You can check if they were installed or not by going to services manager window (press Windows + R and type: services.msc) and check if you have Apache service (I had Apache2.4) running and set to startup automatically. The MySQL service name is just: mysql.

    0 讨论(0)
  • 2020-12-23 12:05

    Copy xampp_start.exe from your XAMPP install directory to C:\Users\YOUR USERNAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.

    Replace YOUR USERNAME with your username.

    0 讨论(0)
提交回复
热议问题