Web Hosting Talk







View Full Version : PHP and Apache 2 release


Pillhead
04-08-2002, 07:02 PM
Trying to get this to work on freebsd 4.5 clean install, just aint working. Im using the --with-apxs2.

Im getting errors like this :-

sapi_apache2.c: In function `php_apache_sapi_ub_write':
sapi_apache2.c:58: too few arguments to function `apr_brigade_create'
sapi_apache2.c:61: too few arguments to function `apr_bucket_transient_create'
sapi_apache2.c: In function `php_apache_sapi_register_variables':
sapi_apache2.c:148: warning: initialization discards qualifiers from pointer tar
get type
sapi_apache2.c: In function `php_apache_sapi_flush':

mkaufman
04-09-2002, 06:33 AM
It doesn't seem like PHP supports Apache 2.0 yet :( I tried installing it yesterday

eva2000
04-09-2002, 07:39 AM
PHP 4.2.x will support Apache 2.x

also mod_gzip doesn't support Apache 2.x either

Pillhead
04-09-2002, 08:20 AM
Oh dear, no mod_gzip, this is an essential, think i might miss out on the old apache 2.x !

ckevin
04-09-2002, 09:05 AM
I suggest waiting for the Apache 2.0 RPM release from RH, I'm sure at that time, both PHP and mod_zip will support it ;)

paulj
04-09-2002, 10:08 AM
Originally posted by eva2000
PHP 4.2.x will support Apache 2.x

also mod_gzip doesn't support Apache 2.x either
You don't need it. It comes with mod_deflate as standard.

Eraser
04-09-2002, 01:32 PM
Info on mod_deflate

http://httpd.apache.org/docs-2.0/mod/mod_deflate.html

Note that the Status of this module is experimental.

Pillhead
04-18-2002, 05:51 PM
What do you use instead of mod_throttle for apache2.x ?

avara
04-18-2002, 06:35 PM
I would recommend sticking with Apache 1.3.x for now, as it is much more compatible. I'm not saying that Apache 2 sucks, but rather that as it is new software it will probably be up to a year before everything is fully supported. :)

driverdave
04-18-2002, 10:44 PM
I just read a review of Apache 2. I guess the only good thing about it is the native code re-write for Windows machines.

Performace on *nix was the same as 1.3. I don't really see any need for an upgrade (for myself) since i don't host on windows.

Pillhead
04-19-2002, 04:10 AM
The reason I so want to upgrade is because mod_perl 1.26 wont compile on my box.

mod_perl 1.99 will however, which is designed for apache2.

My only problem is that I cant get apache2 to compile with --enable-threads, which php wont work without, at this time.

Im running freebsd 4.5 this is a snapshot of the errors I get with apache 2.x when using the --enable-threads option. Please note these dont just apply to the ssl modules, theres loads of others, and not enabled ssl is still causing the same trouble, only not with the ssl modules.

/usr/src/web/httpd-2.0.35/modules/ssl/ssl_util.c(.text+0x8c5): undefined referen
ce to `apr_thread_mutex_destroy'
modules/ssl/.libs/mod_ssl.al(ssl_util.lo): In function `ssl_util_thread_setup':
/usr/src/web/httpd-2.0.35/modules/ssl/ssl_util.c(.text+0x96d): undefined referen
ce to `apr_thread_mutex_create'

sigma
04-19-2002, 11:31 AM
Originally posted by Pillhead
My only problem is that I cant get apache2 to compile with --enable-threads, which php wont work without, at this time.

Im running freebsd 4.5

It's my understanding that the threaded MPM is not really functional for FreeBSD at this time. Hopefully this will improve in time for the real Apache 2.0 release, or it might have to wait for FreeBSD 5.0.

Kevin

Pillhead
04-19-2002, 01:20 PM
Well after clearing everything out and starting scratch....

I can build apache 2 with enable threads, and it runs fine.

I can add mod_perl, and it runs fine.

I add php rc4 and it core dumps as soon as your start apache.