php-install Digest 31 Mar 2001 11:44:26 -0000 Issue 241

Topics (messages 2634 through 2638):

Re: Simple script won't parse
        2634 by: James Kapherr

Re: paranoide installation of php4 and auth_ldap
        2635 by: John.Airey.rnib.org.uk

Recompile PHP RPM with -DEAPI?
        2636 by: Myke Carter

repost:  conftest can't open library?
        2637 by: Andrew Hill

PHP4 install prob with gd1.8.4 and X11
        2638 by: Evan Davies

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]


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


Either

<? phpinfo(); ?>
or
<?php phpinfo(); ?>

--James



-----Original Message-----
From: A.T.Z. [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 10:20
To: [EMAIL PROTECTED]
Subject: Re: [PHP-INST] Simple script won't parse


At 16:51 29-3-01 -0500, Chris Oman wrote:
>Followed the instruction to a T. Script is the basic <%php phpinfo(); %> in
>the document root. Did the AddType in httpd.conf. Did the "httpd -l",
>mod_php4.c listed. What am I doing wrong?

<?phpinfo()?> or <?phpinfo();?>
The first one worked for me..

Bye,



B.


--
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]




________________________________________________________________________
This message has been checked for all known viruses, by Star Internet, 
delivered through the MessageLabs Virus Control Centre. 
For further information visit:
http://www.star.net.uk/stats.asp





IIRC Apache (with or without modssl) passes the PHP_AUTH_USER and
PHP_AUTH_PASSWORD values from logged in sessions to PHP. It is possible to
use PHP to handle the authentication itself. A simple way to clear them is
to explicitly set these values to NULL, 0,"" or whatever your prefer at the
start of a script.

As I hope that you are aware, using the LDAP module over SSL still ensures
that the username and password are encrypted, so I don't actually see that
there is an issue with having these variables set.

As for writing your logged in name into the log, that is what Apache does
whenever you authenticate with the auth module. I've been trying to find a
way to capture NT or Netware usernames this way, but have had no success so
far. There used to be a trick where an image on a Samba share could be put
on a web page and NT would kindly send it's username and password in
cleartext when you access the file. Since SP3 this has been disabled.

No doubt I'm entirely wrong and flames will follow...

- 
John Airey
Internet Systems Support Officer, ITCSD, Royal National Institute for the
Blind,
Bakewell Road, Peterborough PE2 6XU,
Tel.: +44 (0) 1733 375299 Fax: +44 (0) 1733 370848 [EMAIL PROTECTED] 


