Hey.
I have installed AMF 4.20 and is up and running, for the most part.
I sometimes get errors like
[Mon Sep 04 14:36:27.916375 2017] [perl:error] [pid 12930:tid 140489697052416] lookup of 'Apache2::AMFLiteDetectionFilter::handler' failed[Mon Sep 04 14:36:27.916395 2017] [perl:error] [pid 12930:tid 140489697052416] [client 212.170.205.210:61489] Attempt to reload Apache2/AMFLiteDetectionFilter.pm aborted.
Compilation failed in require.
[Mon Sep 04 15:00:45.028813 2017] [perl:error] [pid 29617:tid 140216891127552] Bareword "STATUS_ERROR" not allowed while "strict subs" in use at /usr/share/perl/5.20/IO/Uncompress/Unzip.pm line 186.
Bareword "STATUS_ENDSTREAM" not allowed while "strict subs" in use at /usr/share/perl/5.20/IO/Uncompress/Unzip.pm line 190.
Bareword "STATUS_OK" not allowed while "strict subs" in use at /usr/share/perl/5.20/IO/Uncompress/Unzip.pm line 208.
BEGIN not safe after errors--compilation aborted at /usr/share/perl/5.20/IO/Uncompress/Unzip.pm line 765.
Compilation failed in require at /usr/local/share/perl/5.20.2/Apache2/AMFLiteDetectionFilter.pm line 26.
BEGIN failed--compilation aborted at /usr/local/share/perl/5.20.2/Apache2/AMFLiteDetectionFilter.pm line 26.
Compilation failed in require at (eval 4) line 2.
[Mon Sep 04 15:43:13.972124 2017] [perl:error] [pid 2417:tid 140524258248448] lookup of 'Apache2::AMFLiteDetectionFilter::handler' failed
[Mon Sep 04 15:43:13.972147 2017] [perl:error] [pid 2417:tid 140524258248448] [client 212.170.205.210:56502] Attempt to reload Apache2/AMFLiteDetectionFilter.pm aborted.
Compilation failed in require.
It usually works fine, and restarting apache server solves it. If I don't restart the server, it just keeps logging errors and stops serving pages in any virtual host.
Still, I find it takes a while to redirect users to the mobile site, or even to find out if the client is a device.
This is the configuration I have for global httpd.conf
PerlOptions +Parent
PerlSwitches -I/usr/local/share/perl/5.20.2/Apache2/
PerlSetEnv AMFMobileHome /home/AMF
PerlTransHandler +Apache2::AMFLiteDetectionFilter
PerlSetEnv FullBrowserMobileAccessKey esc
PerlSetEnv AMFProductionMode true
I have tried to add the location of the Apache2 mods in the Inc library but no change.
What am I doing wrong?
Thanks for any help.