in reply to Problems installing PHP::Interpreter

It appears your problem is related to having built PHP as an apache module (i.e. --with-apxs).

You might find this thread interesting, in which the module's author states

"I didn't mean to say that the embed SAPI and mod_php SAPI where fully mutually exclusive (though I wouldn't be shocked if that was the case). What is definitely mutually exclusive is building them at the same time in the same tree. The build process simply doesn't support that."

How are you planning to use PHP::Interpreter? Do you actually need PHP as an apache module? As it looks, quite a bit of fiddling would be required in that case...   If you're really determined, you might start without --with-apxs, and then, after all other problems have been resolved, come back to your original plan ;)   Good luck anyway!

Replies are listed 'Best First'.
Re^2: Problems installing PHP::Interpreter
by astroboy (Chaplain) on Apr 28, 2007 at 19:55 UTC

    Well I have a Perl CMS that generates static files, which is in this instance are PHP (similar in intent to Bricolage, but on a much smaller scale). However, there is a new requirement, where some of the content needs to be dynamic, and the solution has been for the Perl backend to generate the files to disk and then use LWP to fetch the content via the webserver and then display it. This is pretty yucky and inefficient, so I figured PHP::Interpreter could be the solution.

    Since Apache is already installed with various other modules, I figured that it's too late to add PHP as a static build without building all other modules and Apache from scratch too, hence attempting to build it as an Apache module. However, I now see that the alternative to PHP::Interpreter, PHP, doesn't work with PHP built as an Apache module, so I guess the same reasoning applies in this instance...

      astroboy, did you ever figure this problem out? i'm having the same problems running/compiling PHP interpreter (i'm trying to install Bricolage also)

      -Tony
      abiacco@formatdynamics.com
        Alas, I gave up in the end