php-install Digest 26 Apr 2001 18:32:04 -0000 Issue 280

Topics (messages 2888 through 2896):

Re: Distinguishing Red Hat 7.0
        2888 by: Yasuo Ohgaki

Problems starting apache with php3 and php4
        2889 by: Volker Richert

User oracle mandatory for oci support?
        2890 by: Marko Perich

Installing PHP4.0.4pl1 under Win2000
        2891 by: Volker Richert
        2893 by: Phil Driscoll

Problems with installation with Sablotron
        2892 by: Viral Shah

Re: PHP unter RedHat Linux 7
        2894 by: Andrew Apold

RH7.1, PHP4, and ucd-snmp
        2895 by: Nicholas Ritter
        2896 by: Rasmus Lerdorf

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]


----------------------------------------------------------------------


Read following file from you PHP script

/etc/redhat-release

It should there and have version in it. (Unless user delete it)

Regards,
--
Yasuo Ohgaki


"Jonathan Hilgeman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is there any way for PHP to distinguish if it is being run on Red Hat 7.0 or
> not? I know there's a variable called $SERVER_SOFTWARE but that only gives
> me "Red Hat Linux" - Are there any other distinguishing characteristics
> about the 7.0 version?
>
> Jonathan
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





Hi to all!

I try to upgrade one of our server to support PHP4. To do so, i recompile PHP3 and 
PHP4 with "enable-versioning" and "with-apxs". Compiling works fine. But restarting my 
Apache i got lots of the following errors.

[Thu Apr 26 09:52:40 2001] [error] Cannot remove module mod_xxxx.c: not found in 
module list

After removing LoadModule and AddModule (PHP4) apache starts.

Any idea?

I still need PHP2-support, which works fine in combination with PHP3.

Volker




Hi PHP community.

Finnaly, I have Oracle/PHP/Apache up & running.
Now, the problem is that i can't access oci functions if apache is
running as nobody/nobody.

Changing User in httpd.conf to oracle/nobody makes me able to connect
without problems, but I think this is not the best solution.

Please some hint to keep mi site secure with nobody/nobody.

Thanks.

Marko.




Hi !

I try to install PHP4 on a win2000 server system using isapi. I follow the 
installation instruction.

But when i request a PHP file i get "module coun't be found."

Any Idea?

Volker Richert




To get some decent error reports about what's going wrong, make sure you
have php.exe on your machine in the same directory as php4isapi.dll.
>From the command line, change to that directory and type php.exe -i

You'll either get a screen full of html or a useful error message which will
help you sort out the problem.

For starters you should disable any extensions you have enabled in php.ini

Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org





Hello,

I am trying to install PHP with XSLT support (sablotron).  I am faced with problems in 
running the ./configure command.

I downloaded the expat code from source forge and installed it.  I then installed 
sablotron 0.52.  There were no errors.  I then tried to run the PHP ./configure script 
like this:

> ./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr/local/mysql --with-xml 
>--with-sablot=/usr/local/sablotron --enable-track-vars --enable-magic-quotes

This gave an error and the contents of the debug.log file are as follows:

<--debug.log-->

CONFIGURE:   './configure' '--with-apxs=/usr/sbin/apxs' '--with-mysql=/usr/loca
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:    -DLINUX=2 -DMOD_SSL=207101 -DEAPI -DUSE_EXPAT
CXX:
CXXFLAGS:
INCLUDES:    -I/usr/include/apache  -I$(top_builddir)/Zend -I/usr/local/mysql/i
LDFLAGS:     -Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql
LIBS:       -lxmltok -lxmlparse -lsablot -lmysqlclient -lresolv -lm -ldl -lcryp
DLIBS:
SAPI:       apache
PHP_RPATHS:  /usr/local/mysql/lib/mysql /usr/local/sablotron/lib
uname -a:   Linux server1.gavin.com 2.2.14-12.10RS #1 Mon Oct 9 17:20:11 CDT 20

gcc -o conftest -g -O2  -DLINUX=2 -DMOD_SSL=207101 -DEAPI -DUSE_EXPAT  -Wl,-rpa
/usr/local/sablotron/lib/libsablot.so: undefined reference to `XML_ParserCreate
/usr/local/sablotron/lib/libsablot.so: undefined reference to `XML_SetEncoding'
/usr/local/sablotron/lib/libsablot.so: undefined reference to `XML_SetCommentHa
/usr/local/sablotron/lib/libsablot.so: undefined reference to `XML_SetNamespace
collect2: ld returned 1 exit status

<--end debug.log-->

Could anyone please help me solve this problem?  Thank you in anticipation of your 
help.

Regards.

===
Viral Shah




> > hi guys, i've just installed redhat linus 7. i borowed the cd from a friend
> > because i have redhat 6.2. i wanted to install php but i don't know wich
> > version i should download, but i guess not one of the win32 binaries ;-)...
> > but how can i compile the source-code?
> > on my linux cd is a php-module 3 on it but it doesn't work?!?. can someone
> > help me?

IIRC redhat 7 comes with php as an installation option.  As long as you
aren't
adding things like pdflib (flinch) all you should have to do is select
it, or
use the gnomerpm (flinch) installer.

