php4 / php5 unable to locate module

This is a discussion on php4 / php5 unable to locate module within the PHP General forums, part of the PHP Programming Forums category; Hello, I would appreciate your help. I am trying to get php and apache work together and have a strange ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-11-2006
Zbigniew Szalbot
 
Posts: n/a
Default php4 / php5 unable to locate module

Hello,

I would appreciate your help. I am trying to get php and apache work
together and have a strange error while starting apache:

Can't locate API module structure `php4_module' in file
/usr/local/libexec/apache2/libphp5.so: Undefined symbol "php4_module"

I am using PHP 5.1.6 (cli) and Apache/2.0.59 on a FreeBSD 6.1 stable
release. Could anyone offer any suggestion why php4_module is missing in
libphp5.so?

Many thanks!

--
Zbigniew Szalbot
Reply With Quote
  #2 (permalink)  
Old 09-11-2006
Curt Zirzow
 
Posts: n/a
Default Re: [PHP] php4 / php5 unable to locate module

On 9/11/06, Zbigniew Szalbot <admin@szalbot.homedns.org> wrote:
> Hello,
>
> I would appreciate your help. I am trying to get php and apache work
> together and have a strange error while starting apache:
>
> Can't locate API module structure `php4_module' in file
> /usr/local/libexec/apache2/libphp5.so: Undefined symbol "php4_module"


How did you install both php and apache?


Curt
Reply With Quote
  #3 (permalink)  
Old 09-11-2006
Zbigniew Szalbot
 
Posts: n/a
Default Re: [PHP] php4 / php5 unable to locate module

On Mon, 11 Sep 2006, Curt Zirzow wrote:
Hello,


> > I would appreciate your help. I am trying to get php and apache work
> > together and have a strange error while starting apache:
> >
> > Can't locate API module structure `php4_module' in file
> > /usr/local/libexec/apache2/libphp5.so: Undefined symbol "php4_module"

>
> How did you install both php and apache?


Thanks for such a fast response. I used portinstall. I did have apache
1.3.37 at the beginning but it later turned out that for some reason I
will have to upgrade for apache 2.x so I ran pkg_delete and the went for
apache2.

I am quite new to FreeBSD but the machine is not online and I want to test
and learn. I need these to working as I am running/testing/learning exim
and plan to use vexim in future. Probably irrelevant here but I am willing
to provide output.

Here is the content of php5 options:

_OPTIONS_READ=php5-5.1.6
WITH_CLI=true
WITH_CGI=true
WITH_APACHE=true
WITHOUT_DEBUG=true
WITHOUT_SUHOSIN=true
WITH_MULTIBYTE=true
WITH_IPV6=true
WITH_REDIRECT=true
WITH_DISCARD=true
WITH_FASTCGI=true
WITH_PATHINFO=true

Many thanks for your help!


--
Zbigniew Szalbot
Reply With Quote
  #4 (permalink)  
Old 09-11-2006
Curt Zirzow
 
Posts: n/a
Default Re: [PHP] php4 / php5 unable to locate module

On 9/11/06, Zbigniew Szalbot <admin@szalbot.homedns.org> wrote:
> On Mon, 11 Sep 2006, Curt Zirzow wrote:
> Hello,
>
>
> > > I would appreciate your help. I am trying to get php and apache work
> > > together and have a strange error while starting apache:
> > >
> > > Can't locate API module structure `php4_module' in file
> > > /usr/local/libexec/apache2/libphp5.so: Undefined symbol "php4_module"

> >
> > How did you install both php and apache?

>
> Thanks for such a fast response. I used portinstall. I did have apache
> 1.3.37 at the beginning but it later turned out that for some reason I
> will have to upgrade for apache 2.x so I ran pkg_delete and the went for
> apache2.


This is where port understanding comes in handy, I avoid port
installation of my server level of applications (php/apache/db).

If I understand correctly you first did a portinstall to get
apache/php4 installed and then did a pkg_delete to remove those old
versions and then added portinstall php5. What seems to be happening
is that you have an apache version that is trying to load php4 but
php5 is installed and thus the error. There are two options i think
will help:
1) start over
2) ensure there arn't any current port issues (via the bsd port mailing list)

Or
1) install php/apache/(db) manually and manage updates yourself.

What ever is the case it is obvious that you have conflicting
(configuration/installation)'s.


You might also want to try some bsp-port resources on searching for
what is going wrong.

HTH,
Curt.
Reply With Quote
  #5 (permalink)  
Old 09-11-2006
Zbigniew Szalbot
 
Posts: n/a
Default Re: [PHP] php4 / php5 unable to locate module

On Mon, 11 Sep 2006, Curt Zirzow wrote:
Hi there again,


> > Thanks for such a fast response. I used portinstall. I did have apache
> > 1.3.37 at the beginning but it later turned out that for some reason I
> > will have to upgrade for apache 2.x so I ran pkg_delete and the went for
> > apache2.

>
> This is where port understanding comes in handy, I avoid port
> installation of my server level of applications (php/apache/db).
>
> If I understand correctly you first did a portinstall to get
> apache/php4 installed and then did a pkg_delete to remove those old
> versions and then added portinstall php5. What seems to be happening
> is that you have an apache version that is trying to load php4 but
> php5 is installed and thus the error. There are two options i think
> will help:
> 1) start over


OK. Thanks! I did try to start over by deleting php5 and issuing make,
make install and make clean. However, the result was just the same.

I need to go to BSD lists to find out how to completely wipe out PHP from
the system so that there is no trace of it left. Would that be a good
solution for a newbie in *nix systems in general?

Thanks again. I really appreciate that you are devoting so much of your
time to help me!

Warm regards,

--
Zbigniew Szalbot
Reply With Quote
  #6 (permalink)  
Old 09-11-2006
Zbigniew Szalbot
 
Posts: n/a
Default Re: [PHP] php4 / php5 unable to locate module

Hi,

Please, please forgive! How dumb a person (me!) can sometimes be....!

I looked at httpd.conf again and saw that instead of replacing php4.so
library object I added a new line with php5 entry...

Sorry to have bothered!

Thanks!

Zbyszek

On Mon, 11 Sep 2006, Zbigniew Szalbot wrote:

> On Mon, 11 Sep 2006, Curt Zirzow wrote:
> Hi there again,
>
>
> > > Thanks for such a fast response. I used portinstall. I did have apache
> > > 1.3.37 at the beginning but it later turned out that for some reason I
> > > will have to upgrade for apache 2.x so I ran pkg_delete and the went for
> > > apache2.

> >
> > This is where port understanding comes in handy, I avoid port
> > installation of my server level of applications (php/apache/db).
> >
> > If I understand correctly you first did a portinstall to get
> > apache/php4 installed and then did a pkg_delete to remove those old
> > versions and then added portinstall php5. What seems to be happening
> > is that you have an apache version that is trying to load php4 but
> > php5 is installed and thus the error. There are two options i think
> > will help:
> > 1) start over

>
> OK. Thanks! I did try to start over by deleting php5 and issuing make,
> make install and make clean. However, the result was just the same.
>
> I need to go to BSD lists to find out how to completely wipe out PHP from
> the system so that there is no trace of it left. Would that be a good
> solution for a newbie in *nix systems in general?
>
> Thanks again. I really appreciate that you are devoting so much of your
> time to help me!
>
> Warm regards,
>
> --
> Zbigniew Szalbot
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Zbigniew Szalbot
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:17 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0