php-install Digest 16 Aug 2002 11:39:46 -0000 Issue 981

Topics (messages 8132 through 8145):

Re: php 4.2.2, apache 2.0.40 make problem from source
        8132 by: alex stinson
        8133 by: Laurent Larquère
        8134 by: Ken Jeansson
        8135 by: alex stinson
        8136 by: Ken Jeansson
        8137 by: Rasmus Lerdorf

Re: Redhat Linux 7.2
        8138 by: Larry Sek
        8140 by: Devrim GUNDUZ
        8141 by: Larry Sek

php with mysql problem
        8139 by: Larry Sek
        8142 by: Larry Sek

directive setting in php.ini
        8143 by: Larry Sek
        8144 by: Larry Sek

It's not working!
        8145 by: Igor Osch Simoes

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 ---
i think i might have found why it might not be working (im not really a good 
coder yet, so this was more of a look around for things that could cause it, 
and browsed the apache code)...it seems that ap_register_input_filter, and 
ap_register_output_filter are missing arguments...
in the apache source, under include/util_filter.h
is:
AP_DECLARE(ap_filter_rec_t *) ap_register_input_filter(const char *name, 
ap_in_filter_func filter_func, ap_init_filter_func filter_init, 
ap_filter_type ftype);
so its declared with 4 arguments, but in sapi_apache2.c 
(php-4.2.2/sapi/apache2filter/sapi_apache2.c, line 534+), it only is:
ap_register_input_filter("PHP",php_input_filter,AP_FTYPE_RESOURCE);

so, to anyone who actually knows what they are doing, what exactly is 
supposed to be inbetween the 'php_input_filter', and 'AP_FTYPE'? above says 
'ap_init_filter_func', but i have no idea what that is

--Pete Rippe


From: "Daniel Eckstein" <[EMAIL PROTECTED]>
To: "Alex Stinson" <[EMAIL PROTECTED]>
Subject: Re: php 4.2.2, apache 2.0.40 make problem from source
Date: Thu, 15 Aug 2002 22:46:55 +0200

Hi,

this is correctly the same, what is happening to me
on a solaris 8 box.

Regards,
Tweeg

----- Original Message -----
From: "Alex Stinson" <[EMAIL PROTECTED]>
Newsgroups: php.install
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 13, 2002 7:11 AM
Subject: php 4.2.2, apache 2.0.40 make problem from source


 > hey, i have a small problem, and i'm not exactly sure how to work around