> -----Original Message-----
> From: Michael Weisbach [mailto:[EMAIL PROTECTED]]
> Sent: 29 March 2001 11:57
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: OT?: paranoide installation of php4 and auth_ldap
> 
> 
> 
> Hello PHP-folks, Apache-folks and mod_ssl-folks,
> 
> I'v a little mysterious phaenomen and I hope, anyone can help me:)
> 
> First of all, my configuration:
>       apache_1.3.19
>       mod_ssl-2.8.1-1.3.19
>       auth_ldap-1.5.3
> and   php-4.0.4pl1
> ... very nice at all.
> 
> On my server I've a test-directory /tests/ with 
> php-info.html, that works
> fine (php4 up'n'running). It's only ssl-secured and does'nt 
> use any kind
> of auth-features!
> 
> Secondly I've configured /server-info on same host with SSL 
> (of course;)
> and with ldap_auth authentification, that works also fine.
> 
> If I access php-info.html with netscape newly started there is no
> 'problem'. The access_log looks like
> 
> 123.123.123.123 - - [29/Mar/2001:12:38:46 +0200] "GET
>  
> /tests/php-info.html?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 
> HTTP/1.0"
>  200 4440 "https://tirnanog.tuts.nu/tests/php-info.html" "Mozilla/4.76
>  [en] (X11; U; Linux 2.2.17 i686)" 
> 
> Fine, is'nt it? (php appends session informations?... maybe 
> bad, but okay)
> 
> Now I access /server-info and type in my uid and password,
> the apache/auth_ldap works fine, I get the page:
> 
> 123.123.123.123 - - [29/Mar/2001:12:43:08 +0200] "GET /server-info
>  HTTP/1.0" 401 471 "-" "Mozilla/4.76 [en] (X11; U; Linux 2.2.17 i686)"
> 123.123.123.123 - mwei [29/Mar/2001:12:43:16 +0200] "GET /server-info
>  HTTP/1.0" 200 46109 "-" "Mozilla/4.76 [en] (X11; U; Linux 
> 2.2.17 i686)"
> 
> Fine.
> 
> Now I access /tests/php-info.html once again:
> (Remember - there is no password-check at all!)
> 
> 123.123.123.123 - mwei [29/Mar/2001:12:44:26 +0200] "GET
>  /tests/php-info.html HTTP/1.0" 200 72068 "-" "Mozilla/4.76 
> [en] (X11; U;
>  Linux 2.2.17 i686)"
> 
> Huh? First of all 'mwei' (my ldap autheticated user-id) is 
> being logged?!
> But the real bad thing: PHP_AUTH_USER and the uncrypted 
> PHP_AUTH_PASSWORD
> (because auth_ldap works with AuthType=Basic) is set! Not very nice at
> all, I thing.
> 
> What's happen? How can I prevend this stupid password-passing 
> thru php4?
> 
> IMHO there is no need to pass auth-informations to php4 (okay, the
> PHP_AUTH_USER is needed; but password not!) because I want 
> only auth_ldap
> checked auth-areas on my w3-server and this workx very well. 
> 
> Thnx a lot 4 help or hints,
> 
>       -- Micha
> 
> P.S. Pls. make a Cc: on my email account too. Thnx.
> 
> -- 
> 42rd Law of Computing: Anything that can go wro
> pine: Segmentation violation: Core dumped ^J&6§4^+^)NO CARRIER
> ______________________________________________________________________
> Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
> User Support Mailing List                      [EMAIL PROTECTED]
> Automated List Manager                            [EMAIL PROTECTED]
> 




Hello,

I'm having trouble getting my Red Hat Linux 6.2 / Apache 1.3.12 / PHP3 / MySQL
installation to function with SSL and VeriSign trial site ID certificates.

Once the certificate is in place I need to restart Apache, however, Apache will
not restart.  Instead I receive the following error message:

--------------------------------------------------------------------
Starting httpsd with SSL
[Wed Feb 28 21:28:46 2001] [warn] Loaded DSO modules/libphp3.so uses
plain Apache 1.3 API, this module might crash under EAPI! (please
recompile it with -DEAPI)
                                                           [FAILED]
--------------------------------------------------------------------

I understand that this can be corrected when compiling from source, however, for
several reasons I need to know how to get past this problem using the the standard
RPMs provided by Red Hat.

In order to enable PHP3 to work with MySQL I had to modify the PHP source RPM, add
"--with-mysql", etc. to a config file, rebuild the binary from there and install. 
A simple fix.  I assume that this -DEAPI problem with PHP can also be corrected by
way of a similar modification to the PHP source followed by another rebuild.  What
that modification is, however, I do not - and desperately need - to know.

Thanks,

Myke




When configure creates conftest, what does it use to set .libs?
I've specified my include path properly, but it's not being picked up under
Mac OS X.


