Page 1 of 1

Compatibility with Apache 2.4 and PHP 8.1

Posted: Tue Oct 18, 2022 9:06 pm
by JorgeCarousel
Hey guys,

I just downloaded the latest version, put it on an Apache 2.4 with PHP 8.1 and the first thing it did was tell me there were syntax errors in every .htaccess for the lines Order, Deny and Allow; these are deprecated in version 2.4, I replaced them with the new Require all granted or denied, depending on the wrong line, but then when I started the install process, it wasn't able to get the system's information from it, which tells me it's not compatible with PHP 8.1.

I saw a topic saying PHP must be <7.3 but version 7.4 is about to go EOL I believe 7.3 already is, so is this going to be fixed?

Thanks.

Re: Compatibility with Apache 2.4 and PHP 8.1

Posted: Wed Oct 19, 2022 7:16 am
by max
- Requiremente: https://docs.formalms.org/reference-gui ... ments.html
- support for php 8.x => in our roadmap and on its way

Re: Compatibility with Apache 2.4 and PHP 8.1

Posted: Wed Oct 19, 2022 2:06 pm
by JorgeCarousel
Thank you, but as I said before PHP v7.4 is about to reach EOL (in November if I remember correctly) so the only option I have is not to use it, at least until it is compatible with PHP 8.x also it would be nice to have it compatible with Apache 2.4 and up, after all version 2.2 has not been updated in a long time, it might also reached EOL.

Re: Compatibility with Apache 2.4 and PHP 8.1

Posted: Wed Oct 19, 2022 2:20 pm
by alfa24
Hi, there are not particular directives that won't work with Apache 2.4 (I'm using multiple instances of Forma LMS in Apache 2.4 with no issues).
Regarding PHP, you're absolutely right, 7.4 active support has already ended (28 Nov 2021), while security support will end in 1 month (28 Nov 2022).

Re: Compatibility with Apache 2.4 and PHP 8.1

Posted: Wed Oct 19, 2022 2:25 pm
by JorgeCarousel
My Apache httpd 2.4.54 gave error 503, when I checked the log it said:

.htaccess: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration

And I found that all the .htacess had lines with Order, Allow and Deny which are deprecated in version 2.4

Re: Compatibility with Apache 2.4 and PHP 8.1

Posted: Wed Oct 19, 2022 2:27 pm
by alfa24
I'm on Apache 2.4.52 and no problems.

Re: Compatibility with Apache 2.4 and PHP 8.1

Posted: Wed Oct 19, 2022 2:32 pm
by JorgeCarousel
You must have access_compat module enabled, You should read this: https://httpd.apache.org/docs/2.4/howto/access.html

Re: Compatibility with Apache 2.4 and PHP 8.1

Posted: Wed Oct 19, 2022 2:36 pm
by alfa24
It's enabled.