How to install and activate PHP Intl and fileinfo extensions easily?

How to install and activate PHP Intl and fileinfo extensions easily?

by Alexandra B -
Number of replies: 4

Hello,

I want to test Moodle and I am installing it locally with MAMP, which apparently now works for Windows, but I have two red flags that ask me to install and activate the 2 following extensions:

  • PHP Intl extension
  • PHP fileinfo extension
Here is a screenshot (in French) that shows the problem when installing locally

image%20%281%29.png

For the PHP Intl extension, I found some information on this page https://docs.moodle.org/310/en/admin/environment/php_extension/intl 

For the PHP fileinfo extension, I found info on this page https://docs.moodle.org/310/en/admin/environment/php_extension/fileinfo

The problem is that my computer skills are very limited and I don't know anything about PHP.

Is it possible to easily install and activate these extensions,  with MAMP for example, because I can't finish the installation?

Moodle version: Moodle 3.10+ (Build: 20201121)
PHP Version: 7.4.1
Web browser: Chrome
OS: Windows 10 Home Edition
MAMP Version 4.2.0

Thank you for your help

Alexandra

Average of ratings: -
In reply to Alexandra B

Re: How to install and activate PHP Intl and fileinfo extensions easily?

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
I don't know exactly how you installed everything. However, I do notice that you have installed MAMP instead of XAMPP. Sure, perhaps one could do this, but I install MAMP on my Mac and XAMPP on my PC.

I don't know if this will be useful, but several years ago I gave a presentation at a MoodleMoot about how I install MAMP and XAMPP.

In reply to Rick Jerz

Re: How to install and activate PHP Intl and fileinfo extensions easily?

by Alexandra B -

Thank you for your answer Rick smile 

 I followed a tutorial on LinkedIn learning but it seems not to be up to date unfortunately L

I installed MAMP for Windows https://www.mamp.info/fr/mamp/windows  and I created a data Base called "moodledata" and a user called "moodleuser" with a password.

I downloaded and unpacked Moodle on my server in Mamp/htdocs

I tried to launch the installation process with Chrome http://localhost/moodle  and I got the two red flags I mentioned above.

 

I have discovered since that it is possible to use an installer for Windows https://docs.moodle.org/310/en/Complete_install_packages_for_Windows and the process is easier.

So I have just deleted the Moodle file that I had previously unpacked in the MAMP file on my computer.

I downloaded the Moodle package for Windows https://download.moodle.org/windows/  (Moodle 3.11dev MOODLE_311_STABLE)

I unpacked it on my computer and I clicked on StartMoodle.exe and the following window opened

 

 I then clicked on StopMoodle.exe and the following error messages appeared

 

Do I have to uninstall MAMP and start from scratch ?

I'm completely lost because I know nothing about servers and I really don't understand what I have to do.


In reply to Alexandra B

Re: How to install and activate PHP Intl and fileinfo extensions easily?

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
I don't know. There are many ways to get these "packages" to work. I have had failure with some, and success with others, as I mention in the video that I provided. In general, you should be able to delete the folder on your PC, but you do have to be careful if the XAMPP or MAMP process is still running (on Port 80), so you might need to restart your computer.
In reply to Rick Jerz

Re: How to install and activate PHP Intl and fileinfo extensions easily?

by Alexandra B -

In case other people have the same problems, here is is what I did : I uninstalled MAMP, I deleted the DataBase and the user and I clicked on Start Moodle.exe again.  It's working ! 😅

Average of ratings: Useful (1)