How to install Web Server PHP MySQL and WordPress on Windows

How to install Web Server PHP MySQL and WordPress on Windows

This is a step-by-step and a video guide on how to install Web Server (IIS) on Windows 7 (works on Win 8 and 10) then Install PHP, MySQL, phpmyadmin and then WordPress. All this in 40 minutes. From an empty Windows 7 machine to fully functional Web Server.

Please refer to the video but I also provide a written step-by-step instructions on what I do in the video with links to downloads.

0. Turn off User Account Control !
1. Install IIS from Programs and Features -> Turn Windows Features on and off. Choose Internet Information Services and expand. Also check CGI and some more features from the Application Development sub menu.

Web Server

 

 

 

 

 

 

2. Open from Control Panel -> System and Security -> Administrative Tools
2. Test your web server with http://localhost. If you see the IIS picture – You have a working Web Server
4. Go to windows.php.net -> Downloads and download your desired PHP Version. Usually x86 threat safe zip download. For older versions and archives – windows.php.net/downloads/releases/archives
5. Copy the files in the zip file and paste them into C:\PHP. Create the folder PHP manually.
6. Go to http://phpmanager.codeplex.com/releases/view/69115 and download the 64 (or 32) bit installer. Run the installer. If you are running a later version of Windows like 8 or 10 then your IIS version will also be higher and the installer won’t run. To work around this open regedit in Run and navigate to HKLM/System/CurrectControlSet/Services/W3SVC/Parameters and open the MajorVersion DWORD. Change the value from 10 to 9 or 8 and try to install again.
7. Open the IIS Manager and choose PHP Manager when selecting the Default Web site
8. Click on register new PHP version and choose the path where you unpacked the PHP files. In our case C:\PHP and point to the php-cgi.exe and click Ok.
9. Your IIS is now linked with PHP via FastCGI
10. Now while in IIS Manager go to Default Document and click Add on the right menu. Type index.php and click OK. Now with the arrows on the right menu put the index.php to the top of the list. Acknowledge any warnings that inheritance will break.
11. Go and test your php. Put an index.php file with some example php code inside in your C:\inetpub\wwwroot directory and give it a try by opening your http://localhost in a browser.
12. If you see the php page – You have installed PHP successfully. If not leave a comment and I wil try to help you.
13. If you receive a Internal Server Error 500 – FastCGI process exited unexpectedly go to http://www.microsoft.com/en-us/download/details.aspx?id=30679 and download the 32bit version of the Visual C++. Try opening the localhost again. Should be fine.
14. Time to get the MySQL. Go to http://dev.mysql.com/downlaods/mysql. On Select Platform choose Download on the MySQL Installer MSI.
15. Choose bigger installation
16. Click on No thanks just start my download and downlaod the file. It’s around 370 MB.
17. Run the installation file. – Choose Server Only and install.
18. Time to configure the MySQL install. For Config Type choose Server Machine if your Web server (like in our case) is on the same server as your MySQL and choose Dedicated Machine if your Web Server and MySQL are on different servers.
If you want your MySQL to use the least memory – choose Development Machine. It will assume that it’s not a production MySQL that will serve a lot of requests.
19. Leave the connectivity checks as they are. Go to Next.
20. Choose a password for the account “root”. You cannot change the root username but you choose the password. If you want to create your own user with special permissions go to MySQL User Accounts and click Add User and create your own user. Once Ready go to Next
21. Definately leave “Configure MySQL Server as a Windows Service” checked and the same for “Start the MySQL Server at System Startup”. Windows Service Name – change it if you want. No Impact.
22. On Run Windows Service as… leave it on Standard System Account. If you have a good reason to use a specific account – choose Custom User but i would Recommend staying with Standard System Account. Click Next and then Execute.
23. Now you need something to manage your MySQL with. I suggest using the free phpMyAdmin. Go to https://www.phpmyadmin.net/ and download.
24. Go to C:\inetpub\wwwroot directory and create a folder called phpmyadmin and unpack all the files in it.
25. Open http://localhost/phpmyadmin. You should see the Phpmyadmin welcome page. For username use root and the password you’ve chosen on the MySQL install in step 20. Now you are inside your MySQL seen through phpmyadmin. Leave the page opened.
26. Now we are ready to install WordPress, Forums, joomla, Drupal and etc. Let’s install WordPress as an example. Go to WordPress.org and download the latest WordPress.
27. Unpack everything into your wwwroot directory.
28. Open http://localhost. You should see the WordPress Logo. Click Let’s Start.
29. Go back to your browser tab where you have http://localhost/phpmyadmin opened or open it again if you closed it. Go to Databases and create a new database. That’s it. We need it blank
30. Go back to your WordPress tab on http://localhost . Fill in the information :
Database Name: Use the name of the database you created in phpmyadin in step 29.
User Name: Use the username you login into phpymadmin which should be the same as Step 20.
Password: And the password.
Database host: Leave localhost.
Table Prefix: leave the default – wp_
Click Submit.
31. It will say Sorry but I can’t write to wp-config.php file. Go to your wwwroot directory and create a file called wp-config.php. Open it with Notepad and paste the code from the WordPress page. Save
32. Go back to your WordPress page and click Run the Install.
33. Type in a Site Title (you can change later if you don’t like it), Type a Username and password for your new WordPress site (best to choose different from your MySQL logins). Type a fake or real email, it doesn’t matter. If you want search enginers to crawl
your site leave the check on Privacy and click on Install WordPress button.
34. If all goes fine you should see Success! and a Log in button.
35. Congrats! You have a WordPress blog now. The installations of Joomla, PHPBB, vBulletin, SMF, Drupal are almost identical to this installation so you should be good installing them easily.

