If you are looking forward to developing application in PHP, first thing you want is to set up a development environment. On Windows, WAMP is a popular choice. Let me show you how to install it on Windows 10 in this blog post.
WAMP is not the only choice you have for windows. You can also choose XAMPP which is also stable and good. For Linux you can try LAMP and for Mac, MAMP. Please don’t waste your time in comparing various alternatives available to you. They are all good. All I can say is that get yourself a development environment quickly and start coding. WAMP is a very good choice and is very stable. Go for it.
XAMPP is another popular choice for setting up PHP development environment in Windows OS. To see how to install XAMPP in Windows 10, Please visit my blog on how to install XAMPP in Winodws 10
Prerequisites: In order to successfully install and run WAMP server make sure that you have VC++ Redistributable installed on your system. Please follow my post and install all the versions of VC++ Redistributable using the link provided in the post at the bottom of the post. This article also tell you why VC++ Redistributable is important and why you should have it to avoid future problems on Windows Platform.
After the installation if you get the error message that some dll files such as msvcr110.dll, msvcr100.dll, msvcp110.dll, msvcp100-dll is missing, make no mistake, it is because Visual C++ Redistributable is missing. I have written a blog on it. Here is the link.
Here are the installation steps.
Step 1- Download Wampserver from the official website
You can download the WAMP installer from the official WAMP server from the WampServer website.
Recently I have seen that there is a lot of downtime of the official website. If the WAMP server official website does not open, you can use this direct link to download the installer from sourceforge.net website.
Step 2- Scroll down to the download section of the WampServer Home page.
Based on your system, choose 32 bit or 64 bit version of the installer. I choose 64 bit, PHP 7 version because this is the latest release of PHP.
These screenshot will not be the same as it will change based on the release of the updated version of the WAMP server. Currently the latest WAMP version is 3.1.3 as on Aug 2018.
Step 3- Click the appropriate link to download the Installer.
You should see something like this. Click the download directly link to start download. Currently the latest WAMP version is 3.1.3 as on Aug 2018.
I noticed that there are problems with the sourceforge site as well. The download does not begin automatically. Please use these direct links to download the latest version of WAMP.
Step 4- Locate the downloaded file.
By default it should be in your downloads folder if you have not changed the default settings.
Step 5- Double click the installer to begin the installation.
You should see something like this.
Click Run to proceed. Now you should see Windows User access control dialog box. Click Yes to continue.
Step 6- The dialog box that appears will now ask you to choose your language for installation.
Select your preferred language from the drop down list and click OK. We will be using English for this demonstration.
Step 7- Next dialog box is Welcome to WampServer64 Installation Wizard.
Click OK Next to Continue.
Step 8- You should see WampServer Licence agreement dialog box.
Click “I accept the agreement” radio button and next to continue.
Step 9- Now you should see an information dialog box.
This informs you about the prerequisites, or the required component that must be present on your windows machine for the WampServer to function correctly. What’s required is the appropriate version of Microsoft VC++ re-distributable package. You can still continue to install WampServer without issues. But after installation when you start the wampserver and get error message complaining about a missing file, please follow my post which tells you about the error and what should be done to resolve it.
Step 10- Select the location where you want to install WampServer.
You can accept the default and click next.
Step 11- Select Startup Menu Folder.
In this dialog box you have to select the folder in which the program shortcuts should be placed. If you select the default, it would be placed in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Wampserver64. This folder content is accessible from the windows start button, all apps in windows 10. If you place in any other folder, the shortcut will not be visible from the start menu.
You can change it to something else but accepting the defaults is perfectly good. The 64 at the end of Wampserver64 is tell you that you will be using the 64 bit version of the application. If you dont see 64, then you will be using the 32 bit version of the application.
Step 12- Fianlly you see the Ready to install dialog box.
You can review the details and make the changes by going back by clicking the Back button. Once you click Next, installation begins.
Click Next to begin Installation. Now you will see installation begins. Below is the screenshot.
Step 13- Select default browser dialog box
Now you should see a dialog box asking you if Internet Explorer should be made the default browser and asks you if you want to change the default browser to something else. Click NO to accept Internet explorer as the default browser.
If you want to change the default browser to say Google Chrome, click yes and you should see something like this:
In Windows 10, Google Chrome executable is located in C:\Program Files (x86)\Google\Chrome\Application folder by default. Go to this folder and select chrome.exe and click open. If you click cancel, it would again default to Internet Explorer.
Again the choice between Internet Explorer and Chrome or anything else is purely personal and I don’t see any issue in accepting the default and leaving it as Internet explorer.
Step 14- Select default Text Editor
I would suggest you can accept the default, which is notepad by clicking No. Its just that if you want to edit apache or PHP config files such as http.config or php.ini, it would open in notepad. Still if you want to change it you can click Yes and navigate to the executable .exe file of your preferred text editor. But, as I said, the default notepad is perfect.
Step 15- phpmyadmin Information dialog box
After the installation is complete, you will see a dialog box informing you that the user name for phpmyadmin is “root” and password is not set, that is there is no password for it. Click Next to continue.
Step 16- Installtion Complete
Now you should see installation complete dialog box. Click finish to exit the WampServer installation wizard. WampServer should now be installed on your system.
Step 17- Start WampServer
You can now start the WampServer by double clicking on the shortcut wampserver icon on your desktop or alternatively launch it from the start menu. After the WamServer starts, you can see the Green icon on the taskbar as shown in the screenshot. Initially it will be Red, then turn amber and then Green. When it turns green, it means all the services are now running. Else, the WampServer has not started. Please note that you will have to give adminsitrative privilages for the Server to start. That is just click Yes when you see UAC confirmation dialog box when you click the Wamserver icon to start the server.
When you right click on the icon, you can see the options to start, stop and restart the WampServer along with other option which I leave for you to explore. If you face any problem, please leave the question as a comment, I will answer them.
Enter the following URL in the browser.
Now you should see the WAMP Server page.
That’s it, you are done. Thanks for visiting my blog.