473,785 Members | 2,434 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP startup problem with snmp.so

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
Sep 23 '07 #1
4 4228
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" <oliver.obo...@ nospam.coradian t.com>
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

Sep 23 '07 #2
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" <oliver.obo...@ nospam.coradian t.com>
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


Sep 24 '07 #3

"petersprc" <pe*******@gmai l.comwrote in message
news:11******** **************@ 22g2000hsm.goog legroups.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" <oliver.obo...@ nospam.coradian t.com>
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


Sep 24 '07 #4
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" <oliver.obo...@ nospam.coradian t.com>
wrote:
"petersprc" <peters...@gmai l.comwrote in message

news:11******** **************@ 22g2000hsm.goog legroups.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" <oliver.obo...@ nospam.coradian t.com>
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

Oct 1 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1612
by: Kurt | last post by:
Hi, I tried to compile my php 4.3.9 with snmp support but it won't work. Compiling Net-SNMP always worked good --> I tried the 5.2rc4 and also the older version 5.1.2 successfully so far. I use Fedora Core 2. Here's what I already tried with php (Every configure options version listed below was tried with both of the two snmp versions): ../configure --with-openssl --with-apxs=/usr/local/apache/1.3.31/bin/apxs --w...
1
1717
by: Jani | last post by:
Hi! I've been trying to do a small snmp program with the system.management stuff, but there aren't (at least I can't find) any examples with using .net framework for snmp programming. Any examples or help/hints are appreciated. Jani
1
1212
by: Sharon | last post by:
is there enything new with SNMP & vs-2005 ? shaon
0
250
by: :\\\\derian | last post by:
Being the newest developer on the team, i get all the shite work that no one else wants to tackle / research... with that being said, can anyone give me some ideas on how to integrate a current VB service with SNMP? We currently have a service running that writes events to the event log -- events such as "service startup / shutdown complete" and critical errors if there is a hiccup in the service ("hiccup..."). Now how can i make my...
1
1721
by: Dennis Eklund | last post by:
Any here with a code example to make a simple snmp GET from vb.net? /Dennis
6
1322
by: Pyerwoh | last post by:
Greetings, I'm trying to have an application resume after a reboot, by making an entry into the Run registry key ("SOFTWARE\Microsoft\Windows\CurrentVersion\Run") . This works great, and my application starts up after a successfull reboot. However, my application needs to read a text file in the same directory as the executable, and for some reason, it cannot access this file when the program is started by the Run registry key. If I...
0
1198
by: vanisathish | last post by:
Hi All, Is there SNMP Manager API's available in .NET to communicate with SNMP Agent. We need to build a custom Web-Based NMS Software using Microsoft technologies(runs on IIS). Appreciate your inputs. THanks, Vanitha
0
1049
by: Tim Thulin | last post by:
I am using Visual Basic 2005 and trying to discover a Cisco router/catalyst using SNMP. Does anyone have a good sample to start from and also what references should I be using with 2005? Thank you, Tim
5
2612
by: DarkPearl | last post by:
Bonjour à tous, apres avoir créer un service windows avec py2exe, j'ai ce probleme quand je lance le service : voici ce que je trouve dans le journal d'evenement : The instance's SvcRun() method failed <Error getting traceback - traceback.print_tb() failed <class 'pywintypes.com_error'>: (-2147221020, 'Syntaxe incorrecte',
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10325
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10091
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8972
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6739
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.