php-install Digest 6 Dec 2002 06:00:53 -0000 Issue 1148
Topics (messages 9318 through 9319):
Re: Cant get installed on one computer
9318 by: gary.hayers.org
Re: Redhat 8.0 PHP/SNMP Issue?
9319 by: ivan roseland
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
try here http://pear.php.net
php <[EMAIL PROTECTED]> wrote on 05.12.2002, 01:26:33:
> We are trying to move to PHP for our website here at work and I
> installed about 2 months ago PHP and Apache on a machine here, I then
> installed it on our server and another employees machine with no problems.
>
> Now, I am trying to install it yet again on a QA machine and I can't get
> it to work. I get the following error:
>
> Warning: Failed opening '/home/public_html/tst.php' for inclusion
> (include_path='c:\php4\pear') in Unknown on line 0
>
> I was using Apache 1.3.23, I upgraded to 1.3.27 and even upgraded to
> Apache 2. I was using PHP 4.1.2 and I downloaded 4.3 ORC and tried it, I
> get the same error no matter what the versions. I tried copying entire
> directories from working machines as well and still get that error
> above. It is only on this one machine that I can't get it to work but all
> the machines are pretty similar with pretty much the same software and
> configurations on them.
>
> Win2k
> Apache 1.3.27 currently
> php 4.1.2 currently
> everything is on drive D:\ so it is D:\Apache and D:\PHP serverroot is
> D:\home\public_html and the tst.php is just doing phpinfo()
>
> I did a disk wide search for c:\php4\pear and found it in
> d:\php\php4ts.dll I assume that is some kind of default that is overriden
> by variable in .INI or like that but I have copied those files from working
> machines and gone through them line by line.
>
> Any Ideas ?
>
> mike
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Ivan Roseland wrote:
Ditto,
I have been trying to build apache2 + php4 with SNMP support on
redhat 8 all day.. The snmp support from the RPM is quite broken.
If you look in /usr/include you will find two directories
net-snmp
ucd-snmp
ucd-snmp is what php wants.
Of course here is what the .h files look like in there
#ifdef UCD_COMPATIBLE
#include <net-snmp/library/asn1.h>
#else
#error "Please update your headers or configure using
--enable-ucd-snmp-compatibility"
#endif
what the hell?
I have a feeling that I will also be going back to fresh source for SNMP
as well...
Thanks Redhat, I didnt *really* like useing RPMS to make my life suck less.
That or perhapse the php developer guys could add another config
directive something like
--redhat8-SNMP-sucks-ass-workaround
I am back,
So, I uninstalled the snmp rpms the apache rpms and the php rpms.
I rebuilt everything from hand. The problem was with the wacky
redhat net-snmp ucd-snmp setup.
Now, for my next bitch..
Why the hell is it that the returned values for
things keeps changing
$syscontact_got = snmpget ("$system_name", "$key", .1.3.6.1.2.1.1.4.0");
I used to be able to just use the string..
Then I hade to split it and just use the parts I wanted
ok now that part that is really pissing me off..
I need to make a table of software installed and the installed date
so I do this
$a = snmpwalk ("$system_name", "$key", ".1.3.6.1.2.1.25.6.3.1.2");
$b = snmpwalk ("$system_name", "$key", ".1.3.6.1.2.1.25.6.3.1.5");
echo "<table BORDER COLS=2 WIDTH=\"100%\" NOSAVE >\n";
$count = count($b);
echo "<TR>\n<TD>Name and Version</TD>\n<TD>Installed Date</TD>\n</TR>\n";
for ($i=0; $i<$count; $i++){
list ($new_a, $x, $x1 ) = split (" ", $a[$i], 3);
list ($new_b, $x, $x1 ) = split (" ", $b[$i], 3);
echo "<TR>\n<TD>$new_a</TD>\n<TD>$new_b x $x x $x1</TD>\n</TR>\n";
}
This was freeking working.. Now I get a list of packages in $new_a and
nothing in $new_b $b[i] turns up a hex value though..
--- End Message ---