php-install Digest 14 Dec 2001 01:30:59 -0000 Issue 601
Topics (messages 5296 through 5303):
Re: Warning: mail() is not supported in this PHP build
5296 by: J.L.Gilmour.exeter.ac.uk
5297 by: Rasmus Lerdorf
directory structure probs
5298 by: Myers, Stephen
Re: FOPEN issues in 4.0.6
5299 by: Jonathan Hilgeman
5302 by: David Callaghan
imap-ssl and mcrypt problem ???
5300 by: Adam Arrowood
Before I move to 4.1...
5301 by: Scott Ecker
Problem Recompiling for GD Support
5303 by: Gabriel Richards
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 ---
>
> Well, somehow you are confused about that
Oh, right. Care to explain what's confusing about...
Running system checks
checking for missing declarations of reentrant functions... done
checking whether compiler supports -R... yes
checking for sendmail... /usr/lib/sendmail
???
Meanwhile, I'll download version 4.1
Jayne.
--
+----+----+----+----+----+----+----+----+----+----+----+----+----+
Jayne Gilmour, BSc. MSc. Unix & Network Administrator
Department of Computer Science, University of Exeter
"Do not meddle in the affairs of sysadmins, for they
are quick to anger and have no need for subtlety"
+----+----+----+----+----+----+----+----+----+----+----+----+----+
--- End Message ---
--- Begin Message ---
Well, have a look at the code then. In ext/standard/basic_functions.c we
have:
#ifdef HAVE_SENDMAIL
PHP_FE(mail, NULL)
#else
PHP_FALIAS(mail, warn_not_available, NULL)
#endif
The error message you posted is created by the warn_not_available function
which means that HAVE_SENDMAIL definitely was not defined when this file
was compiled. Now, HAVE_SENDMAIL comes from the HAVE_SENDMAIL #define in
main/php_config.h which is created by the configure script which in turn
comes from this m4 macro:
AC_DEFUN(PHP_PROG_SENDMAIL,[
AC_PATH_PROG(PROG_SENDMAIL, sendmail,[],
$PATH:/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib)
if test -n "$PROG_SENDMAIL"; then
AC_DEFINE(HAVE_SENDMAIL,1,[whether you have sendmail])
fi
])
This macro is pretty clean. Now perhaps something about this mechanism
didn't work for you on Solaris, so the trivial workaround is to just edit
main/php_config.h and make sure HAVE_SENDMAIL is defined and then
"make clean" and recompile and it should work fine.
-Rasmus
On Thu, 13 Dec 2001 [EMAIL PROTECTED] wrote:
> >
> > Well, somehow you are confused about that
>
> Oh, right. Care to explain what's confusing about...
>
> Running system checks
> checking for missing declarations of reentrant functions... done
> checking whether compiler supports -R... yes
> checking for sendmail... /usr/lib/sendmail
>
>
> ???
>
> Meanwhile, I'll download version 4.1
>
> Jayne.
>
>
--- End Message ---
--- Begin Message ---
i have php running. now i would like to access script files in
sub-directories, but i dont seem to be able to do this, is it necessary to
add extra lines to th ephp.ini or httpd.conf files?
tia
--- End Message ---
--- Begin Message ---
Sounds like more of a DNS issue on the server than with PHP. See if you can
use other command-line utilities like nslookup and whois to get info on
domains.
Hope it helps. ALUMINUM!
- Jonathan
-----Original Message-----
From: David Callaghan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 12, 2001 6:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] FOPEN issues in 4.0.6
I use file ('http://www.target.com') to get information from a partner's web
site. I have made a site using php 4.0.3pl1 and Apache on Windows as a proof
of concept to move from ASP+ and IIS to php and Apache.
I got permission, installed SuSE 7.3 Pro which comes with 4.0.6 and now I
get a Warning: php_network_getaddresses: getaddrinfo failed: Name or service
not known in /usr/local/htdocs/UsedToWork.php message.
allow_url_fopen is set to On in php.ini and phpinfo confirms in the PHP Core
Configuration that allow_url_fopen = 1 for local and master.
What did I do wrong? TIN!
--
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]
--- End Message ---
--- Begin Message ---
>Sounds like more of a DNS issue on the server than with PHP. See if you can
>use other command-line utilities like nslookup and whois to get info on
>domains.
>
>Hope it helps. ALUMINUM!
I took the script verbatim from the php manual and tried it on the server and on a
workstation and I got the same results from both tests.
--- End Message ---
--- Begin Message ---
If anyone can help out with this I would be
very grateful!
Here's my problem. I'm trying to compile PHP
for use with IMP 3.0 (and other projects) on a RedHat box (i686, rh7.1)
and am trying to use the following configure line:
./configure
--with-apxs=/services/www/server/bin/apxs
--with-zlib --with-mm --with-ldap
--with-gettext --enable-ftp
--with-db3=/usr/local/BerkeleyDB.3.1
--enable-sockets
--prefix=/services/www/server/php
--with-openssl=/usr/local/ssl
--with-imap-ssl=/usr/local/ssl
--with-imap=/usr/local/src/imap-2001a
--with-mcrypt
and it compiles and installs fine. Buuuut, when I try to start apache, I
get:
Cannot load /services/www/server/libexec/libphp4.so into server:
/services/www/server/libexec/libphp4.so: undefined symbol: krb5_defkeyname
If I don't include mcrypt, everything is fine. So, mcrypt somehow needs
kerberos stuff on RedHat 7.1 (??). But I need mcrypt, so if I prepend either
export LDFLAGS="-L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam";
or append
--with-kerberos=/usr/kerberos
to the configure statement above, it compiles, installs and apache
starts ok, but imap-ssl won't connect. It just hangs. Withouth mcrypt
(and the kerberos associated stuff) imap-ssl works fine.
Is anyone out there using imap-ssl and mycrypt in PHP on a RedHat 7.1
box? I'm fairly certain my box is up to date with all the RedHat rpms
and I'm 99% all the paths and ld_so.conf are correct.
Any clues?
thanks,
adam arrowood
adam@ NO_SP4M oit.gatech.edu
http://bastille.ns.gatech.edu/info.html
--- End Message ---
--- Begin Message ---
I haven't had any trouble with installing php before, but I've been seeing
some trouble in the lists. Can anyone verify that my usual install script
will work before I overwrite everything and kill my server:
CFLAGS='-O2 -I /usr/include/openssl' ./configure \
--with-apache=/usr/local/src/apache_1.3.22 \
--with-mysql=/var/mysql \
--enable-memory-limit=yes \
--enable-debug=no --enable-track-vars
make;make install
cp php.ini-dist /usr/local/lib/php.ini
Thanks,
Scott
--- End Message ---
--- Begin Message ---
Hi, I'm trying to recompile PHP to include GD and PDFLib support. So, I've
installed those libraries (as well as zlib, libjpeg, libtiff, libpng),
deleted config.cache, then ran :
./configure --with-apxs=/usr/local/apache/bin/apxs --with-openssl --enable-f
tp --with-gd=shared -with-mysql=/usr --with-pdflib --with-jpeg-dir=/usr/loca
l --with-tiff-dir=/usr/local
with no problem, then ran:
make install and got:
gd.c:95: conflicting types for `gdIOCtx'
/usr/include/gd_io.h:18: previous declaration of `gdIOCtx'
Error 1 ....
Previously, I had not compiled PHP --with-apxs, I did it as a static module,
I don't know if that matters. Can someone help with this problem?
One other question. If I'm recompiling PHP, do I need to specify all
the --withs and --enables I did previously, or will it remember for me?
Thanks!
Gabe
-----
Ender Technology
Websites, Database Applications, Hosting
(310) 516-7411
[EMAIL PROTECTED]
http://www.endertechnology.com/
--- End Message ---