Re: Redhat 6.2 and PHP4 with SNMP

From: Date: Tue, 31 Oct 2000 19:31:34 +0000
Subject: Re: Redhat 6.2 and PHP4 with SNMP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-22991@lists.php.net to get a copy of this message
I got some help from Ben on this. Thanks. You need to install the apache developer tools in order for everything to build. I got everything to build, but now when I try to use phpinfo() it doesn't work. I just get my script displayed back to me as text. I went into the httpd.conf and added AddType application/x-httpd-php .php Just like the manual says to, but nothing happens. What should I do now? > From: "Ben Wiechman" <neteru@aminal.net> > Date: Tue, 31 Oct 2000 01:13:06 -0600 > To: "Mike Tuller" <mitull01@willy.wsc.edu> > Subject: RE: [PHP] Redhat 6.2 and PHP4 with SNMP > > Blast this foggy memory of mine, but I seem to recall having a very similar > problem when I tried to install php4. Seems to me that even though there was > some apxs stuff on our system (Red Hat 6.2) it wasn't the right module, or > some similar problem. I do recall downloading a package that contained only > apxs and installing that, after which my PHP installation went fine. > > You seem to be having the same problem... Email me w/o [PHP] in the subject, > and I'll get the message at work tomorrow.... might still have the package I > installed on my system and could possibly either send it to you, or point > you in the right direction.... > > Ben > > -----Original Message----- > From: Mike Tuller [mailto:mitull01@willy.wsc.edu] > Sent: Monday, October 30, 2000 2223 Neteru > To: Jeremy Brand; php > Subject: Re: [PHP] Redhat 6.2 and PHP4 with SNMP > > > That is the location that apache puts the apxs file when using the RPM to > install. Every piece of documentation about RedHat, apache, and PHP has you > do ./configure --with-apxs=/usr/bin/apxs And the webserver is running fine. > >> From: jeremy brand <jeremy@smackdown.com> >> Reply-To: jeremy@nirvani.net >> Date: Mon, 30 Oct 2000 20:15:40 -0800 (PST) >> To: Mike Tuller <mitull01@willy.wsc.edu>, Jason Cox <jasonc@webpipe.net>, > php >> <php-general@lists.php.net> >> Subject: Re: [PHP] Redhat 6.2 and PHP4 with SNMP >> >> Mike, >> >> You might want to try using the apxs in your apache bin directory. Mine is >> /usr/local/apache/bin/axps. Try and find yours where ever you installed >> apache. >> >> Maybe that'll work. If that is the error you are getting, I suspect that >> apache is still not configured correctly. >> >> -jeremy >> >> --- Mike Tuller <mitull01@willy.wsc.edu> >>> wrote: >>> SNMP doesn't seem to be the problem. Here is what I get. >>> >>> checking for Apache module support via DSO through APXS... >>> ./configure: /usr/bin/apxs: No such file or directory >>> configure: error: Sorry, I cannot run apxs. Either you need to install > Perl >>> or you need to pass the absolute path of apxs by using >>> --with-apxs=/absolute/path/to/apxs >>> >>> >>> But is I use locate to see if the file exists, here is what I get. >>> >>> [root@cypher php-4.0.3pl1]# locate apxs >>> /usr/bin/apxs >>> >>> >>> So it is telling me that something doesn't exist that clearly does. I > even >>> reinstalled Perl to see if that might be it. I was sure it wasn't since > we >>> use Perl all the time without a problem. >>> >>> >>>> From: "Jason Cox" <jasonc@webpipe.net> >>>> Date: Mon, 30 Oct 2000 20:48:08 -0700 >>>> To: "Mike Tuller" <mitull01@willy.wsc.edu> >>>> Cc: "Php-General@Lists.Php.Net" <php-general@lists.php.net> >>>> Subject: RE: [PHP] Redhat 6.2 and PHP4 with SNMP >>>> >>>> It's totally possible. I've done it on numerous servers. Try > specifying >>>> the paths to the modules in your configure statement >>>> like --with-snmp=/usr/local/snmp >>>> >>>> Jason >>>> >>>>> -----Original Message----- >>>>> From: Mike Tuller [mailto:mitull01@willy.wsc.edu] >>>>> Sent: Monday, October 30, 2000 6:17 PM >>>>> To: php-general@lists.php.net >>>>> Subject: [PHP] Redhat 6.2 and PHP4 with SNMP >>>>> >>>>> >>>>> I've been trying for 4 days now to get PHP installed with SNMP, and > have >>>>> looked at every mailing list I could find. I still can't get it going. > I >>>>> have installed apache from source, from RPM, tried with apxs, >>>>> modifying the >>>>> source RPM, everything, but I still can't get it to work. I >>>>> either run into >>>>> problems with dependencies, or the compiler says that it needs files > that >>>>> exist. >>>>> >>>>> Here is the script I am using with the apache RPM. I have tried >>>>> both PHP3 an >>>>> 4, and both come up that it can't find apxs, but it is there. >>>>> >>>>> ./configure --with-apxs=/usr/bin/apxs --enable-safe-mode >>>>> --with-exec-dir=/usr/bin --with-system-regex --disable-debug >>>>> --enable-debugger --enable-magic-quotes --enable-track-vars >>>>> --enable-sysvsem >>>>> --enable-sysvshm --enable-track-vars --with-xml --with-ftp --with-snmp >>>>> >>>>> If I try to install by using the source, the files are installed into >>>>> locations that RPMs wouldn't like later. If anyone knows how to > configure >>>>> the source for apache so that it puts the files in the locations >>>>> that redhat >>>>> likes, I might be able to work with that too. >>>>> >>>>> >>>>> >>>>> Thanks, >>>>> Mike >>>>> >>>>> >>>>> -- >>>>> PHP General Mailing List (http://www.php.net/) >>>>> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >>>>> For additional commands, e-mail: php-general-help@lists.php.net >>>>> To contact the list administrators, e-mail: > php-list-admin@lists.php.net >>>>> >>>>> >>>> >>>> >>>> _______________________________________________________ >>>> Site Design, Hosting, and E-Commerce at www.webpipe.net >>> >>> >>> -- >>> PHP General Mailing List (http://www.php.net/) >>> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >>> For additional commands, e-mail: php-general-help@lists.php.net >>> To contact the list administrators, e-mail: php-list-admin@lists.php.net >> >> == >> _______________________________________________________________________ >> GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9 >> _ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html >> for more __ >> >> _____________________________________________________________ >> Get Your Own Private, Free E-mail Now! >> your_name@smackdown.com http://www.smackdown.com >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> <spacer> > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#22991) next »