php-install Digest 3 Jul 2002 21:44:46 -0000 Issue 914
Topics (messages 7594 through 7607):
Security Alert!
7594 by: Deddy Satriadi
Re: GD2 compile
7595 by: Sidney
7596 by: Sidney
Problems installing php on PWS (Windows 95)
7597 by: Peter Cinquini
PHP 4.2.1/Apache 1.3.26 on RH Linux 7.2
7598 by: Santhanam
PHP 4.2.1, Apache 2.0.36, and GD
7599 by: epankoke.csdatasol.net
install php 4.2.1 with apache 2.0.3
7600 by: carlos silva
Re: PHP tags are not recogonized.
7601 by: kramer
php 4.2.1 + xslt/sablotron
7602 by: Moraes, Fabio
Gee, guys, some help, please
7603 by: Stewart Dean
7604 by: Rasmus Lerdorf
7605 by: Stewart Dean
7607 by: Stig Venaas
EAPI probs with apache and PHP, but compiling with EAPI!
7606 by: Cygnus - Flirttown Coder
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 ---
Hi all
I have problem with my PHP server, i am using Xitami for web server.
When I run my PHP script with Internet Explorer I always have this message,
Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means
that a page will only be served up if the REDIRECT_STATUS CGI variable is
set, e.g. via an Apache Action directive.
For more information as to why this behaviour exists, see the manual page
for CGI security.
For more information about changing this behaviour or re-enabling this
webserver, consult the installation file that came with this distribution,
or visit the manual page.
anyone can help me? what should I do?
Thank you.
Deddy
PRIVATE & CONFIDENTIAL
This email message and attachments contain information that is confidential to IALF.
If you are not the intended recipient you are not permitted to use, copy or distribute
the message and attachments in any manner.
If you have received this email in error, please inform the sender by return email
immediately and delete all copies of the message and its attachments.
IALF is not responsible for any unauthorised changes made to this email or its
attachments.
This notice should not be removed.
--- End Message ---
--- Begin Message ---
Dear Sir,
After I complie all the files without t1lib, I can see inside the
"config.cache", I can find the:
ac_cv_lib_gd_gdImageCreateFromJpeg=${ac_cv_lib_gd_gdImageCreateFromJpeg=yes}
ac_cv_lib_gd_gdImageCreateFromPng=${ac_cv_lib_gd_gdImageCreateFromPng=yes}
But I cannot use this function after I boot up the Linux Server. Is there
still got some problem I have not solved?
What is the function list i can use to create Image?
Have there got any method for me to find out the php function which i can be
use/ i have already installed in my server?
I have spend so much time and i cannot solve this problem, could anyone help
me?
Best regards,
Sidney
"Sidney" <[EMAIL PROTECTED]> 撰寫於郵件新聞
:[EMAIL PROTECTED]
> Dear Sir,
>
> I have read the document and following the step to setup my Redhat 7.0
Linux
> Server. But when I at Step 5 about Install t1lib, I am failed when i am
> "make" it.
>
> Do you know what is going on?
>
> And also, what is the function of this module(t1lib)?
>
> Could anyone can help me?
>
> Best regards,
> Sidney
>
>
============================================================================
> ====================
> # tar xzf t1lib-1.3.1.tar.gz -C /usr/local
> # cd /usr/local
> # mv t1lib-1.3.1 t1lib
> # ./configure
> # make
> :
> :
> gcc -o subset subset.lo ../lib/libt1.la -lm
> gcc -o .libs/subset subset.o
> ../lib/.libs/libt1.so -lm -Wl,--rpath -Wl,/usr/local/lib
> creating subset
> make[1]: Leaving directory `/usr/local/t1lib/examples'
> for i in doc; do \
> (cd $i; make 'CC=gcc'
>
'CFLAGS=-g -O2 -DT1LIB_IDENT="\"1.3.1\"" -DGLOBAL_CONFIG_DIR="\"/usr/local/s
> hare/t1lib\"" -DT1LIB_NO_X11_SUPPORT ' 'OPTIONS=' ) || exit 1; \
> done
> make[1]: Entering directory `/usr/local/t1lib/doc'
> latex t1lib_doc.tex
> make[1]: latex: Command not found
> make[1]: *** [t1lib_doc.dvi] Error 127
> make[1]: Leaving directory `/usr/local/t1lib/doc'
> make: *** [doc] Error 1
>
>
============================================================================
> ====================
>
>
> "Matt Schroebel" <[EMAIL PROTECTED]>
> ???????:[EMAIL PROTECTED]
> >> ----- Original Message -----
> >> From: "Bal嫙s Csaba" <[EMAIL PROTECTED]>
> >> To: "PhpInstall (Elektronikus levelek)" <[EMAIL PROTECTED]>
> >> Sent: Tuesday, July 02, 2002 3:56 AM
> >> Subject: [PHP-INST] GD2 compile
> >>
> >> I would like to find some inormation to build php4.2.1 with
> >> gD2. I have
> >> downloaded the GD2 source (htp:/www.boutell.com/gd/), but there is not
> any
> >> PHP specific .c or .h file. I cannot overwrite GD1 files in
/php/ext/gd
> >> directory.
> >> Should I build an .SO or .A or .LIB file first?
> >> Is there any simple mode (./configure or any other) to build this GD
> version?
>
> > -----Original Message-----
> > From: Jason Reid [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 02, 2002 2:18 PM
> > To: Bal嫙s Csaba; PhpInstall (Elektronikus levelek)
> > Subject: Re: [PHP-INST] GD2 compile
> >
> >
> > http://www.php.net/~rasmus/gd.html
> >
>
> Also: http://www.php-faq.com/gdinstall.php
>
>
--- End Message ---
--- Begin Message ---
Dear Sir,
After I complie all the files without t1lib, I can see inside the
"config.cache", I can find the:
ac_cv_lib_gd_gdImageCreateFromJpeg=${ac_cv_lib_gd_gdImageCreateFromJpeg=yes}
ac_cv_lib_gd_gdImageCreateFromPng=${ac_cv_lib_gd_gdImageCreateFromPng=yes}
But I cannot use this function after I boot up the Linux Server. Is there
still got some problem I have not solved?
What is the function list i can use to create Image?
Have there got any method for me to find out the php function which i can be
use/ i have already installed in my server?
I have spend so much time and i cannot solve this problem, could anyone help
me?
Best regards,
Sidney
"Sidney" <[EMAIL PROTECTED]> 撰寫於郵件新聞
:[EMAIL PROTECTED]
> Dear Sir,
>
> I have read the document and following the step to setup my Redhat 7.0
Linux
> Server. But when I at Step 5 about Install t1lib, I am failed when i am
> "make" it.
>
> Do you know what is going on?
>
> And also, what is the function of this module(t1lib)?
>
> Could anyone can help me?
>
> Best regards,
> Sidney
>
>
============================================================================
> ====================
> # tar xzf t1lib-1.3.1.tar.gz -C /usr/local
> # cd /usr/local
> # mv t1lib-1.3.1 t1lib
> # ./configure
> # make
> :
> :
> gcc -o subset subset.lo ../lib/libt1.la -lm
> gcc -o .libs/subset subset.o
> ../lib/.libs/libt1.so -lm -Wl,--rpath -Wl,/usr/local/lib
> creating subset
> make[1]: Leaving directory `/usr/local/t1lib/examples'
> for i in doc; do \
> (cd $i; make 'CC=gcc'
>
'CFLAGS=-g -O2 -DT1LIB_IDENT="\"1.3.1\"" -DGLOBAL_CONFIG_DIR="\"/usr/local/s
> hare/t1lib\"" -DT1LIB_NO_X11_SUPPORT ' 'OPTIONS=' ) || exit 1; \
> done
> make[1]: Entering directory `/usr/local/t1lib/doc'
> latex t1lib_doc.tex
> make[1]: latex: Command not found
> make[1]: *** [t1lib_doc.dvi] Error 127
> make[1]: Leaving directory `/usr/local/t1lib/doc'
> make: *** [doc] Error 1
>
>
============================================================================
> ====================
>
>
> "Matt Schroebel" <[EMAIL PROTECTED]>
> ???????:[EMAIL PROTECTED]
> >> ----- Original Message -----
> >> From: "Bal嫙s Csaba" <[EMAIL PROTECTED]>
> >> To: "PhpInstall (Elektronikus levelek)" <[EMAIL PROTECTED]>
> >> Sent: Tuesday, July 02, 2002 3:56 AM
> >> Subject: [PHP-INST] GD2 compile
> >>
> >> I would like to find some inormation to build php4.2.1 with
> >> gD2. I have
> >> downloaded the GD2 source (htp:/www.boutell.com/gd/), but there is not
> any
> >> PHP specific .c or .h file. I cannot overwrite GD1 files in
/php/ext/gd
> >> directory.
> >> Should I build an .SO or .A or .LIB file first?
> >> Is there any simple mode (./configure or any other) to build this GD
> version?
>
> > -----Original Message-----
> > From: Jason Reid [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 02, 2002 2:18 PM
> > To: Bal嫙s Csaba; PhpInstall (Elektronikus levelek)
> > Subject: Re: [PHP-INST] GD2 compile
> >
> >
> > http://www.php.net/~rasmus/gd.html
> >
>
> Also: http://www.php-faq.com/gdinstall.php
>
>
--- End Message ---
--- Begin Message ---
I am having problems installing php on Personal Web Server on Windows 95
using the InstallShield installer and specifying the standard installation.
I have set up a php directory within my webspace and given it full
privileges including execute. When I try and run a test php script I get the
message: "HTTP/1.1 500 Server Error". (I get this message even if I misspell
the URL !)
The FAQ says to run php -i. I get a screen full of html codes (the output of
the phpinfo() function) which indicates that PHP is working. The FAQ
suggests it is a problem with my server configuration. What does this mean?
PWS works fine with ASP and plain HTML. Do I need to do more that just run
the installshield? Any help appreciated.
--- End Message ---
--- Begin Message ---
Dear Friends,
I am trying to install PHP 4.2.1/ Apache 1.3.26 on Redhat Linux 7.2.I build it
from the source code as specified in PHP manual.But when i was rebooting the machine,
the apache service failed with the following error:
line 261 of /etc/httpd/conf/httpd.conf : Cannot load /etc/httpd/modules/libphp4.so
into server : /etc/httpd/modules/libphp4.so undefined symbol:gdbm_errno.
Please help me in this problem.
Thanks in Advance
Santhanam
--- End Message ---
--- Begin Message ---
Is it possible to run the GD graphics library with PHP 4.2.1 and Apache 2.0.36? I am
able to get GD to run fine with PHP 4.0.6, but 4.2.1 doesn't seem to work. I am using
the binary php.exe from the distribution on www.php.net. Thanks for any help you can
provide.
Eric
_______________________________________________________
--- End Message ---
--- Begin Message ---
I have a problem!
I cant make work PHP with Apache .
php is : php 4.2.1
apache is :Apache 2.0.3
and MYSQL is :MYSQL-MAX- 3.2
I need some help , i need to know how install PHP to make work with apache .
best regards
--- End Message ---
--- Begin Message ---
One more note: As instructed, I copied the php.ini to /usr/local/lib.
But I've not modified anything in there. Should I ?
I see Unix paths and directory entries, commented on it. Should I make
any changes ?
I have set PHPRC environment variable to point to /usr/local/lib. That
should suffice isn't.
Can someone throw some light on this. Thanks.
Kramer wrote:
> hello,
>
> I've Apache 1.3.20 up and working. My local-host displays this in Netscape:
> Running version Apache-AdvancedExtranetServer/1.3.20 (Mandrake
> Linux/3mdk) PHP/4.2.1 mod_ssl/2.8.4 OpenSSL/0.9.6b
>
> I installed PHP 4.2.1 under Quick Install DSO option. It went fine - No
> complaints from make/make install either.
>
> As the INSTALL in the php directory suggested, I copied php.ini-dist to
> /usr/local/lib/php.ini - I didn't modify anthing in here.
>
> As suggessted I added the line AddType application/x-httpd-php .php in
> my httpd.conf
>
> Now, my browser doesn't display any PHP tags. It just displays
> <?phpinfo()?> which I've in test.php.
>
> What've I missed ?
>
> All help is very much appreciated. Thanks.
>
> - shanky.
>
--- End Message ---
--- Begin Message ---
sirs,
i'm using a lot of flags to compile php on a openbsd 2.7 and everything
works fine, but when i try to use --enable-xslt --with-xslt-sablot i get
these errors:
.libs/libphp4.lax/libmain.al/internal_functions.lo: Definition of symbol
`_SXPF_DISPOSE_NAMES' (multiply defined)
.libs/libphp4.lax/libmain.al/internal_functions.lo: Definition of symbol
`_SXPF_DISPOSE_VALUES' (multiply defined)
.libs/libphp4.lax/libmain.al/internal_functions.lo: Definition of symbol
`_SXPF_SUPPORTS_UNPARSED_ENTITIES' (multiply defined)
.libs/libphp4.lax/libmain.al/internal_functions.lo: Size element definition
of symbol `_SXPF_DISPOSE_NAMES' (multiply defined)
.libs/libphp4.lax/libmain.al/internal_functions.lo: Size element definition
of symbol `_SXPF_DISPOSE_VALUES' (multiply defined)
.libs/libphp4.lax/libmain.al/internal_functions.lo: Size element definition
of symbol `_SXPF_SUPPORTS_UNPARSED_ENTITIES' (multiply defined)
.libs/libphp4.lax/libxslt.al/sablot.lo: Definition of symbol
`_SXPF_DISPOSE_NAMES' (multiply defined)
.libs/libphp4.lax/libxslt.al/sablot.lo: Definition of symbol
`_SXPF_DISPOSE_VALUES' (multiply defined)
.libs/libphp4.lax/libxslt.al/sablot.lo: Definition of symbol
`_SXPF_SUPPORTS_UNPARSED_ENTITIES' (multiply defined)
.libs/libphp4.lax/libxslt.al/sablot.lo: Size element definition of symbol
`_SXPF_DISPOSE_NAMES' (multiply defined)
.libs/libphp4.lax/libxslt.al/sablot.lo: Size element definition of symbol
`_SXPF_DISPOSE_VALUES' (multiply defined)
.libs/libphp4.lax/libxslt.al/sablot.lo: Size element definition of symbol
`_SXPF_SUPPORTS_UNPARSED_ENTITIES' (multiply defined)
Could anybody help me ?
Thanks in advance,
---
Fabio Moraes
[EMAIL PROTECTED]
+55 21 3088.9183
--- End Message ---
--- Begin Message ---
PHP is a wonderful piece of work but not much use if I can't get it compiled. I
have posted this problem twice and gotten zip response. There's plenty of
documentation for implementation & programming *after* the installation, but
installation docs have gaping holes in them...to list just a very few basic
questions currently bedeviling me:
1) What implementation(s) of LDAP are supported?
2) What functionality and access is engaged by setting the --with-ldap option in
PHP configure? Is there any builtin support as there is for MySQL? Is this ldap
support for use with client LDAP or server LDAP or some hardwired standard port
interface connection? Is the ldap needed as middleware API for PHP because it has
none of its own?
So far, the docs consist pretty much of 'Here there be LDAP' (and what a dragon it
is!)
I'm baffled that an LDAP that responds properly to remote calls apparently can't
be used locally by PHP as evidenced by the compile failure.
Would someone please enlighten my darkness, if only to say:
1) authoritatively something can't be done
2) point me to a consultant that I could pay for authoritative help
My original post and problem ========================================
I appear to be having problems with my PHP compile ldap linkage...
I am compiling PHP on a working AIX LDAP server that responds correctly to remote
email address queries from mail clients and to PHP client requests from an
existing PHP installation from a Sun machine.
The failure is detailed below, but apparently the PHP compile is looking for a
symbolic that doesn't exist under IBM's LDAP implementation.
I can find next to nothing about the LDAP infrastructure that PHP is expecting; I
can infer that PHP is expecting OpenLDAP (whatever that is) and perhaps is
incompatible with IBM's LDAP?
Please help or give a pointer to someone that knows...I'm at a standstill on this...
The details ===============================================
First run through with my compile, I see two errors:
====1) In making zend....
"zend_extensions.c", line 33.16: 1506-068 (W) Operation between types "void*" and
"int" is not allowed.
== but everything completes and goes on....further on:
Target "all" is up to date.
=====2) but ldap fails
Making all in ldap
/bin/sh /usr/php/php-4.2.1/libtool --silent --mode=compile cc -I.
-I/usr/php/php-4.2.1/ext/ldap -I/usr/php/php-4.2.1/m
ain -I/usr/php/php-4.2.1 -I/usr/HTTPServer/include -I/usr/php/php-4.2.1/Zend
-I/usr/ldap/include -I/usr/php/php-4.2.1/ext/mysql
/libmysql -I/usr/php/php-4.2.1/ext/xml/expat -DAIX=43
-DUSE_PTHREAD_SERIALIZED_ACCEPT -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE
_EXPAT -DNO_DL_NEEDED -I/usr/php/php-4.2.1/TSRM -g -prefer-pic -c ldap.c
"ldap.c", line 216.9: 1506-045 (S) Undeclared identifier LDAP_OPT_RESTART.
"ldap.c", line 1620.14: 1506-045 (S) Undeclared identifier LDAP_OPT_RESTART.
"ldap.c", line 1620.14: 1506-051 (S) Case expression must be a valid integral
constant.
"ldap.c", line 1715.14: 1506-045 (S) Undeclared identifier LDAP_OPT_RESTART.
"ldap.c", line 1715.14: 1506-051 (S) Case expression must be a valid integral
constant.
"ldap.c", line 1719.29: 1506-068 (W) Operation between types "void*" and "int" is
not allowed.
make: 1254-004 The error code from the last command is 1.
Stop.
So I look in /usr/ldap/include and grep LDAP_OPT_RESTART * and find nothing.
So I have perhaps a bigger question....what ldap is being expected in this build?
The LDAP configure options don't mention any qualification as to what ldap is
expected.
"--with-ldap[=DIR] Include LDAP support. DIR is the LDAP base install
directory."
My configure string was:
./configure --with-apxs=/usr/HTTPServer/bin/apxs --with-ldap=/usr/ldap
I have a working LDAP server....which serves emaill addresses to IMAP clients just
fine and to which our PHP developer can bind and work data from a previously setup
Sun machine.
The environment I'm working to install PHP on is an IBM RS/6000 running AIX5.1L.
The webserving SW is IBM's rebranded (to HTTPServer) Apache V1.3.19. The LDAP is
IBM's SecureWay....but that's just the name....it's actually slapd underneath
everything. I would really, really, like to have IBM own the HTTP and Apache (be
responsible for generating updates, etc) and only own PHP....rather than compiling
everything and being responsible for all the updates, security, etc.
So, what gives? Am I right in assuming that the compile is missing some includes
that another LDAP has?
Help.
===
Stewart Dean, Unix System Admin, Henderson Computer Resources
Center of Bard College, Annandale-on-Hudson, New York 12504
[EMAIL PROTECTED] voice: 845-758-7475, fax: 845-758-7035
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
> 1) What implementation(s) of LDAP are supported?
A couple of them should work, but the most commonly used is OpenLDAP.
This is of course all explained on http://php.net/ldap which you of course
read before asking this, right?
> 2) What functionality and access is engaged by setting the --with-ldap option in
> PHP configure? Is there any builtin support as there is for MySQL? Is this ldap
> support for use with client LDAP or server LDAP or some hardwired standard port
> interface connection? Is the ldap needed as middleware API for PHP because it has
> none of its own?
Adding --with-ldap adds support for a compatible LDAP client library which
must be installed on your server. There is no built-in LDAP support in
PHP just like there is no built-in support for most things in PHP. Most
extensions rely on a 3rd-party library to implement the actual mechanism.
> I'm baffled that an LDAP that responds properly to remote calls apparently can't
> be used locally by PHP as evidenced by the compile failure.
The two have nothing to do with each other. The fact that you have an
LDAP server that works does not necessarily mean that you have the
developer client libraries and header files installed for writing
applications against that LDAP server.
> Would someone please enlighten my darkness, if only to say:
> 1) authoritatively something can't be done
What can't be done? Write LDAP client apps in PHP? Of course it can.
> 2) point me to a consultant that I could pay for authoritative help
Sorry, I don't do consulting.
-Rasmus
--- End Message ---
--- Begin Message ---
Thanks, Rasmus, for your reply. I at least have a clearer idea of what I don't
know now, and for that I do truly thank you. I guess I'll have to install the
OpenLDAP client code and hope it doesn't conflict with the IBM LDAP client stuff
that's already there.
I also got a direct personal response from someone with substantive LDAP-PHP
linkage and interoperability experience. I have asked him to post this information.
Rasmus Lerdorf wrote:
>>1) What implementation(s) of LDAP are supported?
>
>
> A couple of them should work, but the most commonly used is OpenLDAP.
> This is of course all explained on http://php.net/ldap which you of course
> read before asking this, right?
Yes, I *DID* read it and no, it doesn't answer this question. The most it says is:
==================
More Information
Lots of information about LDAP can be found at
* Netscape
* University of Michigan
* OpenLDAP Project
* LDAP World
==================
Which is generic information about LDAP, not what works with PHP. As I said in my
note, most of this web page is programming implementation stuff, NOT installation
info.
My criticism is meant to be constructive: if PHP wants to be a business class,
production-grade application, it needs to be accessible and usable in the most
straightforward way possible. Further the deponent sayeth not.
====
Stewart Dean, Unix System Admin, Henderson Computer Resources
Center of Bard College, Annandale-on-Hudson, New York 12504
[EMAIL PROTECTED] voice: 845-758-7475, fax: 845-758-7035
--- End Message ---
--- Begin Message ---
Okay, I'll try to help.
On Wed, Jul 03, 2002 at 02:58:10PM -0400, Stewart Dean wrote:
> PHP is a wonderful piece of work but not much use if I can't get it compiled. I
> have posted this problem twice and gotten zip response. There's plenty of
> documentation for implementation & programming *after* the installation, but
> installation docs have gaping holes in them...to list just a very few basic
> questions currently bedeviling me:
> 1) What implementation(s) of LDAP are supported?
Anything that follows the API in RFC 1823 (including UMich LDAP, OpenLDAP
1.x and Oracle) and anything that follows the new api desribed in the IETF
draft draft-ietf-ldapext-ldap-c-api-05.txt (including OpenLDAP 2.x and
iPlanet with small mods) should work. Some implementations might not
exactly follow these specs, if necessary we can do small modifications
to support more libraries, but maybe not a completely different API. All
LDAP APIs I know of are quite similar though.
> 2) What functionality and access is engaged by setting the --with-ldap option in
> PHP configure? Is there any builtin support as there is for MySQL? Is this ldap
> support for use with client LDAP or server LDAP or some hardwired standard port
> interface connection? Is the ldap needed as middleware API for PHP because it has
> none of its own?
LDAP is not built in, so you need to have an LDAP library and matching
header files installed (it looks like you have this). If it is not in
a standard place, you will have to do --with-ldap=DIR where DIR is
the top dir that contains header and lib files. When you compile PHP
with this you can access LDAP servers, PHP acts as a client. This is
just like accessing say MySQL. The functionality you get is
described in the LDAP section in the manual. You get the functions
listed and that's it.
> I'm baffled that an LDAP that responds properly to remote calls apparently can't
> be used locally by PHP as evidenced by the compile failure.
No, you can use PHP with LDAP on the same host just fine, the compile
failure only shows that the library you use isn't fully supported at
the moment, or there is something unusual with your set up, either
something wrong, or something that PHP doesnt't cater for.
> My original post and problem ========================================
> The failure is detailed below, but apparently the PHP compile is looking for a
> symbolic that doesn't exist under IBM's LDAP implementation.
Yes, seems so.
> I can find next to nothing about the LDAP infrastructure that PHP is expecting; I
> can infer that PHP is expecting OpenLDAP (whatever that is) and perhaps is
> incompatible with IBM's LDAP?
>
> Please help or give a pointer to someone that knows...I'm at a standstill on this...
>
> The details ===============================================
>
> =====2) but ldap fails
> "ldap.c", line 216.9: 1506-045 (S) Undeclared identifier LDAP_OPT_RESTART.
Okay, it looks like your LDAP header files doesn't include this.
Perhaps you could check in ldap.h. This should be defined if you have
a modern API like specified in draft-ietf-ldapext-.... PHP only tries
to use this when your LDAP header file sets LDAP_API_VERSION to > 2000
or if you have Netscape/iPlanet LDAP. It looks like your API falsely
claims to follow the new specification (it's not alone). It probably
supports parts of it though.
I suggest you look for LDAP_API_VERSION in your ldap.h and check
what it is set to. If you find it, try to comment it out and see
if PHP builds (alternatively you could use #undef in PHP's ldap.c
and php_ldap.h).
I might also be able to make it support your API if you tell me what
version etc. and you either give me the ldap.h header file or point
me to some docs. You should perhaps also check if there is a newer
version of the library available.
Stig
--- End Message ---
--- Begin Message ---
Ok, after much frustration, i compiled my new apache with the modules
(php, ssl, etc..)
need only to get more frustration when starting it up.
Here's the deal:
When I startup Apache I get..
-----
[Wed Jul 3 12:55:24 2002] [warn] Loaded DSO libexec/libphp4.so uses plain
Apache 1.3 API, this module might crash under EAPI! (please recompile it
with -DEAPI)
[Wed Jul 3 12:55:26 2002] [notice] Apache/1.3.26
(Unix) mod_throttle/3.1.2 PHP/4.2.1 mod_ssl/2.8.10 OpenSSL/0.9.6d
configured -- resuming normal operations
[Wed Jul 3 12:55:26 2002] [notice] suEXEC mechanism enabled
(wrapper: /usr/local/psa/apache/bin/suexec)
[Wed Jul 3 12:55:26 2002] [notice] Accept mutex: sysvsem
(Default: sysvsem)
[Wed Jul 3 12:55:27 2002] [notice] child pid 29205 exit signal
Segmentation fault (11)
[Wed Jul 3 12:55:53 2002] [notice] child pid 29206 exit signal
Segmentation fault (11)
-----
which basically doesn't serve out anything because of the segfaults.
I've heard this has 'soemthing' to do with ssl. I originally compiled php
--with-imap-ssl (after compiling c-client with SSLTYPE=unix), but then
compiled them both without ssl support after reading such posts, but still
get the above error. Both Apache and Php ARE compiled with EAPI (not by my
mods)
Example output:
PHP:
/bin/sh /usr/src/new/php-4.2.1/libtool --silent --mode=link gcc
-I. -I/usr/src/new/php-4.2.1/ -I/usr/src/new/php-4.2.1/main
-I/usr/src/new/php-4.2.1 -I/usr/local/psa/apache/include
-I/usr/src/new/php-4.2.1/Zend -I/usr/local/openssl/include
-I/usr/include/c-client -I/usr/src/new/php-4.2.1/ext/mysql/libmysql
-I/usr/src/new/php-4.2.1/ext/xml/expat -DHARD_SERVER_LIMIT=2048
-DDEFAULT_PATH="/usr/local/psa/apache/bin:/bin:/usr/bin" -DLINUX=22
-DMOD_SSL=208103 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL
-DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I/usr/src/new/php-4.2.1/TSRM
-g -O2 -prefer-pic -o libphp4.la -rpath /usr/src/new/php-4.2.1/libs
-avoid-version -L/usr/local/openssl/lib -R /usr/local/openssl/lib stub.lo
Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la
/usr/src/new/php-4.2.1/ext/ctype/libctype.la
/usr/src/new/php-4.2.1/ext/imap/libimap.la
/usr/src/new/php-4.2.1/ext/mysql/libmysql.la
/usr/src/new/php-4.2.1/ext/openssl/libopenssl.la
/usr/src/new/php-4.2.1/ext/pcre/libpcre.la
/usr/src/new/php-4.2.1/ext/posix/libposix.la
/usr/src/new/php-4.2.1/ext/session/libsession.la
/usr/src/new/php-4.2.1/ext/standard/libstandard.la
/usr/src/new/php-4.2.1/ext/xml/libxml.la TSRM/libtsrm.la -lpam -lc-client
-lcrypt -lpam -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl -lresolv
-lcrypt -ldl
APACHE:
gcc -DLINUX=22 -I/usr/include/gdbm -DMOD_SSL=208110 -DUSE_HSREGEX -DEAPI
-DEAPI_MM -DUSE_EXPAT -I./lib/expat-lite `./apaci`
-L./../../mm-1.1.3/.libs -rdynamic \
-o httpd buildmark.o modules.o modules/standard/libstandard.a
main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a
lib/expat-lite/libexpat.a -lm -lcrypt -lgdbm -lmm -ldl
Any help is appreciated!
-Tony
SOFTWARE BEING COMPILED IS:
apache 1.3.26 w/frontpage patch
mm-1.1.3
openssl-0.9.6d
mod_ssl-2.8.10-1.3.26
imap-2001a (for c-client lib)
php-4.2.1
mod_throttle-3.1.2
CONFIGURES FOR SOFTWARE IS AS FOLLOWS:
mm-1.1.3
./configure --disable-shared
openssl-0.9.6d
./config --prefix=/usr/local/openssl
mod_ssl-2.8.10-1.3.26
./configure \
--with-apache=../apache_1.3.26 \
--with-crt=/usr/local/psa/apache/conf/ssl.crt/server.crt \
--with-key=/usr/local/psa/apache/conf/ssl.key/server.key \
--with-ssl=/usr/local/openssl
apache_1.3.26
SSL_BASE=/usr/local/openssl \
EAPI_MM=../mm-1.1.3 \
./configure \
--enable-module=ssl \
--enable-shared=ssl \
--add-module=mod_frontpage.c \
--prefix=/usr/local/psa/apache \
--enable-suexec --suexec-caller=apache \
--suexec-userdir=/usr/local/psa/home/vhosts \
--suexec-docroot=/usr/local/psa/apache/htdocs \
--suexec-logfile=/usr/local/psa/apache/logs/suexec_log \
--suexec-uidmin=100 --suexec-gidmin=100 \
--suexec-safepath="/usr/local/bin:/usr/bin:/bin" \
--enable-module=all \
--disable-module=auth_db \
--enable-shared=max
imap-2001a
make slx
cp c-client/c-client.a /usr/lib/libc-client.a
cp c-client/*.h /usr/local/include/c-client/
ln -s /usr/local/include/c-client /usr/include/c-client
./configure --with-mysql \
--with-apxs=/usr/local/psa/apache/bin/apxs \
--with-openssl=/usr/local/openssl \
--with-imap
mod_throttle-3.1.2
make
--- End Message ---