> CONFIGURE:   './configure' '--prefix=/usr' '--sysconfdir=/etc'
> '--localstatedir=/var' '--mandir=/usr/share/man'
> '--with-iodbc=/usr/local/src/odbcsdk' '--with-mysql
> =/usr/local/mysql' '--with-xml' '--with-apache=../apache_1.3.19'
> CC:         cc
> CFLAGS:     -g -O2
> CPPFLAGS:    -traditional-cpp
> CXX:
> CXXFLAGS:
> INCLUDES:    -I/usr/local/src/apache_1.3.19/src/include
> -I/usr/local/src/apa
> che_1.3.19/src/os/unix  -I$(top_builddir)/Zend
> -I/usr/local/mysql/include -I
> /usr/local/
> src/odbcsdk/include
> LDFLAGS:     -L/usr/local/mysql/lib -L/usr/local/mysql/lib
> -L/usr/local/src/
> odbcsdk/lib -L/usr/local/src/odbcsdk/lib
> LIBS:       -liodbc -lmysqlclient -lm
> DLIBS:
> SAPI:       apache
> PHP_RPATHS:  /usr/local/mysql/lib /usr/local/src/odbcsdk/lib
> uname -a:   Darwin localhost 1.3 Darwin Kernel Version 1.3: Thu Mar  1
> 06:56:40 PST 2001; root:xnu/xnu-123.5.obj~1/RELEASE_PPC  Power Macintosh
> powerpc
>
> cc -o
> conftest -g -O2  -traditional-cpp  -L/usr/local/mysql/lib
> -L/usr/local/mysql
> /lib -L/usr/local/src/odbcsdk/lib -L/usr/local/src/odbcsdk/lib
> conftest.c -liodbc
>  -lmysqlclient -lm  1>&5
> dyld: ./conftest can't open library: .libs/libiodbc.dylib  (No
> such file or
> directory, errno = 2)
>

Best regards,
Andrew
--------------------------------------
Andrew Hill - OpenLink Software
Director Technology Evangelism
eBusiness Infrastructure Technology
http://www.openlinksw.com







Hi all,
this problem is driving me nuts. Install php on RH6.2 with Xfree86 4
complied from source with apache server 1.3.19.
This is the debug.log

CONFIGURE:   './configure' '--with-apxs=/usr/local/apache/bin/apxs'
'--with-msql=/usr/local/Hughes/' '--with-gd' '--with-jpeg-dir=/u
sr/lib/' '--with-xpm-dir=/usr/X11R6/lib/' '--without-mysql'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:    -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT
CXX:
CXXFLAGS:
INCLUDES:    -I/usr/local/apache/include  -I$(top_builddir)/Zend
-I/usr/include/freetype -I/usr/local/Hughes//include
LDFLAGS:     -Wl,-rpath,/usr/lib//lib -L/usr/lib//lib
-Wl,-rpath,/usr/X11R6/lib//lib -L/usr/X11R6/lib//lib
-Wl,-rpath,/usr/local/Hug
hes//lib -L/usr/local/Hughes//lib
LIBS:       -lmsql -lttf -lgd -lX11 -lXpm -ljpeg -lresolv -lm -ldl
-lcrypt -lnsl  -lresolv -L/usr/lib//lib -ljpeg -L/usr/X11R6/lib//
lib -lXpm -L/usr/X11R6/lib//lib -lX11
DLIBS:
SAPI:       apache
PHP_RPATHS:  /usr/lib//lib /usr/X11R6/lib//lib /usr/local/Hughes//lib
uname -a:   Linux bugger 2.2.18 #1 Fri Jan 26 12:41:03 EST 2001 i686
unknown

gcc -o conftest -g -O2  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT
-Wl,-rpath,/usr/lib//lib -L/usr/lib//lib -Wl,-rpath,/usr/X11R6/lib//li
b -L/usr/X11R6/lib//lib -Wl,-rpath,/usr/local/Hughes//lib
-L/usr/local/Hughes//lib conftest.c -lmsql -lttf -lgd -lX11 -lXpm -ljpeg
-
lresolv -lm -ldl -lcrypt -lnsl  -lresolv -L/usr/lib//lib -ljpeg
-L/usr/X11R6/lib//lib -lXpm -L/usr/X11R6/lib//lib -lX11 1>&5
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status

As you can see it can't find X11 ???? . At the console I type ld -l X11
and same thing. Any ideas on how to resolve this.



Reply via email to