Otherwise, just grab the latest source tar from php.net's download
section.  
I may flinch now and then, but that is really a better way to go about
it...




Greetings everyone,

I have a PIII 850 box running RH7.1 and have encountered a problem with
adding snmp support to php4. I hope that someone has a suggestion as to how
to fix this....here are the details:


RPMs installed:
(I am using the stock rpms from the RH7.1 distro for apache, mysql,  and
ucd-snmp)
apache-1.3.19-5  (and it's devel rpm)
mysql-3.23.36-1  (and it's devel rpm, server and client rpms)
ucd-snmp-4.2-12  (and it's devel and utils rpms)


PHP compiles fine, but apache won't startup due to a symbol error:

Cannot load libphp4.so into server: /usr/lib/libsnmp-0.4.2.so: undefined
symbol: EVP_DigestInit


If anyone can't already tell, I am compiling php4 as a loadable module, and
not with apache itself.


debug.log:

CONFIGURE:   './configure' '--prefix=/usr' '--with-config-file-path=/etc'
'--enable-pic' '--enable-shared' '--enable-inline-optimization'
'--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin'
'--with-regex=system' '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr'
'--with-png' '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger'
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets'
'--enable-sysvsystem' '--enable-sysvshm' '--enable-track-vars'
'--enable-ftp' '--enable-wddx' '--with-mysql' '--without-oracle'
'--without-oci8' '--with-xml' '--with-snmp' '--with-versioning'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:    -DLINUX=22 -DMOD_SSL=208101 -DEAPI -DEAPI_MM -DUSE_EXPAT
CXX:        
CXXFLAGS:   
INCLUDES:    -I/usr/include/apache  -I$(top_builddir)/Zend
-I/usr/include/freetype -I/root/php-4.0.4pl1/ext/mysql/libmysql
-I/usr/include/ucd-snmp
LDFLAGS:
LIBS:       -lsnmp -lttf -lz -lpng -lgd -ljpeg -ldb -ldb2 -lgdbm -lresolv
-lm -ldl -lcrypt -lnsl  -lresolv -L/usr/lib -ljpeg
DLIBS:      
SAPI:       apache
PHP_RPATHS: 
uname -a:   Linux Thor.lfc.edu 2.4.2-2 #1
Sun Apr 8 20:41:30 EDT 2001 i686 unknown

gcc -o conftest -g -O2  -DLINUX=22
-DMOD_SSL=208101 -DEAPI -DEAPI_MM -DUSE_EXPAT  conftest.c -lsnmp -lttf -lz
-lpng -lgd -ljpeg -ldb -ldb2 -lgdbm -lresolv -lm -ldl -lcrypt -lnsl
-lresolv -L/usr/lib -ljpeg 1>&5
/usr/lib/libsnmp.so: undefined reference to `EVP_DigestInit'
/usr/lib/libsnmp.so: undefined reference to `EVP_DigestFinal'
/usr/lib/libsnmp.so: undefined reference to `EVP_md5'
/usr/lib/libsnmp.so: undefined reference to `HMAC'
/usr/lib/libsnmp.so: undefined reference to `EVP_sha1'
/usr/lib/libsnmp.so: undefined reference to `des_cbc_encrypt'
/usr/lib/libsnmp.so: undefined reference to `des_key_sched'
/usr/lib/libsnmp.so: undefined reference to `EVP_DigestUpdate'
/usr/lib/libsnmp.so: undefined reference to `RAND_bytes'
/usr/lib/libsnmp.so: undefined reference to `des_ncbc_encrypt'
collect2: ld returned 1 exit status



Any sugestions/help would be greatly appreciated. Thanx in advance for any
time that anyone gives to this problem.

Nicholas





> I have a PIII 850 box running RH7.1 and have encountered a problem with
> adding snmp support to php4. I hope that someone has a suggestion as to how
> to fix this....here are the details:
>
>
> RPMs installed:
> (I am using the stock rpms from the RH7.1 distro for apache, mysql,  and
> ucd-snmp)
> apache-1.3.19-5  (and it's devel rpm)
> mysql-3.23.36-1  (and it's devel rpm, server and client rpms)
> ucd-snmp-4.2-12  (and it's devel and utils rpms)
>
>
> PHP compiles fine, but apache won't startup due to a symbol error:
>
> Cannot load libphp4.so into server: /usr/lib/libsnmp-0.4.2.so: undefined
> symbol: EVP_DigestInit

Try editing your ext/snmp/config.m4 file.  Add the two lines indicated by
+ here:

    if test "$ac_cv_header_default_store_h" = "yes"; then
        dnl UCD SNMP 4.1.x
+        AC_CHECK_LIB(crypto, CRYPTO_free, SNMP_LIBS=-lcrypto)
+        LIBS="$LIBS $SNMP_LIBS"
        AC_TRY_RUN([


Then run ./buildconf and try again and let me know if it fixes it.  Looks
to me like the TRY_RUN is attempted without -lcrypto being added which is
going to make that check for OPENSSL fail.  Don't quite see how this could
ever have worked unless some other extension is adding -lcrypto.

-Rasmus



Reply via email to