Apache Mobile Filter installation on Centos servers.

posted in: Mobile Technology | 0

Summary:

This is the software and perl modules you need to install before Apache mobile Filter Installation.

Apache 2.x.x
mod_perl 2.0

Apache2::Filter
Apache2::RequestRec
Apache2::RequestUtil
Apache2::Connection
Apache2::SubRequest
Apache2::Log;
CGI::Cookie
APR::Table
LWP::Simple
Image::Resize
Apache2::Const
IO::Uncompress::Unzip

For Install Apache Perl in Linux.

Yum install httpd-devel

Yum install mod_perl

For installing Perl modules.

cpan install Image::Resize

cpan install Apache2::Filter

and same for above perl modules.

For download and install the Apache Mobile Filter suite follow this steps:

mkdir AWF
cd AWF
wget http://downloads.sourceforge.net/project/mobilefilter/ApacheMobileFilter/X.XX/Apache2-ApacheMobileFilter-X.XX.tar.gz?use_mirror=dfn
tar -xzvf Apache2-WURFLFilter-X.XX.tar.gz
cd Apache2-WURFLFilter-X.XX/
perl Makefile.PL
make install

Installing Memcached

yum install memcached

or

rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

 

After installing all above modules we have to  configure in apache config file like below.

 

PerlSetEnv AMFHome /home/xxx

PerlSetEnv AMFMobileHome /home/xxx

PerlSetEnv CacheDirectoryStore /tmp/xxx

PerlTransHandler +Apache2::AMFWURFLFilter

PerlSetEnv DownloadWurflURL http://downloads.sourceforge.net/wurfl/wurfl-latest.zip

PerlSetEnv LoadWebPatch true

PerlSetEnv PatchWurflNetDownload true

PerlSetEnv PatchWurflUrl http://wurfl.sourceforge.net/web_browsers_patch.xml

PerlSetEnv ServerMemCached 127.0.0.1:11211,/var/sock/memcahed

PerlTransHandler +Apache2::AMFWURFLFilterMemcached

PerlSetEnv ResizeImageDirectory /tmp/xx

Previous Post

Leave a Reply