And here is the video:

Wordpress Web Server

IIS 7 Web Server

MySQL Web Server

phpMyAdmin Web Server

Install Exchange 2016 on Windows Server 2016

Install Exchange 2016 on Windows Server 2016

Install Exchange 2016 – Hi everyone. I am back and I am installing Exchange 2016 on Windows Server 2016 (currently TP3) from scratch on a virtual machine.

So before the install:

VMWare Workstation 10

256GB SSD (let’s see how fast the install will be)

2016 TP3 iso downloaded from Microsoft. Click Windows Server 2016 Download.

40GB of free space

Exchange 2016 Enterprise. Click Exchange 2016 Download.

Step by step what happens in the video below:

  1. I create a Virtual Machine using VMWare Workstation. Preferably with the most resources like CPU and RAM that you can spare. Attach the downloaded Windows Server iso file to the DVD/CD.
  2. Start the VM and boot from CD which has the Windows Server 2016 iso attached.
  3. We choose Windows Server 2016 Technical Preview (Server with Desktop Experience)
  4. We configure a static IP and change the name of the server and reboot
  5. Once the server is back from reboot we install Active Directory Domain Services from Server Manager. Add Roles and Features
  6. Follow along the auto-selected Features as well
  7. After the installation has finished go to Server Manager and click on the flag and choose to Promote this server to domain controller
  8. On the wizard step 1, choose 3rd option. Add a new forest
  9. Type the domain name below. Root domain name:_______
  10. Select Forest and Domain Functional level – Windows Server 2016/Technical Preview
  11. Check the Domain Name System (DNS) Server
  12. Type in a Directory Services Restore Mode password
  13. Ignore the Warning for DNS delegation and go Next
  14. Type in a NetBIOS name. Example. If contoso.com, you can choose just contoso. Use the default one at best
  15. Recommended that you don’t change the AD paths in the next section
  16. If no errors and just warnings proceed with Install
  17. After the reboot log back in and copy over the Exchange installation files to your server
  18. Start the setup
  19. Go through the initial setup screen with Next, then choose Recommended settings (not that important choice, whatever you like) and go to Next.
  20. Choose Mailbox role and check “Automatically install Windows Server roles and features…” and click Next
  21. Recommended that you leave the default path of “C:\Program Files\Microsoft\Exchange Server\V15”
  22. Type in an Exchange Organization Name. Can be whatever you like. Do not check “Apply Active Directory split permissions”
  23. If you want malware protection leave at “No” and click Next.
  24. The prerequisites check starts. Once it finishes you should only have one Error for missing the Microsoft Unified Communications Managed API 4.0 64-bit. The rest should be warnings. Download the API from here.
  25. If you have problems downloading due to error in Internet Explorer “Your current security settings do not allow this file to be downloaded” go to your Internet Options in your Internet Explorer. Go to tab Security. Click on Custom Level and browse to Downloads and change from Disable to Enable.
  26. Download and Install the API. Retry the Readiness Check.
  27. It should be only warnings and the Retry button to be replaced by Install button. Click and sit back for an hour.
  28. Your Exchange should be installed now. Here are some tips
  29. Your Outlook Web App or Outlook on the Web, as it’s called in 2016 is on the same URL as before – https://localhost/owa and your Exchange Administration Center is on – https://localhost/ecp.
  30. For your email flow to be full you need to create a Send Connector. In your Admin Center, go to Mail Flow and then Send Connectors. Click + to create a new one.
  31. Put a name for it. For type – Choose Internet
  32. Leave it on MX record associated
  33. Address space – click + and only add * to the “Full Qualified Domain Name” field. This means that through this send connector your will be able to send to all the domains in the world 😉 Leave the cost at 1.
  34. On the next menu click + and add your own server
  35. There we go you should be having a start-up working Exchange Server 2016 from scratch !!!

And this is the video !

Install Exchange 2016 on Windows Server 2016