php-install Digest 24 Apr 2002 12:57:16 -0000 Issue 803

Topics (messages 6723 through 6730):

Re: FreeBSD configure "--with-vpopmail" problem
        6723 by: Dan Caescu

apache2 whith php 4.2.0 and mysql
        6724 by: F.Lanza
        6726 by: F.Lanza

Re: chrooted apache; php as dso; mysql outside jail
        6725 by: F.Lanza

debug.log
        6727 by: Tipton, David M.

Apache 2 ?
        6728 by: Sven David Hildebrandt
        6729 by: Michael Zeltner

Problem compiling php 4.2.0 with Apache/1.3.23 or BUG?
        6730 by: Erik Slooff

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 ---
It works with 4.2.0 :)
thanks for anyone who was this close ( >-<) to answer :P

"Dan Caescu" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi! I'm using FreeBSD 4.5 and i wanted to install php4.1.2 with vpopmail
> support.
> My configure line was:
>
> './configure' '--with-apxs=/usr/local/sbin/apxs'
> '--with-config-file-path=/usr/local/etc'\
>  '--enable-versioning' '--with-regex=system' '--without-gd'
> '--without-mysql' '--with-gd=/usr/local'\
> '--enable-gd-native-ttf' '--with-freetype-dir=/usr/local'
> '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local'\
> '--with-zlib' '--with-bz2=/usr' '--with-mcrypt=/usr/local'
> '--with-mhash=/usr/local' '--with-imap=/usr/local'\
> '--with-mysql=/usr/local' '--with-snmp=/usr/local'
'--enable-ucd-snmp-hack'
> '--with-openssl=/usr' '--enable-ftp'\
> '--with-iconv=/usr/local' '--enable-mbregex' '--enable-mbstring'
> '--enable-sockets' '--enable-trans-sid'\
> '--prefix=/usr/local'
> 'i386-portbld-freebsd4.5' --with-vpopmail=/usr/local/vpopmail
>
>
> And the error I got was:
> <snip>
>
> /bin/sh
> /usr/ports/www/mod_php4/work/php-4.1.2/libtool --silent --mode=compile
>
c  -I. -I/usr/ports/www/mod_php4/work/php-4.1.2/ext/vpopmail -I/usr/ports/ww
>
w/mod_php4/work/php-4.1.2/main -I/usr/ports/www/mod_php4/work/php-4.1.2 -I/u
>
sr/local/include/apache -I/usr/ports/www/mod_php4/work/php-4.1.2/Zend -I/usr
>
/local/include/freetype2/freetype -I/usr/local/include -I/usr/local/include/
>
c-client -I/usr/local/include/mysql -I/usr/local/include/ucd-snmp -I/usr/loc
> al/vpopmail/include -I/usr/ports/www/mod_php4/work/php-4.1.2/ext/xml/expat
> -DHARD_SERVER_LIMIT=512 -DDOCUMENT_LOCATION="/usr/local/www/data/" -DDEFAU
LT
>
_PATH="/bin:/usr/bin:/usr/local/bin" -DACCEPT_FILTER_NAME="httpready" -DUSE_
> EXPAT -I/usr/ports/www/mod_php4/work/php-4.1.2/TSRM -g -O2 -prefer-pic  -c
> php_vpopmail.c
> php_vpopmail.c: In function `zif_vpopmail_add_alias_domain':
> php_vpopmail.c:288: warning: passing arg 3 of `add_domain_assign' makes
> pointer from integer without a cast
> php_vpopmail.c:288: too few arguments to function `add_domain_assign'
> *** Error code 1
>
> Stop in /usr/ports/www/mod_php4/work/php-4.1.2/ext/vpopmail.
> *** Error code 1
>
> Stop in /usr/ports/www/mod_php4/work/php-4.1.2/ext/vpopmail.
> *** Error code 1
>
> Stop in /usr/ports/www/mod_php4/work/php-4.1.2/ext.
> *** Error code 1
>
> Stop in /usr/ports/www/mod_php4/work/php-4.1.2.
>
> Any ideea where i'm wrong?
>
> Dan
>
>


--- End Message ---
--- Begin Message ---
hi,
I've been compiled today php 4.2.0 with apache 2.0.35, apache compiled 
with DSO support and php with --with-mysql=/path  , --with-apxs=/path and
--disable-posix.

php seems work fine, but all the connection to an mysql database don't work.

anyone have an idea?

tnx and Regards

Franco
--- End Message ---
--- Begin Message ---
F.Lanza wrote:

Little add to my precedent post:

the connection to mysql don't work only if the host of dbserver is 
"localhost",
with remote db server all work.

Is this a bug of php?

Regards

Franco

> hi,
> I've been compiled today php 4.2.0 with apache 2.0.35, apache compiled
> with DSO support and php with --with-mysql=/path  , --with-apxs=/path and
> --disable-posix.
> 
> php seems work fine, but all the connection to an mysql database don't
> work.
> 
> anyone have an idea?
> 
> tnx and Regards
> 
> Franco

--- End Message ---
--- Begin Message ---
Calin Damian wrote:

Hi, 
I have the same configuration, apache and php in a chroot, and mysql out of 
the jail.

I use for connetting to the db server simply the host in the /etc/hosts 
file in the chroot, and this host is the external ip of the machine, and 
all works fine.

Regards

Franco

> 
> hi,
> 
> I tried to configure a chrooted web server (apache) with php.
> Everything works fine except mysql support builtin in php which fails to
> work on localhost mysql server.
> 
> The problem: for local connections "mysql_connect" php's function tries to
> locate /var/lib/mysql/mysq.sock socket file.
> 
> I do not want to use mysql's socket file not even for local connections
> because of chrooted instalation.
> 
> Is there any option to force php to use tcp/ip connections even when host
> is localhost ?
> 
> 

--- End Message ---
--- Begin Message ---
CONFIGURE:   './configure'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:
CXX:
CXXFLAGS:
INCLUDES:      -I$(top_builddir)/Zend -I/home/tiptond/php-4.1.2/ext/mysql/li
bmys
ql
LDFLAGS:
LIBS:       -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcrypt
DLIBS:
SAPI:       cgi
PHP_RPATHS:
uname -a:   Linux openpc.org 2.4.7-10smp #1 SMP Thu Sep 6 16:16:16 EDT 2001
i686
 unknown

gcc -o conftest -g -O2
 conftest.c -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -l
crypt 1>&5
~

This is the log from a RedHat 7.2 installation.  What am I missing?  Please
respond direct.

Thanks,
Dave

--- End Message ---
--- Begin Message ---
Hello!

How come you're bragging on the www.php.net MAIN page about having support for Apache 
2, when this
is not at all mentioned in the install.txt document that comes along with the 
php-4.2.0-Win32 zip package???

Regards,
Sven David
--- End Message ---
--- Begin Message ---
i need this too please! fast please!

thanks michael


Sven David Hildebrandt <[EMAIL PROTECTED]> wrote:
> Hello!
>
> How come you're bragging on the www.php.net MAIN page about having
> support for Apache 2, when this
> is not at all mentioned in the install.txt document that comes
> along with the php-4.2.0-Win32 zip package???
>
> Regards,
> Sven David


--- End Message ---
--- Begin Message ---
Hi,

I am trying to compile php 4.2.0 with apache 1.3.23 on a SuSE 7.0 system
using the following configure command:

./configure --with-apxs=/usr/local/httpd/bin/apxs --with-gettext --with-xml 
--with-mysql --with-imap --with-gd --with-zlib

It then gives the error:
error: Use --with-apxs2 with Apache 2.x!
even though its 1.3.23

After looking into the code of configure and commenting out these lines:
# Test that we're trying to configure with apache 1.x
if test -f "$APXS_INCLUDEDIR/ap_mpm.h"; then
{ { echo "$as_me:5006: error: Use --with-apxs2 with Apache 2.x!" >&5
echo "$as_me: error: Use --with-apxs2 with Apache 2.x!" >&2;}
{ (exit 1); exit 1; }; }
fi

"configure", "make" and "make install" ran well without a problem. Is there
a mistake in the check the configure script is doing? The file it is
checking is there although I have never had apache 2.X on the system.

Maybe a bug?

Erik


--- End Message ---

Reply via email to