Hello,

I am trying to get php/apache configured to run imp from the horde project. My frustration begins with PEAR. My php version is 4.2.3 running on mandrake 9. I am told that pear is included with 4.3.x, but there isn't an rpm I can find, and I have no clue how to compile it.

The second problem is XML support. IMP tells me I need to recompile with the --with-xml option, or something. I would happily compile if it worked, I'd get a newer version of php and xml support. I'm just not experienced with compiling.

If I do 'phpinfo()' which will echo the 'build string' and I use that to compile, will it be configured the same as I have it now? I want to upgrade, but if I compile php, I want to make sure it doesn't conflict in terms of configuration. I should be able to ./configure with the options echoed by php_info() or whatever the function is, right?

My concern is that I'm running php as an apache module, not a standalone executable. How do I compile php so that it in fact does run as a module?

There are a few pages on the web that describe compiling php on linux, but most of them are way over my head, and they all are different enough that I am lost. The server is a production server, which makes a little weary about compiling if it fails.

I would like to learn compiling if thats what it takes. But I do have php-xml installed (rpm) and expat (rpm), but I still can't get horde to run...it says xml is not available. What to do!!!

Thanks

    Do you have libxml installed?

    I never use php as a module, but I always compile my own. Here's the step-by-step:

    http://www.php.net/manual/en/install.apache.php

    Don't be afraid of compiling, 90% of the time it's a breeze, once you've gotten used to it. Where you run into problems is trying to locate and tell ./configure where libraries are.

    And yes, to your phpinfo() question. Just use those params.

    Make backups before overwriting anything though.

      Yes, I have libxml installed.

      I am also hesitant to recompile if I don't know what the problem is? I have been told php needs expat for apache in order to do xml. If php isn't the problem, then I really don't want to attempt compiling yet (one thing at a time).

      This thing is driving me nuts. I just don't know what to do with it next. Do you know if I have to enable expat in apache before php sees it? I have no idea.

      Thanks for the help. This is drivin' me nuts!!!

        No I don't. I have XML installed with one of my binaries for shell scripting, but it's been so long.

        You can download the PHP sources, untar it and then run your configure script with your options. Then do a make but not make install. This will run through everything and error out telling you what it's missing.

        If you go this route, you will need to also download apache and run configure and maybe make, but nothing else. The reason is, when compiling for apache you have to use --with-apache=/path/to/apache/src or I think with modules it's --with-apxs.

        It's the long way around, but the only help I can really offer, since I haven't been in your boat entirely. It is, however, the way I'd do it at this point if I only have the info you are stating you have. But since I always compile, it's quick and easy for me.

          Write a Reply...