LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[Webdev] module question

[Webdev] module question

Paul J Collins sneakums at eircom.net
Mon Aug 14 19:07:56 IST 2000


>>>>> "exit" == exit  <exit at randomkeystrokes.com> writes:

    exit> Hi, i have a quick question about installing php and perl
    exit> modules for apache1.3.12. I am obiviously doing something
    exit> wrong but i dont know what , here's what im doing:

-snip-

    exit> This also works great, and php test files also work. BUT
    exit> here is where my problem is: 'httpd -l' lists mod_php4.c in
    exit> the output list of installed modules. But now my previous
    exit> installation of perl and its traces from the httpd binary
    exit> have been lost. Is there something i can do to tell the php
    exit> installation not to overwrite the perl installation ? or
    exit> what am i doing wrong ?? ie i want perl and php supported in
    exit> the same httpd binary but at the moment it only lets me do
    exit> one or the other.
    exit> Sorry bout the lenght, Thanks

It looks like you built both the mod_perl and mod_php4 modules
statically; when you installed mod_perl, you got an httpd binary with
mod_perl built into it; you then installed mod_php4, which overwrote
your existing mod_perl-containing httpd with one containing mod_php4
on its own.  Both the PHP and Perl builds re-link httpd, incorporating
their own code.

When I built mod_perl and mod_php4, I made them both DSO, so that I
can load them dynamically, but apparently mod_perl has problems when
used as a DSO and the author os not interesting in fixing those
problems because he does not like DSO.

One possible soltion would be to build a DSO httpd with mod_perl
linked in, and then build mod_php4 as a module, which you can load
using the LoadModule directive (not sure about the name).

A better solution would be to build an httpd with both of them built
in; you should be able to do this by keeping your php and mod_perl
builds and rebuilding Apache, modifying the Configuration file to add
libphp4.a and libperl.a from the build trees at link time; no DSO
required (not sure about those library names either).

Paul.

-- 
Paul Collins <sneakums at eircom.net> - - - - - [ A&P,a&f ]
 GPG: 0A49 49A9 2932 0EE5 89B2  9EE0 3B65 7154 8131 1BCD
 PGP: 88BA 2393 8E3C CECF E43A  44B4 0766 DD71 04E5 962C
"Be you.  Be what you're like.  Be like yourself."





More information about the Webdev mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell