Installation Error

Install and configure FormaLMS and DoceboCE
Post Reply
pravinu
Newbie
Posts: 2
Joined: Fri Jan 03, 2020 9:11 am
Version: forma.lms 2.0

Installation Error

Post by pravinu »

I am using php 7.2 and on Step 2 I see next step button disabled, please check the attached screenshot.
Screen Shot 2020-01-03 at 1.43.51 PM.png
alfa24
Senior Boarder
Posts: 1979
Joined: Fri Nov 24, 2017 8:45 am

Re: Installation Error

Post by alfa24 »

Forma needs PHP < 7.1, better if < 7.0.11
Per supporto GRATUITO contattatemi in privato qui
pravinu
Newbie
Posts: 2
Joined: Fri Jan 03, 2020 9:11 am
Version: forma.lms 2.0

Re: Installation Error

Post by pravinu »

Ohh I have existing server with other softwares installed, any other way or workaround?
alfa24
Senior Boarder
Posts: 1979
Joined: Fri Nov 24, 2017 8:45 am

Re: Installation Error

Post by alfa24 »

You could try to bypass the control (can't say how many things in Forma will stop working, as my versions are deeply changed and now compatibles with 7.3).
To do this, find the following in /install/controllers/Step2Controller.php:

$res['php']=((version_compare(PHP_VERSION, '5.2.0', '>=') && version_compare(PHP_VERSION, '7.0.11', '<')) ? 'ok' :
((version_compare(PHP_VERSION, '7.0.11', '>=') && version_compare(PHP_VERSION, '7.1.0', '<')) ? 'warn' : 'err' ));

and change it to:

$res['php']='ok';
Per supporto GRATUITO contattatemi in privato qui
hakangur
FormaLms User
Posts: 27
Joined: Sat Jul 21, 2018 1:27 pm
Version: forma.lms 2.0

Re: Installation Error

Post by hakangur »

We managed this by adding the following line into the .htaccess file:

AddHandler application/x-httpd-php56 .php

I do not know if it will work under all PHP installations.

By the way, once FormaLMS is installed, switching back to PHP 7+ is possible.
petermourra
Newbie
Posts: 1
Joined: Wed Nov 11, 2020 6:41 pm

Re: Installation Error

Post by petermourra »

hello, I have downgraded my php to the recommended and still cannot go past step 2, ive tried every version since 5.x.x
alfa24
Senior Boarder
Posts: 1979
Joined: Fri Nov 24, 2017 8:45 am

Re: Installation Error

Post by alfa24 »

It can be a PHP setting or mySQL. You need to debug
Per supporto GRATUITO contattatemi in privato qui
miloking
Newbie
Posts: 1
Joined: Tue May 11, 2021 8:26 am

Re: Installation Error

Post by miloking »

I tried to install in my local system but failed at step 2 with error Error: Could not connect to the database! Please, make sure the details are correct.

What should be done to overcome this error? or rather what are the procedures for setting up this software on local server?

---------------------
Are You Looking For The Best Recliners? Here Are Some Of The Greatest Recliners that are affordable, luxurious, and above all - Comfortable!
alfa24
Senior Boarder
Posts: 1979
Joined: Fri Nov 24, 2017 8:45 am

Re: Installation Error

Post by alfa24 »

PHP and mysql versions?
Per supporto GRATUITO contattatemi in privato qui
Post Reply