Net-snmp + Php5 Apache Module
I've recently built a new server on which I've tried to configure and
install PHP5 (I've now tried 5.0.4, 5.0.5, and 5.1.0RC1) along with
Apache 1.3.33 and net-snmp 5.2.1.2. (Building PHP5 as an Apache module)
Everything compiles just fine, but when I try to call any of the SNMP
functions (i.e. snmpget) from a PHP script on a web page, I get the
following error:
Warning: snmpget() [function.snmpget]: Could not open snmp connection: Unknown host in /var/www/test.php on line 5
However, I can execute the same script (which just consists of a simple
snmpget) from the CLI and it works just fine. It also works fine if I
execute from Apache as a CGI.
If I build the same configuration with PHP 4.4.0, everything works fine
from within the Apache module. I've tried executing all of this from the
CLI as the Apache user as well and it does not seem to make any
difference.
Has anyone else encountered this issue? Any ideas about what I could
try to fix it?
View Complete Forum Thread with Replies
Related Forum Messages:
MYSQL, Apache And SNMP
Ive currently got MYSQL, PHP and Apache Web server set up on a Windows XP machine and running fine. But im currently trying to write some php scripts to access SNMP information from a router on my network (Cisco 1600), so i need to add some SNMP support to this. Anyone know how i go about this, every example ive come accross so far is for a Linux Machine.
View Replies !
What Is Apache Module And What Kind Of Module It Has?
I'm planning to make apache module. I made php code. but it's too slow to handle requests for my project. So i'm thinking if i replace php code to c and make apache module then it maybe much faster. upon above idea I have three questions. 1. Is it really worth to replace php code to c and make as apache module? 2. It seems like that apache has two kind of module. One looks like *.c and the other is *.so. If i regard that *.c is being compiled together with apache code and *.so is exactly same as shared library then my idea is right or there can be more difficult concept? 3. when the php is running as cgi does apache call php.exe and php.exe interetes *.php file?
View Replies !
Php5 Beta2 As Module And Apache2 Problem
I'm tring to *test* php5 beta2 as module with Apache 2.0.48 and win2k (I know, I'm nuts :o) First, there is no php5apache2.dll in the beta2 package but a php4apache2.dll (php.net doc mention php5apache2.dll at http://www.php.net/manual/en/install.apache2.php) I usually copy php4apache2.dll and php4ts.dll in the Apache2/modules/ dir and update httpd.conf with LoadModule php4_module modules/php4apache2.dll AddType application/x-httpd-php .php but Apache2 can't find php4apache2.dll. When I go back with php4 dll Apache2 starts and works well with php... Any idea? (I already know that php is in beta stage and still not recommended with apache2 but it's just to test)
View Replies !
PHP As A CGI Or Apache Module?
I'm moving my large site (+10,000 pages) from static html to database-driven PHP. My web host runs PHP as a CGI. I gather from the PHP manual that this slows down PHP and may cause performance issues - especially with high traffic and database calls. Should I be concerned about this? Should I look for a host that has PHP set up as an Apache module (or should I go to a dedicated server)? Any input greatly appreciated, as I'm new to PHP.
View Replies !
PHP 5 As Apache Module
I've tried to install PHP 5 as Apache module in my Red Hat 9 box but it complains that the Apache version is too old (I have 2.0.40 and asks for 2.0.44). I'm compiling from source code and apparently the CGI version builds fine. Actually, even PHP 4.3.3 asks for 2.0.44... Must I necessarily upgrade Apache to get a newer PHP version and use it as a module? Any success story over here?
View Replies !
CGI Interpreter Or Apache Module ?
I would like to know whether PHP can be compiled as a standalone CGI interpreter, or compiled as an Apache module. Also the apache compilation has to options.... 1. --with apxs 2. --with apache what does that mean and when should each be used? Also if i am not mistaken, as far as i remember, the apache installation of tarball has some --with php option in the new releases. Should i use that.?
View Replies !
Checking For An Apache Module
On a system where php is installed as an Apache module, I want to check if an Apache module is installed using a php script. For example I want to learn if apache/mod-rewrite is installed on the system. I checked the apache specific functions of php but could not find what I was looking for. Is it possible ?
View Replies !
PHP Installed As An Apache Module?
I have been searching everywhere for instructions on how to install php as an apache module, rather than my current install which points to php.exe(cgi install) I am running apache on win2000.
View Replies !
Installing PHP 5 With Apache 2 As A Module
I'm installing PHP 5 with Apache 2 as a module (also with MySQL embedded in php as an extension along with gd and tiny) on a Win2003 server. When I start Apache2 as a service without the php.ini in the C:WINDOWS directory, Apache starts. PHP also functions (my test.php file (<? phpinfo(); ?>) produces the expected output), however, none of the three embedded modules is active (which is to be expected). When I add the php.ini file to the WINDOWS directory, however, Apache2 just hangs and won't start. Any ideas? Here are what I believe to be the pertinent parts of the php.ini file and I think there are no problems with the httpd config for Apache2 since it will start (without the php.ini file in the WINDOWS directory) and PHP is functional with its defaults. doc_root = "c:Program FilesApache GroupApachehtdocs" extension_dir = "C:PHPext" extension=php_gd2.dll extension=php_mysql.dll extension=php_tidy.dll MySQL has passed its tests but I've tried commenting it out in the PHP config file and making sure that it isn't running and that has no effect. Versions are: apache_2.0.50-win32-x86-no_ssl.msi mysql-4.0.21-win php-5.0.1-Win32.zip PHP is installed as an apache module
View Replies !
PHP Installed As Apache Module
The installation of PHP on the (linux) server I'm working on is as an apache module. I need to check on configuration of the php.ini file but it doesn't seem to exist. I searched using "find / -name php.ini" Is there a different file name it would be under since this is installed as a module? I don't have assistance from the person who originally installed it and I'm so very lost. Code:
View Replies !
Apache Module Mod_rewrite
I know it has been quite often discussed. however it is very fragmented info so where should I start to dig in the subject I need to really understand the URL re write aspect White boards, tutorials? our Library?
View Replies !
Static Apache Module
Anyone know if there are any plans on having php5 as a static apache module? As far as I can see, the docs only show it used as a shared module.
View Replies !
Installing As CGI Or Apache Module
There are 2 ways to run PHP. One as an apache module, the other as CGI. What are the speed and security differences between them? Can they both exist at the same time? Or is it one or the other only? If I have the Apache Module version working fine on Debian and I now run a apt-get install php-cgi will that just install the extra CGI version or does it remove the module version at the same time?
View Replies !
Module Garbled Apache
I have installed Apache 2.2.4 and php 5.2.4 on my Ubuntu platform and when I do sudo httpd -k restart I get this: httpd: Syntax error on line 66 of /etc/apache2/httpd.conf: API module structure `auth_digest_module' in file /usr/lib/apache2/modules/mod_auth_digest.so is garbled - perhaps this is not an Apache module DSO? I know I have a php version that's not working w/ my Apache 2.2.4 but I'm not sure about how to find the correct version of PHP that will work w/ this version of Apache.
View Replies !
Problem Configuring PHP As An Apache Module
Running Windows XP extracted new download of "PHP" with Apache API into c:/php After inserting "LoadModule php4_module c:/php/sapi/phprapache.dll" into httpd.conf at line 159, upon restarting Apache i get the following error. The Apache service named reported the following error: >>> Syntax error on line 159 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf:. followed by: The Apache service named reported the following error: >>> Cannot load C:/php/sapi/php4apache.dll into server: The specified module could not be found. . Note: php4ts.dll had been copied to /php/sapi Any clues on how to resolve this "syntax error"
View Replies !
Installing Apache Can't Find The Php Module
so everything is compiled into apache.. but for some reason, its not executing anything ending in .php (it just asks if I want to download it). Php is compiled statically into the httpd binary, and I have the line "AddType application/x-httpd-php .php" in an apache config file. It's definitely recognizing it as the correct mime type because when the download box pops up in netscape, it says the file is of type "application x-httpd-php". It would seem that the problem is because apache can't find the php module, but when I run "httpd -l" on the httpd binary, it says right there that mod_php4.c is compiled in... sooo I'm pretty stumped.
View Replies !
Reconfiguring From Php As A CGI Executable To An Apache Module?
I have written some php scripts that use basic HTTP authentication as described in the php manual. It works fine on my development server which runs php as an apache module. But, the production server (Linux), which is operated by a hosting service, has their php setup to run as a CGI executable. So, I'm trying to find out how hard it is to reconfigure to run as an apache module as opposed to a CGI executable on a Linux server. If it's just a matter of editing a couple configuration files, than maybe I can just do that myself. If it requires a rebuild of php, then I may need to ask the hosting service support to do it (if they will). Is it just a matter of adding a few modules to httpd.conf, or is there more to it? The php documentation seems to be more focused on describing complete installation procedures, and not reconfiguration.
View Replies !
Loading Mysql Module In Php/apache
i have apache 2 and php 5 setup and in my php.ini i have set my extension_dir = "C:WINDOWSsystem32" and enabled php_mysql.dll but everytime i start apache i get a message saying that it cant find the file even though I have copied it to system32.
View Replies !
Module ABORTS Apache At Startup
I am trying to run apachectl by loading php5 module into it. This results in SIGABRT at the time of startup and Apcahe aborts. If I comment out LoadModule for php library then it starts peacefully. My apache version is 2.2.3 Code:
View Replies !
Why Does PHP As Apache Module Disable PHP's Java()?
My site was suddenly running HTTP authentication and was faster. But if this was a problem from the past, now a entire part of my site does't work because my calls i had to function Java() now generate this output: Fatal error: Call to a member function on a non-object HTTP authentication(PHP as Apache module) versus Java Virtual Machine what's the relation between them, how can i restore Java() to work properly. Is it on httpd.conf? why does not PHP call Java extension if it is installed on Apache as a module?
View Replies !
Newbie: Apache 2.0.50/Win2K Executes PHP 4.3.8 As CGI Instead Of Module?
I can´t get PHP 4.3.8 to work with apache 2.0.50 on Windows 2000. I followed the instruction that I found on http://de3.php.net/manual/en/instal...ows.apache2.php. The files php4apache2.dll and php4ts.dll are located in "C:ProgrammePHP", together with the php.ini. In the php.ini, I have the entry ============================== extension_dir = "C:ProgrammePHP". ============================== In the httpd.conf, I inserted the following entries ============================== LoadModule php4_module "C:ProgrammePHPphp4apache2.dll" AddType application/x-httpd-php .php PHPIniDir "C:ProgrammePHP" ============================== When I start apache and go to the apache startup page (http://localhost:8080 in my case), everything is fine. When I insert the line http://localhost:8080/cgi-bin/index.php in the browser, I get an error. In the error log I have the following entry: [Sat Sep 18 11:28:52 2004] [error] [client 127.0.0.1] C:/Programme/Apache/Apache2/cgi-bin/index.php is not executable; ensure interpreted scripts have "#!" first line [Sat Sep 18 11:28:52 2004] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/Programme/Apache/Apache2/cgi-bin/index.php The index.php looks like this: ============================== <?php phpinfo(); ?> ============================== When I change the index.php like that ============================== #! <?php phpinfo(); ?> ============================== I get the following error: [Sat Sep 18 11:25:13 2004] [error] [client 127.0.0.1] (OS 193)%1 ist keine zulässige Win32-Anwendung. : couldn't create child process: 720193: index.php [Sat Sep 18 11:25:13 2004] [error] [client 127.0.0.1] (OS 193)%1 ist keine zulässige Win32-Anwendung. : couldn't spawn child process: C:/Programme/Apache/Apache2/cgi-bin/index.php [Sat Sep 18 11:25:48 2004] [error] [client 127.0.0.1] (OS 193)%1 ist keine zulässige Win32-Anwendung. : couldn't create child process: 720193: index.php [Sat Sep 18 11:25:48 2004] [error] [client 127.0.0.1] (OS 193)%1 ist keine zulässige Win32-Anwendung. : couldn't spawn child process: C:/Programme/Apache/Apache2/cgi-bin/index.php Apparently, apache is trying to execute the index.php as a CGI script with an external interpreter and not as an apache module. I went through the documentation of both apache and php, but that wasn´t successful, maybe because I do not know what I am looking for exactly. I know that the support of apache2 by PHP is experimental, but I believe that it should at least work? Are there any more hints about "hidden" parameters to be set to get the configuration successfully to work? I posted this message already on php.windows,
View Replies !
PHP5 From Apache
This might have been covered in this forum before, but the search strings I tried didn't turn up a solution. I've been developing an application at home using PHP5 on Linux. I brought the project into work to test it on the school's internal iMac Webserver running OS 10.4 and PHP5. The CLI application is crashing with an . Code: "Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' " error message everytime it hits a class file with a private or public keyword in front of a class property or method. (I switched the load order of the class files to confirm that it was crashing over private and public. The phpinfo.php web page showed me I was running PHP Version 5.2.1; however, on a hunch, I typed php -ver at the command line and discovered I also had PHP 4.4.7 (cli) installed. I tracked down PHP5's location and was able to execute my program typing /usr/local/php5/bin/php main.php.
View Replies !
Apache 1.3, PHP5
I've looked at so many variations on what I might try to solve the failure of pspinfo() to execute when called by a simple test.php file that I'm now lost. My Apache server runs OK. I'm running under XP. I have folowed the steps given in the book 'PHP and Mysql 'but I'm clearly missing something in php.ini or httpd.conf Where does the phpinfo() function reside? Why can't I find it in my PC?
View Replies !
PHP5 On Apache 2
I have tried to install mod_PHP5 on freebsd where I had installed apache 2. It throws as error indicating mod_php5 needs apache 1.3. I am a newbie, shoudl I just run Apache 1.3 rather than trying to run the latest Apache.
View Replies !
Php5 Apache Error
I just installed on a new machine windows server 2003 and installed apache 2.2 on it and then unzip the php 5.1 files in c:php5 then added the load module php5_module line in httpd conf file copied the php5ts.dll to system32 and also in apache bin but when i start apache it keeps giving me error php5apache2.dll module not found if i remove this line from apache it works fine and apache starts but if i add this line it does not start can anybody suggest how to fix the problem why cant apache find the file php5apache2.dll the path is correct.
View Replies !
Install PHP5, Apache 2.2 And IIS
The book that I have talks you through the setup of both Apache and PHP. I allready have IIS installed. when I go to localhost:8080 I get an unable to find page come up. I have checked the error log and I get the following; [Wed Jan 31 13:28:58 2007] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/favicon.ico I have checked for the file on my system and it is indeed not there. But surely not having a favicon is not a reason to shut it down?? If so I have downoloaded the latest full packages today, so seems a little strange that it is missing.
View Replies !
Installing PHP5 On APACHE 2.2.x
I'm trying to do a new install of PHP5 on Apache 2.2.x and i'm running into a serious snag. It wont load anything! after it's installed, I've checked my configure files and then load it. When i open a page i get nothing. just blank pages no matter what. Then if i turn on the startup error reporting i get errors galore telling me that *.dll's could not be loaded. I've checked my paths, and checked my sources, permissions and everything. The files are there.
View Replies !
Apache Hangs With PHP5
We have installed PHP 5.0.1 on a Windows 2003 Server with IIS6 in ISAPI mode. The processing of .php files works fine with our basis version of the php.ini file. But, as soon as we edit the php.ini file to outcomment the line "extension=php_sybase_ct.dll" (or "extension=php_pdf.dll") and restart the IIS6, the web site is not able to work with .php files properly, instead the web server seems to hang with any .php file.
View Replies !
Apache Mysql Php5
I've managed to install, config, and make operable an Apache server, mysql, php5, ZendOptimizer, and phpMyAdmin on my WinXp comp. The problem is that when I install a script such as a cms or topsite they fail to run. I want to be able to run and test scripts on localhost before uploading to www.server I've installed such scripts on *nix based web servers without problem. I researched and found that chmod should not be an issue on windows so all the files/folders should have read/write access. I,m completly stumped. These scripts that I've attempted to run on my test server go through thier entire install process creating tables and such untill complete. I point to the folder/index.php and nothing.
View Replies !
PHP5 With MySQL 4.1 On Apache 2 On Win98
I am in the process of learning php. I am particularly interested in its uses with MySQL. I have Apache 2 and PHP5 both installed and working fine. I pasted a MySQLi example for opening and connecting to a MySQL DB into "hello.php" <?php $mysqli = new mysqli("localhost", "my_user", "my_password", "world"); /* check connection */ if (mysqli_connect_errno()) { printf("Connect failed: %s ", mysqli_connect_error()); exit(); } printf("Host information: %s ", $mysqli->host_info); /* close connection */ $mysqli->close(); ?> For some reason when I get: Fatal error: Class 'mysqli' not found in D:Apache groupApache2htdocshello.php on line 7 I installed PHP in "d:php" and added it to my path in my autoexec.bat. in php.ini: .... extension_dir = "d:phpext" .... extension=php_mysqli.dll I read all the posts at the bottom of the pages on PHP.net website where someone says "I had a problem and I got...yada...yada and did everything each of those posts said you had to do and it still won't work. The only thing left is how PHP needs compiled with a "--with" statement or something like that but I'm using the windows binary so that shouldn't be a problem... Is there some other problem it could be besides a problem with finding a dll or ini?
View Replies !
Install PHP5 And Apache 2.2.2 (Linux)
I'm running into the same problem that no doubt many are. I'm installing PHP 5.1.4 and Apache 2.2.2 on the same server, but Apache won't recognize the PHP module, saying it's garbled. I understand from reading various bug reports that PHP will release this option come 5.2.0, but I want to know if anybody has PHP 5.1.4 and Apache 2.2.2 working under Linux yet.
View Replies !
Apache 2.0 W/PHP4; W/PHP5 Cohabitate
Apache 2.0 is currently installed to support an application using PHP4. I do not have PHP4 development environment installed. I want to install PHP5 for a learning session. The httd.conf file in Apache has the following entry: LoadModule php4_module "C:/Program Files/ktdms/php/sapi/php4apache2.dll" AddType application/x-httpd-php .php PHPIniDir "C:/Program Files/ktdms/php" <Directory "C:/Program Files/ktdms/knowledgeTree"> The install process for PHP5 application instructs the following insertion in httd.conf: # For PHP 5 do something like this: LoadModule php5_module "c:/php/php5apache2.dll" AddType application/x-httpd-php .php # configure the path to php.ini PHPIniDir "C:/php" Will this work without conflict? Can I install PHP5 development environment using Apache 2.0 while another application is using Apache 2.0 with PHP4?
View Replies !
Apache/ Win XP Home/ PHP5/ MySQL
I can get PHP5 running on Apache 2 installed on Windows XP Home Edition. Now I want to add MySQL4 to the package. I installed it but I'm not sure what to do now. My PHP5 scripts are running fine. The MySQL server seems to be running though actually I'm not sure. When I write $link = mysql_connect("localhost", "mysql"); I get the PHP5 error message "Call to undefined function mysql_connect()" Can anyone help?
View Replies !
Trying To Get MySQL, Apache, And Php5 To Play Nice Together
I'm trying to get MySQL, Apache, and Php5 to play nice together in Windows but having problems. I don't want to install those automatic 'all-in-one' packages because I want to know how to do it myself. I think I installed Apache correctly because when I type http://localhost in my browser I see my directory, but echo phpinfo() gets me a blank page. Can someone please point me to a resource that explains how to get php5 working? I put the doc root path in my php.ini to point to C:Program FilesApache GroupApache2htdocs and no go.. Also, am I suppose to put my public_html folder inside of htdocs in tact, or do I empty the contents of my public_html into htdocs?
View Replies !
Install Php4 And Php5 At The Same Time To Apache
Here is some note about installation together php4 and php5 on apache2. First you need is to edit with the help of hex editor php4apache2.dll (in my case, or php5apache2.dll) in php4 directory. You find "x-httpd-php" and replace with "x-httpd-plc" e.g. (I found 2 matches) Save your dll file and edit your apache config (httpd.conf) e.g. like: Code:
View Replies !
Installing And Running Apache 2.0.46 / Php5.0.0b1 / Suse Linux 8.2
I did the following as instructed in the docs. (see below) everything seemed to install ok and I started apache with no complaints, but, 1)I do not see a process for apache using ps -ef 2) In yast I see that the new apache2 version is installed but not php5, its still on php4 any ideas ? 1. gzip -d httpd-2_0_NN.tar.gz 2. tar xvf httpd-2_0_NN.tar 3. gunzip php-NN.tar.gz 4. tar -xvf php-NN.tar 5. cd httpd-2_0_NN 6. ./configure --enable-so 7. make 8. make install Now you have Apache 2.0.NN available under /usr/local/apache2, configured with loadable module support and the standard MPM prefork. To test the installation use your normal procedure for starting the Apache server, e.g.: /usr/local/apache2/bin/apachectl start and stop the server to go on with the configuration for PHP: /usr/local/apache2/bin/apachectl stop. 9. cd ../php4-NN 10. ./configure --with-apxs2=/usr/local/apache2/bin/apxs 11. make 12. make install 13. cp php.ini-dist /usr/local/lib/php.ini Edit your php.ini file to set PHP options. If you prefer this file in another location, use --with-config-file-path=/path in step 10. 14. Edit your httpd.conf file and check that these lines are present: LoadModule php4_module modules/libphp4.so AddType application/x-httpd-php .php The path on the right hand side of the LoadModule statement must point to the path of the PHP module on your system. The above statement is correct for the steps shown above. 15. Use your normal procedure for starting the Apache server, e.g.: /usr/local/apache2/bin/apachectl start
View Replies !
PHP5.05, Mysql4.1, Apache On Windows XP - Cant Get Php To Talk To Mysql
I have read all (ok most) of the posts relating to "Call to undefined function mysql_connect()", read the manual on PHP.net and done eveything thats ive been asked to do but cant get PHP to talk to MySQL, PHP is working fine but I dont get any mysql info when running <? phpinfo() ?> and get the "Call to undefined function mysql_connect()" when trying to connect to mysql through php in browser, please help. 1. I have added C:php; to the end of the environment variable path 2. I have edited my php.ini file to : extension_dir = "c:phpext" extension=php_mysql.dll - removed the ";" ... ive checked i only have 1 php.ini file! 3. The dll "libmysql.dll" is in the folder C:php 4. The dll "php_mysql.dll" is in the folder c:phpext
View Replies !
Install Php5 On A SuSE 9.3 Linux System Running Apache 2.0.49
I am trying to install php5 on a SuSE 9.3 Linux system running apache 2.0.49. For some reason,when attempting to restart the server,I get the following error: "Syntax error on line 26 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2-prefork/libphp5.so into server: /usr/lib64/apache2-prefork/libphp5.so: undefined symbol: php_session_create_id" Does anyone know what is causing this error,or what I can do to correct it?
View Replies !
Cannot Remove Module Mod_php5.c: Not Found In Module List
Today I see in my apache error log file an entry 'Cannot remove module mod_php5.c: not found in module list'. Anybody any idea where this is located or where I get this php5.c file or why this shows up since today in my error log file? Everthing still seems to work well except the anoying error entry.
View Replies !
SNMP W/ PHP Resource
I have been programming in PHP for a few years, but now I have a project that requires the use of SNMP with PHP. I have looked over the PHP manual on it, but I am not as familiar with SNMP.
View Replies !
Speeding Up PHP And SNMP
I am building a dynamic site for monitoring computer networks. I store the static info (gatewayIP, equipment info, service address, etc) in a mysql database. I also use SNMP to retrieve stats on the individual components of the networks. I have one php script to build a general info (html)table for a single network. The index page runs a looped include statement, so the main page will load as many instances of this table as there are rows in the main database. Anyway... I use SNMP to poll the devices on each network to identify problems. This generates a list of problem devices that is displayed on the index page with each network. I have simplified the polling process as much as I can, having it only do a full walk on a single field, sort out the problem devices, then get the MAC just for those specific ones. This polling process takes around 10 to 15 seconds per network to complete. This means that once I have 10 or so networks built, it will take forever to load the index page and will most likley cause timeout issues. Is there a fancy way to allow the snmp polling script to run in the background while the rest of the page loads, then once it is done, load the results into a CSS layer or some other object on the page? Is this outside of the abilites of php? Do I need to be looking at java? I thought about writing a perl script that would get the info and load it into the db on specific intervals (with cron), but the page really needs to be refreshed every time you view it.
View Replies !
I Broke My PHP W/ NET-SNMP
I seem to have broken my PHP install with SNMP under apache. Every snmp get, walk or set that I execute from my scripts (that have been running for over a year) returns a snmpxxxx() Invalid object identifier. Here is the crazy thing. When I execute the same scripts using the CLI, everything works perfect. I have searched my logs and docs high and low searching for what I changed. I even have another system to compare with but I can't find what I broke. I have re-compiled PHP and NET-SNMP under the latest versions thinking that a new install may resolve the problem but it has not. I have searched google and yahoo for over a week with no results either. Can anyone please help? Thanks Env = NET-SNMP 5.2.1.2, PHP 4.40, Apache 2.0.50, HPUX 11.23
View Replies !
SNMP From PHPCLI?
For some reason Code: #!/usr/bin/php <?php if (function_exists('snmpwalk')) { echo "Exists"; } else { echo "Non-existant"; } ?> returns "Exists" from a browser....but Non-existant from the command line Can anyone tell me why? I cant seem to find any help on google believe it or not.
View Replies !
Snmp On Php4
anybody, please. When a try install php4 with command : ./configure --prefix=/usr/local --with-mysql --with-apxs=/usr/sbin/apxs --with-openssl --with-sockets --with-snmp --with-zlib --with-gd --with-session --with-pcre, I have this error: /usr/local/src/php-4.3.9/ext/snmp/snmp.c: In function `netsnmp_session_set_sec_protocol': /usr/local/src/php-4.3.9/ext/snmp/snmp.c:777: error: `usmAES192PrivProtocol' undeclared (first use in this function) .........
View Replies !
|