server check error curl and opcache.enable during installing version 3.3.1

server check error curl and opcache.enable during installing version 3.3.1

by Yang Hon-Jang -
Number of replies: 4

Following instructions in https://docs.moodle.org/33/en/Manual_install_on_Windows_7_with_Apache_and_MySQL, I install MySQL5.7(mysql-installer-web-community-5.7.19.0.msi), Apache2.4(httpd-2.4.27-win32-VC14.zip),PHP7.1(php-7.1.7-Win32-VC14-x86.zip),moodle3.3.1STABLE(https://github.com/moodle/moodle.git) on my desktop with windows 10 and chrome browser.

Every steps seems OK until step 7: install moodle. Error appeared(see attached png file), say curl need installed and enabled; opcache.enable setting should be changed, then I cannot proceed installation anymore.

I follows the links https://docs.moodle.org/33/en/admin/environment/php_extension/curl and https://docs.moodle.org/33/en/OPcache, but cannot fix the problem.

Attachment moodle3.3.1install-fail.png
Average of ratings: -
In reply to Yang Hon-Jang

Re: server check error curl and opcache.enable during installing version 3.3.1

by Stefan Venter -

Good day


I have the same problem, did you ever find a solution?

In reply to Stefan Venter

Re: server check error curl and opcache.enable during installing version 3.3.1

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

Try putting your PHP directory on the system path (not the user path), restart Apache and try again. I vaguely remember that cURL had some dependencies and they're shipped with PHP but they need to be on the path for it to find them.

In reply to Leon Stringer

Re: server check error curl and opcache.enable during installing version 3.3.1

by Stefan Venter -

Hi Leon, thank you very much for the feedback.

Unfortunately I am still learning a lot - could you perhaps give me some pointers as to how i go about that?

Thanks again

In reply to Stefan Venter

Re: server check error curl and opcache.enable during installing version 3.3.1

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

It varies slightly with Microsoft Windows versions. You need to get to the advanced system settings in Control Panel and add the PHP folder to the end of the Path. Make sure it's the Path listed under System environment variables not User environment variables. So if your PHP folder, the one containing php-win.exe, is C:\PHP then add this to the end of the current folders in the Path list. These instructions may help finding the Path setting, if not you'll need to search for the steps for your specific Microsoft Windows version.