Posts made by Usman Asar

Picture of Plugin developers Picture of Testers

Bill, use Mail Enable plug-in mail test and see what error message comes up.

https://moodle.org/plugins/view.php?id=1527

I am assuming you haven't configured SMTP on your server, as since IIS 7, Microsoft wanted people to use their proper mail servers like Microsoft Exchange so stopped supporting built-in SMTP in IIS 7 and onwards, but this doesn't mean you wont be able to set it up.

There are two options, one is setting up third party mail system www.mailenable.com they offer a free version to set your email on a windows server, apart you can use features and roles and install SMTP server, that will additionally install IIS 6 interface to let you setup basic mail system.

Picture of Plugin developers Picture of Testers

You'll be mentioning your public IP address in your moodle config.php file.

also, make sure your port 80 is opened in your router's firewall pointing to internal IP of that computer (which again should be static), and finally, unless your router has capability of loop-back, which 99% dont have, you will not be able to resolve using same internet connection, you have to use some other internet connection to access your computer.

Picture of Plugin developers Picture of Testers

Do you want to make it accessible through internet?

There will be multitude of requirements.

  • Getting Static IP from your ISP
  • Opening Ports in your Router/Gateway to let traffic pass through to your server
  • Keep your computer running all the time

Else, you can always use local address and make changes later on should you need to.


Picture of Plugin developers Picture of Testers

First thing, do not use Web Application Installer to install PHPmanager, it wont simply work, if base settings arent correct, also Web application installers have very old versions of scripts.

As there is PHP settings already in, just go to Handeler Mappings, and remove all PHP that is already there, in addition, removing the PHP config files from PHP folders. (liek you have just unzipped the PHP folder), reason could be, as you MAY have paths without double quotes, and in windows platforms, any path with blank spaces in between should always be included in double quotes.

Also, there are updated version for PHP Manager mentioned on site, for Server 2012 an Server 2016, you may as well want to download and use them.

This will install the PHP Manager for sure.


Just a tip, if you have more than one scripts running on server, like you mentioned WordPress and moodle, you may want to keep PHP in their respective folders (means separately) for PHP for moodle will have slightly different settings, like  Zend OpCache, where you may not need it for WordPress, and using WinCache for WordPress where you may not use it for moodle.

Average of ratings: Useful (1)
Picture of Plugin developers Picture of Testers
Stuart, have you copied over the exact same php configuration file? that you've been using with PHP 5.5?
Server restarts are not required when upgrading PHP in IIS, just recycling application pools does the job.

There is a tutorial on setting up Moodle on IIS, where good time is spent on setting php for moodle, have a look here and see if that helps
http://blog.academictools.org/2015/12/installing-moodle-on-microsoft-windows.html

if you haven't already, and can, I recommend using PHPManager extension to install and setup PHP on IIS, it makes the job lot easier, so for that watch 2nd video on blog post.