it
 > involving php4.2.2, and apache 2.0.40
 >
 > uname -a:
 > FreeBSD wsip68-15-48-50.ri.ri.cox.net 4.6-RELEASE FreeBSD 4.6-RELEASE #0:
 > Tue Jun 11 06:14:12 GMT 2002
 > [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386
 >
 > The result of running make after configuring an almost clean source
 > (modifyed only the AP_MODULE_MAGIC code that needs to be changed to work
 > with apache2) with the following:
 > ./configure --with-tsrm-pth --with-mysql --with-apxs2=/usr/www/bin/apxs
 > everything worked fine until i upgraded to apache 2.0.40 (actually, just
 > removed the entire /usr/www directory after a problem)...
 >
 > Making all in apache2filter
 > /bin/sh /usr/php-4.2.2/libtool --silent --mode=compile gcc  -I.
 > -I/usr/php-4.2.2/sapi/apache2filter -I/usr/php-4.2.2/main 
-I/usr/php-4.2.2
 > -I/usr/www/include -I/usr/php-4.2.2/Zend 
-I/usr/php-4.2.2/ext/mysql/libmys
ql
 > -I/usr/php-4.2.2/ext/xml/expat  -D_REENTRANT -D_THREAD_SAFE
 > -I/usr/php-4.2.2/TSRM -I/usr/local/include -DTHREAD=1 -g -O2 -pthread 
-DZT
S
 > -prefer-pic  -c sapi_apache2.c
 > sapi_apache2.c: In function `php_register_hook':
 > sapi_apache2.c:534: warning: passing arg 3 of `ap_register_output_filter'
 > makes pointer from integer without a cast
 > sapi_apache2.c:534: too few arguments to function
 > `ap_register_output_filter'
 > sapi_apache2.c:535: warning: passing arg 3 of `ap_register_input_filter'
 > makes pointer from integer without a cast
 > sapi_apache2.c:535: too few arguments to function
`ap_register_input_filter'
 > *** Error code 1
 >
 > Stop in /usr/php-4.2.2/sapi/apache2filter.
 > *** Error code 1
 >
 > Stop in /usr/php-4.2.2/sapi/apache2filter.
 > *** Error code 1
 >
 > Stop in /usr/php-4.2.2/sapi.
 > *** Error code 1
 >
 > Stop in /usr/php-4.2.2.
 >
 >
 > _________________________________________________________________
 > Send and receive Hotmail on your mobile device: http://mobile.msn.com
 >




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

--- End Message ---
--- Begin Message ---
i have inserted a simple NULL as third argument
and all goes well (Sol8/Sparc)

alex stinson wrote:

> i think i might have found why it might not be working (im not really 
> a good coder yet, so this was more of a look around for things that 
> could cause it, and browsed the apache code)...it seems that 
> ap_register_input_filter, and ap_register_output_filter are missing 
> arguments...
> in the apache source, under include/util_filter.h
> is:
> AP_DECLARE(ap_filter_rec_t *) ap_register_input_filter(const char 
> *name, ap_in_filter_func filter_func, ap_init_filter_func filter_init, 
> ap_filter_type ftype);
> so its declared with 4 arguments, but in sapi_apache2.c 
> (php-4.2.2/sapi/apache2filter/sapi_apache2.c, line 534+), it only is:
> ap_register_input_filter("PHP",php_input_filter,AP_FTYPE_RESOURCE);
>
> so, to anyone who actually knows what they are doing, what exactly is 
> supposed to be inbetween the 'php_input_filter', and 'AP_FTYPE'? above 
> says 'ap_init_filter_func', but i have no idea what that is
>
> --Pete Rippe
>
>
> From: "Daniel Eckstein" <[EMAIL PROTECTED]>
> To: "Alex Stinson" <[EMAIL PROTECTED]>
> Subject: Re: php 4.2.2, apache 2.0.40 make problem from source
> Date: Thu, 15 Aug 2002 22:46:55 +0200
>
> Hi,
>
> this is correctly the same, what is happening to me
> on a solaris 8 box.
>
> Regards,
> Tweeg
>
> ----- Original Message -----
> From: "Alex Stinson" <[EMAIL PROTECTED]>
> Newsgroups: php.install
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 13, 2002 7:11 AM
> Subject: php 4.2.2, apache 2.0.40 make problem from source
>
>
> > hey, i have a small problem, and i'm not exactly sure how to work 
> around
> it
> > involving php4.2.2, and apache 2.0.40
> >
> > uname -a:
> > FreeBSD wsip68-15-48-50.ri.ri.cox.net 4.6-RELEASE FreeBSD 
> 4.6-RELEASE #0:
> > Tue Jun 11 06:14:12 GMT 2002
> > [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386
> >
> > The result of running make after configuring an almost clean source
> > (modifyed only the AP_MODULE_MAGIC code that needs to be changed to work
> > with apache2) with the following:
> > ./configure --with-tsrm-pth --with-mysql --with-apxs2=/usr/www/bin/apxs
> > everything worked fine until i upgraded to apache 2.0.40 (actually, just
> > removed the entire /usr/www directory after a problem)...
> >
> > Making all in apache2filter
> > /bin/sh /usr/php-4.2.2/libtool --silent --mode=compile gcc  -I.
> > -I/usr/php-4.2.2/sapi/apache2filter -I/usr/php-4.2.2/main 
> -I/usr/php-4.2.2
> > -I/usr/www/include -I/usr/php-4.2.2/Zend 
> -I/usr/php-4.2.2/ext/mysql/libmys
> ql
> > -I/usr/php-4.2.2/ext/xml/expat  -D_REENTRANT -D_THREAD_SAFE
> > -I/usr/php-4.2.2/TSRM -I/usr/local/include -DTHREAD=1 -g -O2 
> -pthread -DZT
> S
> > -prefer-pic  -c sapi_apache2.c
> > sapi_apache2.c: In function `php_register_hook':
> > sapi_apache2.c:534: warning: passing arg 3 of 
> `ap_register_output_filter'
> > makes pointer from integer without a cast
> > sapi_apache2.c:534: too few arguments to function
> > `ap_register_output_filter'
> > sapi_apache2.c:535: warning: passing arg 3 of 
> `ap_register_input_filter'
> > makes pointer from integer without a cast
> > sapi_apache2.c:535: too few arguments to function
> `ap_register_input_filter'
> > *** Error code 1
> >
> > Stop in /usr/php-4.2.2/sapi/apache2filter.
> > *** Error code 1
> >
> > Stop in /usr/php-4.2.2/sapi/apache2filter.
> > *** Error code 1
> >
> > Stop in /usr/php-4.2.2/sapi.
> > *** Error code 1
> >
> > Stop in /usr/php-4.2.2.
> >
> >
> > _________________________________________________________________
> > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> >
>
>
>
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>

--- End Message ---
--- Begin Message ---
Okay, and for all us not so skilled could you post the fixed code?

Preatty please with sugar on top... =)

