URL Rewrite HTTP to HTTPS redirection on IIS 7
There are few ways to enable HTTP to HTTP redirect on IIS websites. In this example I will use URL Rewrite method.
- If your don't already have it download and install IIS URL Rewrite extension.
Using "Let's Encrypt" to request and enable free SSL security for IIS website
The easiest way to to provide free Let's Encrypt SSL security for IIS website is to use letsencrypt-win-simple tool.
- Download and extract letsencrypt-win-simple to a folder on your IIS server
- Run letsencrypt.exe and follow a simple command line wizard:
- Provide email address for certificate expiration notifications
- Select which ISS website you will be securing. Make sure your website has a correct host name in IIS Site Bindings. It will be used as the SSL certificate subject name.
Read more: Using "Let's Encrypt" to request and enable free SSL security for IIS website
Install PEAR Mail on Windows Server 2008R IIS7 PHP
This article assumes that you already have PHP installed and working and your PHP location is C:\PHP
- Download go-pear.phar file from https://pear.php.net/go-pear.phar and save it as C:\PHP\PEAR\go-pear.phar
- Open command prompt, navigate (cd) to C:\PHP\PEAR and run: php go-pear.phar
- Accept all installation defaults:
- Install Type: System-Wide
- Default paths: Yes (double check that path to your PHP install is correct)
- Update php.ini: Yes
Read more: Install PEAR Mail on Windows Server 2008R IIS7 PHP
Installing PHP for IIS 7 on Windows Server 2008R2
- Download non-thread based PHP 7 from windows.php.net. (I used version php-7.1.5-nts-Win32-VC14-x64)
- Extract all files to C:\PHP
- Rename php.ini-production to php.ini and make following changes:
- Uncomment and set: cgi.force_redirect = 0
- Uncomment and set: fastcgi.impersonate = 1
- Uncomment and set: extension_dir = "ext"
- Add ;C:\PHP to Windows Environment PATH Variable: Control Panel > System > Advanced System Settings > Environment Variables > System Variables > Path
- Try running php.exe -v from command prompt. You should get something like this:
- If you get error (in the command prompt) "php.exe is not recognized as an internal or external command, operable program or batch file." - make sure C:\PHP PATH System variable was entered correctly and restart the server.
- If you get Windows pop-up prompt with error "php.exe - The program can't start because VCRUNTIME140.dll is missing from your computer. Try reinstalling the program to fix this problem." - Download and install Microsoft Visual C++ 2015 Redistributable (x64).
Read more: Installing PHP for IIS 7 on Windows Server 2008R2
- Exchange / Outlook - There is a problem with the proxy server's security certificate
- Microsoft Exchange - Uninstall Anti-spam agents
- Event 12014 - Microsoft Exchange could not find a certificate...
- Terminal Services Gateway stops working after removing SharePoint 3.0
- WSUS 3.2 on 2008R2 fails to download Windows 10 Anniversary Update (1607)
- Updating Group Policy .admx template files with Windows 10 (1607) specific settings
- Symantec Backup Exec agent install error - Microsoft VC++ Redistributables
- Cannot start IIS website - Exception from HRESULT: 0X80070020
- WindowsUpdate.admx on Server 2012 (Windows 10 upgrade pop-ups on domain PCs)
- Renew MS Exchange Trusted Certificate