PHP startup problem with snmp.so

PHP startup problem with snmp.so

am 23.09.2007 07:16:12 von oliver

Hi group:

I'm running FreeBSD 6.2 with PHP5.2.4. I get this error when I try to start
PHP:

PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613-debug/snmp.so' - Cannot open
"/usr/local/lib/php/20060613-debug/snmp.so" in Unknown on line 0

Any ideas?

Oliver

Re: PHP startup problem with snmp.so

am 23.09.2007 10:39:17 von petersprc

Hmm, some things you could check: If php4 and php5 are using the same
libs, they will need to be re-installed separately; ldd snmp.so will
show if any dependency libraries are missing and some libs need to be
installed; might need to recompile if your net-snmp libs were
updated...

On Sep 23, 12:16 am, "Oliver"
wrote:
> Hi group:
>
> I'm running FreeBSD 6.2 with PHP5.2.4. I get this error when I try to start
> PHP:
>
> PHP Warning: PHP Startup: Unable to load dynamic library
> '/usr/local/lib/php/20060613-debug/snmp.so' - Cannot open
> "/usr/local/lib/php/20060613-debug/snmp.so" in Unknown on line 0
>
> Any ideas?
>
> Oliver

Re: PHP startup problem with snmp.so

am 24.09.2007 03:44:40 von oliver

> Hmm, some things you could check: If php4 and php5 are using the same
> libs, they will need to be re-installed separately; ldd snmp.so will
> show if any dependency libraries are missing and some libs need to be
> installed; might need to recompile if your net-snmp libs were
> updated...

hmm..

"ldd: snmp.so: No such file or directory"

not sure what to do. I've tried uninstalling and reinstalling the ports
several times, in a few different combinations.

what next?

Oliver


>
> On Sep 23, 12:16 am, "Oliver"
> wrote:
>> Hi group:
>>
>> I'm running FreeBSD 6.2 with PHP5.2.4. I get this error when I try to
>> start
>> PHP:
>>
>> PHP Warning: PHP Startup: Unable to load dynamic library
>> '/usr/local/lib/php/20060613-debug/snmp.so' - Cannot open
>> "/usr/local/lib/php/20060613-debug/snmp.so" in Unknown on line 0
>>
>> Any ideas?
>>
>> Oliver
>
>

Re: PHP startup problem with snmp.so

am 24.09.2007 04:22:05 von oliver

"petersprc" wrote in message
news:1190536757.240360.320880@22g2000hsm.googlegroups.com...
> Hmm, some things you could check: If php4 and php5 are using the same
> libs, they will need to be re-installed separately; ldd snmp.so will
> show if any dependency libraries are missing and some libs need to be
> installed; might need to recompile if your net-snmp libs were
> updated...
>

ok, i just removed 5.2.4 and installed 5.2.3_1.

now, I don't get the error, but when i browse to a .php page, my browser
asks me if I want to save the .php file...

i'm loading php5 in httpd.conf. do I need to manually load php or something?

> On Sep 23, 12:16 am, "Oliver"
> wrote:
>> Hi group:
>>
>> I'm running FreeBSD 6.2 with PHP5.2.4. I get this error when I try to
>> start
>> PHP:
>>
>> PHP Warning: PHP Startup: Unable to load dynamic library
>> '/usr/local/lib/php/20060613-debug/snmp.so' - Cannot open
>> "/usr/local/lib/php/20060613-debug/snmp.so" in Unknown on line 0
>>
>> Any ideas?
>>
>> Oliver
>
>

Re: PHP startup problem with snmp.so

am 01.10.2007 15:44:02 von petersprc

Hi,

Hmm, one thing to check is if you have AddHandler set appropriately:

LoadModule php5_module modules/libphp5.so
AddHandler php5-script .php
AddType text/html .php
DirectoryIndex index.php

On Sep 23, 9:22 pm, "Oliver"
wrote:
> "petersprc" wrote in message
>
> news:1190536757.240360.320880@22g2000hsm.googlegroups.com...
>
> > Hmm, some things you could check: If php4 and php5 are using the same
> > libs, they will need to be re-installed separately; ldd snmp.so will
> > show if any dependency libraries are missing and some libs need to be
> > installed; might need to recompile if your net-snmp libs were
> > updated...
>
> ok, i just removed 5.2.4 and installed 5.2.3_1.
>
> now, I don't get the error, but when i browse to a .php page, my browser
> asks me if I want to save the .php file...
>
> i'm loading php5 in httpd.conf. do I need to manually load php or something?
>
> > On Sep 23, 12:16 am, "Oliver"
> > wrote:
> >> Hi group:
>
> >> I'm running FreeBSD 6.2 with PHP5.2.4. I get this error when I try to
> >> start
> >> PHP:
>
> >> PHP Warning: PHP Startup: Unable to load dynamic library
> >> '/usr/local/lib/php/20060613-debug/snmp.so' - Cannot open
> >> "/usr/local/lib/php/20060613-debug/snmp.so" in Unknown on line 0
>
> >> Any ideas?
>
> >> Oliver