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

后端 未结 11 1724
野性不改
野性不改 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:41

    Find/search for file "xampp-control.ini" where you installed XAMPP server (e.g., D:\Server or C:\xampp).

    Then edit in n the [Autostart] section:

    Apache=1
    MySQL=1
    FileZilla=0
    Mercury=0
    Tomcat=0
    

    Where 1 = true and 0 = false

    That's so simple.

    0 讨论(0)
  • 2020-12-23 11:42
    1. Window + R
    2. Type services.msc
    3. Search for your WAMP Apache and go to property and select Auto.
    4. Restart your computer.

    As a service

    You can set this one by:

    Going first to your installation directory (in my case it’s c:\xampplite). It could be somewhere else depending on your installation. Have also my full version in c:\x2\xampp. Once your in the installation directory, find xampp-control.exe and click/double-click to launch it.

    You should first stop all running instances of your apache2 and mysqld/mysql processes to do this.

    Click the checkmark next to Apache and MySQL with the header name service. It will warn you that it’s installing as a service which of course is what we like it to do. Click Yes.

    Also do step 5 with MySQL. We’re almost done.

    Click StartRun

    Type services.msc (it can also be done in the control panel under administrative tools which is a way lot of click than this one). Find the Apache 2 and MySQL services.

    Double click each one and set the startup type to Automatic (you will be presented with three options: Automatic, Manual, and Disabled):

    • Automatic – will start it automatically at startup
    • Manual – users will have to start it up manually i.e. by issuing a command like net start apache2
    • Disabled – will disable it.

    Be warned though that any change in the services just like the registry can cause your system to stall.

    Click the start button to manually start it (just for the session though). At the next restart it’ll be automated.

    Do the same with MySQL.

    As a startup program

    Find xampp_start.exe from your installation directory.

    Press Ctrl + C to copy it or right-click the file and hit copy.

    Go to C:\Documents and Settings\Administrator\Start Menu\Programs\Startup and right click on it and hit Paste Shortcut.

    When you restart it’ll be starting also and you’ll see something like this:

    You can stop it by issuing the xampp_stop.exe command in your installation directory.

    Also worth mentioning is that if you right click again on the shortcut and hit properties, try to change the run option to minimized. This way the shortcut will be on your taskbar once started.

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

    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

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

    Open:

    C/users/YourUserName/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Start-up

    If there is a problem finding the above directory:***

    Press Windows + R and write shell:startup. Press Enter. It will move you to the directory.

    Drag and drop the XAMPP control panel to the above directory

    It will open XAMPP automatically.

    If you want to auto start Apache and MySQL, click on config in XAMPP and check the Apache and XAMPP items (if unchecked) and save it. It will start it automatically.

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

    Apache

    1. Run cmd as administrator
    2. Go to the Apache bin directory, for example, C:\xampp\apache\bin
    3. Run: httpd.exe -k install more information
    4. Restart the computer, or run the service manually (from services.msc)

    MySQL

    1. Run cmd as administrator
    2. Go to the MySQL bin directory, for example, C:\xampp\mysql\bin
    3. Run: mysqld.exe --install more information
    4. Restart the computer, or run the service manually (from services.msc)
    0 讨论(0)
  • 2020-12-23 11:54

    Start the control panel using "Run as administrator". Then you can install Apache and MySQL as a service:

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