Forums / Install & configuration / file_get_contents() for Apache 2

file_get_contents() for Apache 2

Author Message

Paul Thomas

Friday 21 January 2005 1:16:46 am

Hi,

I receive the following error:

Fatal error: Call to undefined function: file_get_contents() in /home/httpd/vhosts/DOMAIN]/httpdocs/lib/eztemplate/classes/eztemplatefileresource.php on line 245
Fatal error: eZ publish did not finish its request

The execution of eZ publish was abruptly ended, the debug output is present below.

I am running php4.3.10 (the correct version with file_get_contents) & apache 2.0.40 on RH9

One of the messages I read seem to suggest that Apache 2 doesn't work with ezP - any ideas/work arounds?

I've searched through the forum, and all I can find is references to upgrade php to 4.3 (which I have)....

tia

paul.

Hans Melis

Friday 21 January 2005 4:12:28 am

Hi Paul,

Apache2 and eZ publish do work together (btw, it's actually PHP and Apache2 and not an eZ publish issue). We have Apache2 serving several eZ publish sites, and all my test installs use Apache2 as well.

PHP 4.3.10 indeed has the file_get_contents() function, but are you 100% sure that your eZ publish pages are served by PHP 4.3.10? What I do to verify the PHP Apache is using, is:
- edit index.php
- Make the first line of code: phpinfo(); exit();
- Access any page.

If that page also says PHP 4.3.10 then you have a really weird problem.

Hans
http://blog.hansmelis.be

Paul Thomas

Friday 21 January 2005 4:26:39 pm

Hi,

Its definetly 4.3.10.

However, I did notice Virtual Directory support is disabled....????

Anyway, I tried installing WebGUI as an alternative. In doing the install, ezp has started working!
Obviously I had screwed up one of the files... but questioning what I had done got it working for me ~ cheers!

Paul.