// Ken

"Laurent larquère" <[EMAIL PROTECTED]> skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i have inserted a simple NULL as third argument
> and all goes well (Sol8/Sparc)
>
> alex stinson wrote:
>
> > i think i might have found why it might not be working (im not really
> > a good coder yet, so this was more of a look around for things that
> > could cause it, and browsed the apache code)...it seems that
> > ap_register_input_filter, and ap_register_output_filter are missing
> > arguments...
> > in the apache source, under include/util_filter.h
> > is:
> > AP_DECLARE(ap_filter_rec_t *) ap_register_input_filter(const char
> > *name, ap_in_filter_func filter_func, ap_init_filter_func filter_init,
> > ap_filter_type ftype);
> > so its declared with 4 arguments, but in sapi_apache2.c
> > (php-4.2.2/sapi/apache2filter/sapi_apache2.c, line 534+), it only is:
> > ap_register_input_filter("PHP",php_input_filter,AP_FTYPE_RESOURCE);
> >
> > so, to anyone who actually knows what they are doing, what exactly is
> > supposed to be inbetween the 'php_input_filter', and 'AP_FTYPE'? above
> > says 'ap_init_filter_func', but i have no idea what that is
> >
> > --Pete Rippe
> >
> >
> > From: "Daniel Eckstein" <[EMAIL PROTECTED]>
> > To: "Alex Stinson" <[EMAIL PROTECTED]>
> > Subject: Re: php 4.2.2, apache 2.0.40 make problem from source
> > Date: Thu, 15 Aug 2002 22:46:55 +0200
> >
> > Hi,
> >
> > this is correctly the same, what is happening to me
> > on a solaris 8 box.
> >
> > Regards,
> > Tweeg
> >
> > ----- Original Message -----
> > From: "Alex Stinson" <[EMAIL PROTECTED]>
> > Newsgroups: php.install
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, August 13, 2002 7:11 AM
> > Subject: php 4.2.2, apache 2.0.40 make problem from source
> >
> >
> > > hey, i have a small problem, and i'm not exactly sure how to work
> > around
> > it
> > > involving php4.2.2, and apache 2.0.40
> > >
> > > uname -a:
> > > FreeBSD wsip68-15-48-50.ri.ri.cox.net 4.6-RELEASE FreeBSD
> > 4.6-RELEASE #0:
> > > Tue Jun 11 06:14:12 GMT 2002
> > > [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386
> > >
> > > The result of running make after configuring an almost clean source
> > > (modifyed only the AP_MODULE_MAGIC code that needs to be changed to
work
> > > with apache2) with the following:
> > >
./configure --with-tsrm-pth --with-mysql --with-apxs2=/usr/www/bin/apxs
> > > everything worked fine until i upgraded to apache 2.0.40 (actually,
just
> > > removed the entire /usr/www directory after a problem)...
> > >
> > > Making all in apache2filter
> > > /bin/sh /usr/php-4.2.2/libtool --silent --mode=compile gcc  -I.
> > > -I/usr/php-4.2.2/sapi/apache2filter -I/usr/php-4.2.2/main
> > -I/usr/php-4.2.2
> > > -I/usr/www/include -I/usr/php-4.2.2/Zend
> > -I/usr/php-4.2.2/ext/mysql/libmys
> > ql
> > > -I/usr/php-4.2.2/ext/xml/expat  -D_REENTRANT -D_THREAD_SAFE
> > > -I/usr/php-4.2.2/TSRM -I/usr/local/include -DTHREAD=1 -g -O2
> > -pthread -DZT
> > S
> > > -prefer-pic  -c sapi_apache2.c
> > > sapi_apache2.c: In function `php_register_hook':
> > > sapi_apache2.c:534: warning: passing arg 3 of
> > `ap_register_output_filter'
> > > makes pointer from integer without a cast
> > > sapi_apache2.c:534: too few arguments to function
> > > `ap_register_output_filter'
> > > sapi_apache2.c:535: warning: passing arg 3 of
> > `ap_register_input_filter'
> > > makes pointer from integer without a cast
> > > sapi_apache2.c:535: too few arguments to function
> > `ap_register_input_filter'
> > > *** Error code 1
> > >
> > > Stop in /usr/php-4.2.2/sapi/apache2filter.
> > > *** Error code 1
> > >
> > > Stop in /usr/php-4.2.2/sapi/apache2filter.
> > > *** Error code 1
> > >
> > > Stop in /usr/php-4.2.2/sapi.
> > > *** Error code 1
> > >
> > > Stop in /usr/php-4.2.2.
> > >
> > >
> > > _________________________________________________________________
> > > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> > >
> >
> >
> >
> >
> > _________________________________________________________________
> > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> >
> >
>


--- End Message ---
--- Begin Message ---
sorry...heh, ok, in the php-4.2.2 source directory, edit:
sapi/apache2filter/sapi_apache2.c
goto line 534, theres some code, within the function php_register_hook:

ap_register_output_filter("PHP", php_output_filter, AP_FTYPE_RESOURCE);
ap_register_input_filter("PHP", php_input_filter, AP_FTYPE_RESOURCE);

thats the existing code, change it to:

ap_register_output_filter("PHP", php_output_filter, NULL, 
AP_FTYPE_RESOURCE);
ap_register_input_filter("PHP", php_input_filter, NULL, AP_FTYPE_RESOURCE);

--Pete

From: "Ken Jeansson" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: [PHP-INST] Re: php 4.2.2, apache 2.0.40 make problem from 
source
Date: Fri, 16 Aug 2002 01:42:19 +0200

Okay, and for all us not so skilled could you post the fixed code?

Preatty please with sugar on top... =)

// Ken

"Laurent larquère" <[EMAIL PROTECTED]> skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 > i have inserted a simple NULL as third argument
 > and all goes well (Sol8/Sparc)
 >
 > alex stinson wrote:
 >
 > > i think i might have found why it might not be working (im not really
 > > a good coder yet, so this was more of a look around for things that
 > > could cause it, and browsed the apache code)...it seems that
 > > ap_register_input_filter, and ap_register_output_filter are missing
 > > arguments...
 > > in the apache source, under include/util_filter.h
 > > is:
 > > AP_DECLARE(ap_filter_rec_t *) ap_register_input_filter(const char
 > > *name, ap_in_filter_func filter_func, ap_init_filter_func filter_init,
 > > ap_filter_type ftype);
 > > so its declared with 4 arguments, but in sapi_apache2.c
 > > (php-4.2.2/sapi/apache2filter/sapi_apache2.c, line 534+), it only is:
 > > ap_register_input_filter("PHP",php_input_filter,AP_FTYPE_RESOURCE);
 > >
 > > so, to anyone who actually knows what they are doing, what exactly is
 > > supposed to be inbetween the 'php_input_filter', and 'AP_FTYPE'? above
 > > says 'ap_init_filter_func', but i have no idea what that is
 > >
 > > --Pete Rippe
 > >
 > >
 > > From: "Daniel Eckstein" <[EMAIL PROTECTED]>
 > > To: "Alex Stinson" <[EMAIL PROTECTED]>
 > > Subject: Re: php 4.2.2, apache 2.0.40 make problem from source
 > > Date: Thu, 15 Aug 2002 22:46:55 +0200
 > >
 > > Hi,
 > >
 > > this is correctly the same, what is happening to me
 > > on a solaris 8 box.
 > >
 > > Regards,
 > > Tweeg
 > >
 > > ----- Original Message -----
 > > From: "Alex Stinson" <[EMAIL PROTECTED]>
 > > Newsgroups: php.install
 > > To: <[EMAIL PROTECTED]>
 > > Sent: Tuesday, August 13, 2002 7:11 AM
 > > Subject: php 4.2.2, apache 2.0.40 make problem from source
 > >
 > >
 > > > hey, i have a small problem, and i'm not exactly sure how to work
 > > around
 > > it
 > > > involving php4.2.2, and apache 2.0.40
 > > >
 > > > uname -a:
 > > > FreeBSD wsip68-15-48-50.ri.ri.cox.net 4.6-RELEASE FreeBSD
 > > 4.6-RELEASE #0:
 > > > Tue Jun 11 06:14:12 GMT 2002
 > > > [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386
 > > >
 > > > The result of running make after configuring an almost clean source
 > > > (modifyed only the AP_MODULE_MAGIC code that needs to be changed to
work
 > > > with apache2) with the following:
 > > >
./configure --with-tsrm-pth --with-mysql --with-apxs2=/usr/www/bin/apxs
 > > > everything worked fine until i upgraded to apache 2.0.40 (actually,
just
 > > > removed the entire /usr/www directory after a problem)...
 > > >
 > > > Making all in apache2filter
 > > > /bin/sh /usr/php-4.2.2/libtool --silent --mode=compile gcc  -I.
 > > > -I/usr/php-4.2.2/sapi/apache2filter -I/usr/php-4.2.2/main
 > > -I/usr/php-4.2.2
 > > > -I/usr/www/include -I/usr/php-4.2.2/Zend
 > > -I/usr/php-4.2.2/ext/mysql/libmys
 > > ql
 > > > -I/usr/php-4.2.2/ext/xml/expat  -D_REENTRANT -D_THREAD_SAFE
 > > > -I/usr/php-4.2.2/TSRM -I/usr/local/include -DTHREAD=1 -g -O2
 > > -pthread -DZT
 > > S
 > > > -prefer-pic  -c sapi_apache2.c
 > > > sapi_apache2.c: In function `php_register_hook':
 > > > sapi_apache2.c:534: warning: passing arg 3 of
 > > `ap_register_output_filter'
 > > > makes pointer from integer without a cast
 > > > sapi_apache2.c:534: too few arguments to function
 > > > `ap_register_output_filter'
 > > > sapi_apache2.c:535: warning: passing arg 3 of
 > > `ap_register_input_filter'
 > > > makes pointer from integer without a cast
 > > > sapi_apache2.c:535: too few arguments to function
 > > `ap_register_input_filter'
 > > > *** Error code 1
 > > >
 > > > Stop in /usr/php-4.2.2/sapi/apache2filter.
 > > > *** Error code 1
 > > >
 > > > Stop in /usr/php-4.2.2/sapi/apache2filter.
 > > > *** Error code 1
 > > >
 > > > Stop in /usr/php-4.2.2/sapi.
 > > > *** Error code 1
 > > >
 > > > Stop in /usr/php-4.2.2.
 > > >
 > > >
 > > > _________________________________________________________________
 > > > Send and receive Hotmail on your mobile device: http://mobile.msn.com
 > > >
 > >
 > >
 > >
 > >
 > > _________________________________________________________________
 > > Send and receive Hotmail on your mobile device: http://mobile.msn.com
 > >
 > >
 >



--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

--- End Message ---
--- Begin Message ---
Thanks!

// Ken Jeansson
"Alex Stinson" <[EMAIL PROTECTED]> skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> sorry...heh, ok, in the php-4.2.2 source directory, edit:
> sapi/apache2filter/sapi_apache2.c
> goto line 534, theres some code, within the function php_register_hook:
>
> ap_register_output_filter("PHP", php_output_filter, AP_FTYPE_RESOURCE);
> ap_register_input_filter("PHP", php_input_filter, AP_FTYPE_RESOURCE);
>
> thats the existing code, change it to:
>
> ap_register_output_filter("PHP", php_output_filter, NULL,
> AP_FTYPE_RESOURCE);
> ap_register_input_filter("PHP", php_input_filter, NULL,
AP_FTYPE_RESOURCE);
>
> --Pete
>
> From: "Ken Jeansson" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-INST] Re: php 4.2.2, apache 2.0.40 make problem from
> source
> Date: Fri, 16 Aug 2002 01:42:19 +0200
>
> Okay, and for all us not so skilled could you post the fixed code?
>
> Preatty please with sugar on top... =)
>
> // Ken
>
> "Laurent larquère" <[EMAIL PROTECTED]> skrev i meddelandet
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>  > i have inserted a simple NULL as third argument
>  > and all goes well (Sol8/Sparc)
>  >
>  > alex stinson wrote:
>  >
>  > > i think i might have found why it might not be working (im not really
>  > > a good coder yet, so this was more of a look around for things that
>  > > could cause it, and browsed the apache code)...it seems that
>  > > ap_register_input_filter, and ap_register_output_filter are missing
>  > > arguments...
>  > > in the apache source, under include/util_filter.h
>  > > is:
>  > > AP_DECLARE(ap_filter_rec_t *) ap_register_input_filter(const char
>  > > *name, ap_in_filter_func filter_func, ap_init_filter_func
filter_init,
>  > > ap_filter_type ftype);
>  > > so its declared with 4 arguments, but in sapi_apache2.c
>  > > (php-4.2.2/sapi/apache2filter/sapi_apache2.c, line 534+), it only is:
>  > > ap_register_input_filter("PHP",php_input_filter,AP_FTYPE_RESOURCE);
>  > >
>  > > so, to anyone who actually knows what they are doing, what exactly is
>  > > supposed to be inbetween the 'php_input_filter', and 'AP_FTYPE'?
above
>  > > says 'ap_init_filter_func', but i have no idea what that is
>  > >
>  > > --Pete Rippe
>  > >
>  > >
>  > > From: "Daniel Eckstein" <[EMAIL PROTECTED]>
>  > > To: "Alex Stinson" <[EMAIL PROTECTED]>
>  > > Subject: Re: php 4.2.2, apache 2.0.40 make problem from source
>  > > Date: Thu, 15 Aug 2002 22:46:55 +0200
>  > >
>  > > Hi,
>  > >
>  > > this is correctly the same, what is happening to me
>  > > on a solaris 8 box.
>  > >
>  > > Regards,
>  > > Tweeg
>  > >
>  > > ----- Original Message -----
>  > > From: "Alex Stinson" <[EMAIL PROTECTED]>
>  > > Newsgroups: php.install
>  > > To: <[EMAIL PROTECTED]>
>  > > Sent: Tuesday, August 13, 2002 7:11 AM
>  > > Subject: php 4.2.2, apache 2.0.40 make problem from source
>  > >
>  > >
>  > > > hey, i have a small problem, and i'm not exactly sure how to work
>  > > around
>  > > it
>  > > > involving php4.2.2, and apache 2.0.40
>  > > >
>  > > > uname -a:
>  > > > FreeBSD wsip68-15-48-50.ri.ri.cox.net 4.6-RELEASE FreeBSD
>  > > 4.6-RELEASE #0:
>  > > > Tue Jun 11 06:14:12 GMT 2002
>  > > > [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386
>  > > >
>  > > > The result of running make after configuring an almost clean source
>  > > > (modifyed only the AP_MODULE_MAGIC code that needs to be changed to
> work
>  > > > with apache2) with the following:
>  > > >
> ./configure --with-tsrm-pth --with-mysql --with-apxs2=/usr/www/bin/apxs
>  > > > everything worked fine until i upgraded to apache 2.0.40 (actually,
> just
>  > > > removed the entire /usr/www directory after a problem)...
>  > > >
>  > > > Making all in apache2filter
>  > > > /bin/sh /usr/php-4.2.2/libtool --silent --mode=compile gcc  -I.
>  > > > -I/usr/php-4.2.2/sapi/apache2filter -I/usr/php-4.2.2/main
>  > > -I/usr/php-4.2.2
>  > > > -I/usr/www/include -I/usr/php-4.2.2/Zend
>  > > -I/usr/php-4.2.2/ext/mysql/libmys
>  > > ql
>  > > > -I/usr/php-4.2.2/ext/xml/expat  -D_REENTRANT -D_THREAD_SAFE
>  > > > -I/usr/php-4.2.2/TSRM -I/usr/local/include -DTHREAD=1 -g -O2
>  > > -pthread -DZT
>  > > S
>  > > > -prefer-pic  -c sapi_apache2.c
>  > > > sapi_apache2.c: In function `php_register_hook':
>  > > > sapi_apache2.c:534: warning: passing arg 3 of
>  > > `ap_register_output_filter'
>  > > > makes pointer from integer without a cast
>  > > > sapi_apache2.c:534: too few arguments to function
>  > > > `ap_register_output_filter'
>  > > > sapi_apache2.c:535: warning: passing arg 3 of
>  > > `ap_register_input_filter'
>  > > > makes pointer from integer without a cast
>  > > > sapi_apache2.c:535: too few arguments to function
>  > > `ap_register_input_filter'
>  > > > *** Error code 1
>  > > >
>  > > > Stop in /usr/php-4.2.2/sapi/apache2filter.
>  > > > *** Error code 1
>  > > >
>  > > > Stop in /usr/php-4.2.2/sapi/apache2filter.
>  > > > *** Error code 1
>  > > >
>  > > > Stop in /usr/php-4.2.2/sapi.
>  > > > *** Error code 1
>  > > >
>  > > > Stop in /usr/php-4.2.2.
>  > > >
>  > > >
>  > > > _________________________________________________________________
>  > > > Send and receive Hotmail on your mobile device:
http://mobile.msn.com
>  > > >
>  > >
>  > >
>  > >
>  > >
>  > > _________________________________________________________________
>  > > Send and receive Hotmail on your mobile device: http://mobile.msn.com
>  > >
>  > >
>  >
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>


--- End Message ---
--- Begin Message ---
Just grab a snapshot from snaps.php.net

On Fri, 16 Aug 2002, Ken Jeansson wrote:

> Okay, and for all us not so skilled could you post the fixed code?
>
> Preatty please with sugar on top... =)
>
> // Ken
>
> "Laurent larquère" <[EMAIL PROTECTED]> skrev i meddelandet
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > i have inserted a simple NULL as third argument
> > and all goes well (Sol8/Sparc)
> >
> > alex stinson wrote:
> >
> > > i think i might have found why it might not be working (im not really
> > > a good coder yet, so this was more of a look around for things that
> > > could cause it, and browsed the apache code)...it seems that
> > > ap_register_input_filter, and ap_register_output_filter are missing
> > > arguments...
> > > in the apache source, under include/util_filter.h
> > > is:
> > > AP_DECLARE(ap_filter_rec_t *) ap_register_input_filter(const char
> > > *name, ap_in_filter_func filter_func, ap_init_filter_func filter_init,
> > > ap_filter_type ftype);
> > > so its declared with 4 arguments, but in sapi_apache2.c
> > > (php-4.2.2/sapi/apache2filter/sapi_apache2.c, line 534+), it only is:
> > > ap_register_input_filter("PHP",php_input_filter,AP_FTYPE_RESOURCE);
> > >
> > > so, to anyone who actually knows what they are doing, what exactly is
> > > supposed to be inbetween the 'php_input_filter', and 'AP_FTYPE'? above
> > > says 'ap_init_filter_func', but i have no idea what that is
> > >
> > > --Pete Rippe
> > >
> > >
> > > From: "Daniel Eckstein" <[EMAIL PROTECTED]>
> > > To: "Alex Stinson" <[EMAIL PROTECTED]>
> > > Subject: Re: php 4.2.2, apache 2.0.40 make problem from source
> > > Date: Thu, 15 Aug 2002 22:46:55 +0200
> > >
> > > Hi,
> > >
> > > this is correctly the same, what is happening to me
> > > on a solaris 8 box.
> > >
> > > Regards,
> > > Tweeg
> > >
> > > ----- Original Message -----
> > > From: "Alex Stinson" <[EMAIL PROTECTED]>
> > > Newsgroups: php.install
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, August 13, 2002 7:11 AM
> > > Subject: php 4.2.2, apache 2.0.40 make problem from source
> > >
> > >
> > > > hey, i have a small problem, and i'm not exactly sure how to work
> > > around
> > > it
> > > > involving php4.2.2, and apache 2.0.40
> > > >
> > > > uname -a:
> > > > FreeBSD wsip68-15-48-50.ri.ri.cox.net 4.6-RELEASE FreeBSD
> > > 4.6-RELEASE #0:
> > > > Tue Jun 11 06:14:12 GMT 2002
> > > > [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386
> > > >
> > > > The result of running make after configuring an almost clean source
> > > > (modifyed only the AP_MODULE_MAGIC code that needs to be changed to
> work
> > > > with apache2) with the following:
> > > >
> ./configure --with-tsrm-pth --with-mysql --with-apxs2=/usr/www/bin/apxs
> > > > everything worked fine until i upgraded to apache 2.0.40 (actually,
> just
> > > > removed the entire /usr/www directory after a problem)...
> > > >
> > > > Making all in apache2filter
> > > > /bin/sh /usr/php-4.2.2/libtool --silent --mode=compile gcc  -I.
> > > > -I/usr/php-4.2.2/sapi/apache2filter -I/usr/php-4.2.2/main
> > > -I/usr/php-4.2.2
> > > > -I/usr/www/include -I/usr/php-4.2.2/Zend
> > > -I/usr/php-4.2.2/ext/mysql/libmys
> > > ql
> > > > -I/usr/php-4.2.2/ext/xml/expat  -D_REENTRANT -D_THREAD_SAFE
> > > > -I/usr/php-4.2.2/TSRM -I/usr/local/include -DTHREAD=1 -g -O2
> > > -pthread -DZT
> > > S
> > > > -prefer-pic  -c sapi_apache2.c
> > > > sapi_apache2.c: In function `php_register_hook':
> > > > sapi_apache2.c:534: warning: passing arg 3 of
> > > `ap_register_output_filter'
> > > > makes pointer from integer without a cast
> > > > sapi_apache2.c:534: too few arguments to function
> > > > `ap_register_output_filter'
> > > > sapi_apache2.c:535: warning: passing arg 3 of
> > > `ap_register_input_filter'
> > > > makes pointer from integer without a cast
> > > > sapi_apache2.c:535: too few arguments to function
> > > `ap_register_input_filter'
> > > > *** Error code 1
> > > >
> > > > Stop in /usr/php-4.2.2/sapi/apache2filter.
> > > > *** Error code 1
> > > >
> > > > Stop in /usr/php-4.2.2/sapi/apache2filter.
> > > > *** Error code 1
> > > >
> > > > Stop in /usr/php-4.2.2/sapi.
> > > > *** Error code 1
> > > >
> > > > Stop in /usr/php-4.2.2.
> > > >
> > > >
> > > > _________________________________________________________________
> > > > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> > > >
> > >
> > >
> > >
> > >
> > > _________________________________________________________________
> > > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> > >
> > >
> >
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
but when i install php-mysql rpm, it tell me that it is absent of
mysqlclient.so.10 file.....
i don't know what to do...



"Devrim Gunduz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi,
> On Wed, 14 Aug 2002, Tim Haynes wrote:
>
> > I have just installed Redhat Linux 7.2, the installation was fine at it
> > installed apache with php 4.0.6 as default, that runs without problems.
> > Unfortunately I noticed that PHP was not compiled with mysql support and
> > there was no distribution of mysql with linux so please can anyone help
by
> > explaining what I need to do to resolve these problems.
>
> Please install php-mysql rpm.
>
>
> Best regards.
>
> --
>
> Devrim GUNDUZ
>
> [EMAIL PROTECTED] Tel  : (312) 295 9318
> [EMAIL PROTECTED] Faks : (312) 295 9494
>
> Web : http://devrim.oper.metu.edu.tr
> -------------------------------------
>
>


--- End Message ---
--- Begin Message ---

Hi,
On Fri, 16 Aug 2002, Larry Sek wrote:

> but when i install php-mysql rpm, it tell me that it is absent of
> mysqlclient.so.10 file.....
> i don't know what to do...

So as far as I remember, you should install mysql-libs package (or 
something like this).
To find the exact package name, visit rpmfind.net and qrite the file name 
above to the box :)

