wampserver auto start
Web Development

Auto Start wampserver On Windows 10 Startup Automatically

Before I show you how to auto start wampserver, I’ll talk about it a bit.

Wampserver is one of the best stacks for web development on the Windows platform. I prefer it over xampp because of the handy tray menu that lets me access any configuration.

You can download wampserver from this website wampserver

The problem

Recently I’ve tried installing wampserver on Windows 10, and it went well but there was a little problem.

When I tried to auto start wampserver at Windows 10 startup, I put the wampserver shortcut in this path

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

I found that wampserver did not autostart with Windows.

I searched the web for a solution for that problem and I found the following:

The first solution suggests putting the wampserver shortcut on the above-mentioned path and as I told you that does not auto start wampserver.

The second solution suggested enabling the wampapache service and wampmysqld services from Windows services.

Go to Control Panel and type services in the search box, and it will open the services like this:

wampserver services
wampserver services

Select wampapache and set the startup type to automatic and do the same for wampmysqld and hit OK. When you reboot your machine, you will notice that both apache and MySQL work.

wampserver-service-startup-type
wampserver-set-service-startup-type

So now I can auto start wampserver and everything is good.

Unfortunately, That solution does not show wampserver tray menu on the bottom.

wampserver-tray-menu
wampserver-tray-menu

Most of the wampserver users use it because they can quickly access everything from that tray menu including PHPMyAdmin, the www folder, PHP, Mysql and Apache configurations.

So I discovered the solution and I’d like to share it with you.

The Solution is to disable the UAC on Windows in order to make the program autostart with Windows.

If you go to Windows control panel and select user account control settings and change it to never notify that won’t work too.

disable-UAC

The Solution

The solution is a bit tricky but super easy.

Because what we have done to disable the UAC does not disable it completely and in order to disable UAC you have to disable it from the registry.

Just type regedit in the Windows menu search and go to this node:

regedit-to-disable-UAC

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

auto start wampserver
auto start wampserver

You will find a key named EnableLUA, set it’s value to zero and it will prompt you to restart the system.

You can save the following text as .reg file and run it as administrator and it will do the same job.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
“EnableLUA”=dword:00000000

Keep in mind that disabling the UAC (User Access Control) is not a good idea, you may harm the system, but I suppose that you know what you are doing.