mod_rewrite not working properly

Locked
helix
KeyHelp Translator
Posts: 7
Joined: Thu 14. Jan 2021, 09:05

mod_rewrite not working properly

Post by helix »

Hello,

I have just started to play around with KeyHelp and I must say, I really love what I see.
However I experience a problem with mod_rewrite, it is not working properly as it should.

I have tried to install WHMCS on the server, while it works, the rewrite does not. I have identical setup on another web server, but this is running another web panel, and there it works fine.

Here is environment check from WHMCS.
Image

I have tried various .htaccess directions without results.

Running a2enmod rewrite says rewrite is already enabled.

Any suggestions are welcomed.
User avatar
Florian
Keyweb AG
Posts: 1243
Joined: Wed 20. Jan 2016, 02:28

Re: mod_rewrite not working properly

Post by Florian »

Hallo,


maybe you need to remove some of the disabled_functions in the PHP settings of the Keyhelp user so that your server can recognize it.

Mod_rewrite is definetely active and working on a Keyhelp Server
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
helix
KeyHelp Translator
Posts: 7
Joined: Thu 14. Jan 2021, 09:05

Re: mod_rewrite not working properly

Post by helix »

Hello and thank you for the reply.

I managed to solve that issue. I have a question about another if it is ok.

I run this as php 7.4 but I get a warning that the system is running a different version of cron.

Cron PHP Version Mismatch
Your environment appears to be running a different PHP version (7.3.20) for the System Cron than the currently loaded PHP version (7.4.11). This may cause issues running your System Cron.

Is it possible to upgrade the system cron?
User avatar
Florian
Keyweb AG
Posts: 1243
Joined: Wed 20. Jan 2016, 02:28

Re: mod_rewrite not working properly

Post by Florian »

Hallo,

when you set up the Cron in Keyhelp you can choose the PHP Version.

If you set up the cron via Console you must use the correct PHP path , e.g. /opt/keyhelp/php/7.4/bin/php for PHP 7.4
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
helix
KeyHelp Translator
Posts: 7
Joined: Thu 14. Jan 2021, 09:05

Re: mod_rewrite not working properly

Post by helix »

Thank you, I set the cron task to match the php version, it is still complaining, but the cron ran fine, I'll give it some time to recheck.

Curiously I was trying to do some file tasks in PHP and I got an error telling me that finfo is missing from the PHP build.

Error: The "finfo" extension is currently missing from your PHP build. Please load that extension and try again.

But when running "php -m" fileinfo is listed. Any ideas?

Thank you again.
User avatar
Florian
Keyweb AG
Posts: 1243
Joined: Wed 20. Jan 2016, 02:28

Re: mod_rewrite not working properly

Post by Florian »

Hallo,

again:

There are several PHP versions installed.

If you use the command "php -m" the Sysem PHP version delived by the OS is used.

For the Keyhelp PHP versions you have to use /opt/keyhelp/php/<version>/bin/php -m
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Locked