Best regards.

-- 

Devrim GUNDUZ

[EMAIL PROTECTED]                 Tel  : (312) 295 9318
[EMAIL PROTECTED]              Faks : (312) 295 9494

                Web : http://devrim.oper.metu.edu.tr
                -------------------------------------


--- End Message ---
--- Begin Message ---
thanks, it work now~!!



"Devrim Gunduz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi,
> On Fri, 16 Aug 2002, Larry Sek wrote:
>
> > but when i install php-mysql rpm, it tell me that it is absent of
> > mysqlclient.so.10 file.....
> > i don't know what to do...
>
> So as far as I remember, you should install mysql-libs package (or
> something like this).
> To find the exact package name, visit rpmfind.net and qrite the file name
> above to the box :)
>
> Best regards.
>
> --
>
> Devrim GUNDUZ
>
> [EMAIL PROTECTED] Tel  : (312) 295 9318
> [EMAIL PROTECTED] Faks : (312) 295 9494
>
> Web : http://devrim.oper.metu.edu.tr
> -------------------------------------
>
>


--- End Message ---
--- Begin Message ---
I installed MySQL 3.23.51-1 in my linux, and i found that my apache can only
use php but can't use mysql command with php. That's should be my php
problem which haven't configure --with-mysql. But now, what can I do to let
my php connect to mysql?

