Is file_cache_module not available in Apache 2.2, RHEL-6 for Kaltura v3.0.0??

14 replies [Last post]
Joined: 11/17/2010
Points: 2

I am trying to install Kaltura v3.0.0 on RHEL-6 with Apache 2.2. It appears that Apache 2.2 does not come with mod_file_cache.so built as a loadable module. Is there a workaround for this? I can't find anything on the Kaltura web site and very little on the web. This is the error I am getting:


Verifing prerequisites

One or more prerequisites required to install Kaltura failed:
Missing memcache PHP extension
Missing file_cache_module Apache module

Please resolve the issues and run the installation again.

I also have the memcache PHP extension already installed, but it does not seem to recognize it.

I've also seen a lot of discussion that file_cache_module is not a very safe and/or appropriate tool. The discussions seem to suggest using mod_disk_cache instead.

I believe that I am able to recompile apache/httpd from scratch with mod_file_cache support enabled, but that would not be desirable in a production environment.

Peace,
Sean

Joined: 11/17/2010
Points: 2

I was able to get KalturaCE installed and working after compiling Apache from source and enabling mod_file_cache.

Is there any plan to switch KalturaCE to using mod_disk_cache instead as suggested by the developers of Apache?

Having to use a custom compiled web server in a production environment is not ideal for doing future updates on the server.

Peace,
Sean

Joined: 05/10/2011
Points: 2

I'm having the same concerns. Having a custom install of Apache in a production environment breaks so many things it isn't funny. It means I can't use the RHEL update network to maintain my server, which is a real problem.

Anyone at Kaltura reading this?

Joined: 05/20/2011
Points: 2

Same issue here. there also isn't a php-imap package for RHEL 6. That is more of a RH issue than a Kaltura issue though. RHEL 6 has been out for 6 months already. 6.1 is out now. It is unlikely that this mod will be included in any future release as it is deprecated.

Joined: 03/01/2011
Points: 83

I am running into the same issue. Sean, can you go over the steps you did to enable this? Thanks.

Joined: 06/03/2011
Points: 3

Same problem here. This is quite troublesome since I cannot install Kaltura CE at this point with

One or more prerequisites required to install Kaltura failed:
Missing file_cache_module Apache module
...

Joined: 09/30/2011
Points: 2

Not sure if this will have consequences as I proceed with Kaltura, but by editing the prerequisites.ini file in the installer folder and commenting the apache_modules[] = "file_cache_module" line.

This allowed Kaltura to install.

Next, after doing the include of the kaltura file into httpd.conf, the httpd server would no longer start. I had to edit /opt/kaltura/app/configurations/apache/my_kaltura.conf file and comment the two MMapFile lines...

Apache started at that point and I can get to the start page... I'll try to follow-up on any of the fallout.

Joined: 10/06/2011
Points: 3

I did this as well but after commenting the 2 mmapfile lines I get a "Starting httpd: [FAILED]" error when I try to start Apache, did you have any more luck ?

Joined: 10/27/2011
Points: 2

i have the same issue, did you get full functionality commenting that lines?

Thanks.

Joined: 11/29/2010
Points: 108

I got the VMware image put onto our vSphere farm (we're big VM users) and copied the mod_file_cache.so file from there and manually added it to the apache config, it registered fine.

Joined: 12/04/2011
Points: 3

CentOS 6 doesn't include mod_file_cache by default, so you have to build yourself this way:

1. yum install httpd-devel
2. do: rpm -qa | grep httpd
2. write down the version number. Mine is: 2.2.15
3. go get the exact version of httpd source from http://httpd.apache.org
4. uxtract the source to some directory
5. go to: /my/source/dir/httpd-/modules/cache
6. do: apxs -i -a -c mod_file_cache.c
7. there you go, you've got mod_file_cache.so in your /etc/httpd/modules
8. your httpd.conf supposed to be automatically updated too. Do check that one too
9. don't forget to restart httpd
10. continue to install Kaltura CE

Hope it helps

Joined: 06/22/2009
Points: 2

@ardhi enormously grateful.
As noted by the item 8, I just had to edit to / etc / httpd / conf / httpd.conf and add the line

LoadModule file_cache_module modules/mod_file_cache.so

Restart httpd and...

Failed to connect to database 127.0.0.1:3306 user:root. Please check the database settings you provided and verify that MySQL is up and running.

... and then I think it was caused by using the root account for the installation http://bit.ly/vs9jqz

I will create a new user

Thanks for your data

Joined: 11/27/2009
Points: 8

And about memcache PHP extension?

I got this error:

Missing memcache PHP extension

Any help?

Joined: 01/05/2009
Points: 1697

jscmenezes - You should install memcache

Joined: 02/15/2012
Points: 1

Hello all,

The attached script installs all required packages to compile mod_cache_file.so, it then retrieves the appropriate Apache sources [depending on the version of Apache you installed] and compiles the module.
It works for both RPM based distros [tested with CentOS 6.2] and deb based [tested with Debian testing].
Of course, it requires access to RPM/deb repos where needed packages can be retrieved from as well as root privileges needed in order to install the module.

Hope this will be of use :)

May the source be with you,

Jess Portnoy

AttachmentSize
compile_mod_file_cache.sh_.txt902 bytes