Moodle Installation Page (PHP Version)

Moodle Installation Page (PHP Version)

by Alex Nyamweya -
Number of replies: 3

Hello,

I'm having an issue getting to the installation page of Moodle. I'm running it on CentOS 7. When I go to http://my-ip-address/learning (I changed the moodle directory in var/www/html to learning). I get this message:

Moodle 3.4 or later requires at least PHP 7.0.0 (currently using version 5.4.16). Some servers may have multiple PHP versions installed, are you using the correct executable?

But I confirmed I have PHP 7.0 installed. When I run php -v I get the following:

PHP 7.0.30 (cli) (built: Apr 28 2018 08:14:08) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.30, Copyright (c) 1999-2017, by Zend Technologies

Average of ratings: -
In reply to Alex Nyamweya

Re: Moodle Installation Page (PHP Version)

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

You have confirmed that you have version 7 of *command line* PHP. 

This is nothing to do with web server version of PHP. They are entirely separate installations. That will, almost certainly, be 5.4

In reply to Alex Nyamweya

Re: Moodle Installation Page (PHP Version)

by Alex Nyamweya -

Never mind I figured it out. I just had to restart Apache using the command:

systemctl restart httpd

In reply to Alex Nyamweya

Re: Moodle Installation Page (PHP Version)

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Well... that would have been the last part of fixing it big grin