I can't recompile the php with ./configure --with-mysql. it show error: no
acceptable cc found in $PATH. I have already installed gcc  rpm.

anyone could help??how can I easily make php support mysql?


--- End Message ---
--- Begin Message ---
it's sloved, thx~


"Larry Sek" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I installed MySQL 3.23.51-1 in my linux, and i found that my apache can
only
> use php but can't use mysql command with php. That's should be my php
> problem which haven't configure --with-mysql. But now, what can I do to
let
> my php connect to mysql?
>
> I can't recompile the php with ./configure --with-mysql. it show error: no
> acceptable cc found in $PATH. I have already installed gcc  rpm.
>
> anyone could help??how can I easily make php support mysql?
>
>


--- End Message ---
--- Begin Message ---
While I run phpMyAdmin in my linux redhat 7.2, it shows the following error
message.

The $cfgPmaAbsoluteUri directive MUST be set in your configuration file!

then I try to add directive = $cfgPmaAbsoluteUri in php.ini but it still
failed. What should I do to set directive in configuration file??

Thanks a lot~




--- End Message ---
--- Begin Message ---
sorry, stupid question......solved~!!




"Larry Sek" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> While I run phpMyAdmin in my linux redhat 7.2, it shows the following
error
> message.
>
> The $cfgPmaAbsoluteUri directive MUST be set in your configuration file!
>
> then I try to add directive = $cfgPmaAbsoluteUri in php.ini but it still
> failed. What should I do to set directive in configuration file??
>
> Thanks a lot~
>
>
>
>


--- End Message ---
--- Begin Message ---
I've installed PHP 4 on my machine with Apache 1.0.3 but after all that 
compilation and instalation stuff php scripts are not interpreted. I just 
see the code of the page. What should I do???

--- End Message ---

Reply via email to