php-install Digest 18 Feb 2002 14:07:06 -0000 Issue 706

Topics (messages 6035 through 6044):

Re: make of php 4.1.1 with apache 2.0.32 fails
        6035 by: Yasuo Ohgaki

Linux -- Problems writing session temp files
        6036 by: Rick Morris

making PHP4 recognize .php3 files
        6037 by: Keith Robinson
        6039 by: Janet Valade

PHP 4.1.0 sockets problem.
        6038 by: The_polymorph

MinGW, building from source -- win32
        6040 by: John Moeller

Re: Apache2.0 + PHP4.1 - Missing Variables
        6041 by: Austin Gonyou

Unable to load dynamic library
        6042 by: Marc Ende
        6043 by: Marc Ende

Re: Setting up PHP 4.1.0 under Tomcat 4.0.1 on Solaris 8
        6044 by: inigo.marketing.net.uk

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 ---
Guys,

Use PHP CVS or shapshot if you want to play with Apache2.
Apache2 is underdevelopment, it may not work/compile with
PHP. If it does not work, submit patch for CVS source
instead of asking ;) It's more constructive.

--
Yasuo Ohgaki

[EMAIL PROTECTED] wrote:
> 
>  Hi.  I'm trying to compile php 4.1.1 in a Debian 2.2 potato box with Apache 
>2.0.32-beta but make fails.
> 
>  This is the configure line Im using:
>  ./configure --with-apxs2=../apache/bin/apxs  --with-gd --with-mysql --with-imap 
>--with-imap-ssl --with-ldap
> 
>  I'm using all of potato's versions for mysql, imap, and openldap.
>  mysql: 3.22.32
>  uw-imap: 4.7c
>  openldap: 1.2.12
>  libgd: 1.7.3
> 
>  What's the catch?
> 
>  Here's the output of make:
> 
> Making all in sapi
> make[1]: Cambiando a directorio `/usuarios/rmt/jose/Software/php-4.1.1/sapi'
> Making all in apache2filter
> make[2]: Cambiando a directorio 
>`/usuarios/rmt/jose/Software/php-4.1.1/sapi/apache2filter'
> make[3]: Cambiando a directorio 
>`/usuarios/rmt/jose/Software/php-4.1.1/sapi/apache2filter'
> /bin/sh /usuarios/rmt/jose/Software/php-4.1.1/libtool --silent --mode=compile 
>/usuarios/rmt/jose/Software/php-4.1.1/meta_ccld  -I. 
>-I/usuarios/rmt/jose/Software/php-4.1.1/sapi/apache2filter 
>-I/usuarios/rmt/jose/Software/php-4.1.1/main -I/usuarios/rmt/jose/Software/php-4.1.1 
>-I/usuarios/rmt/jose/Software/apache/include 
>-I/usuarios/rmt/jose/Software/php-4.1.1/Zend -I/usr/include/c-client 
>-I/usuarios/rmt/jose/Software/php-4.1.1/ext/mysql/libmysql 
>-I/usuarios/rmt/jose/Software/php-4.1.1/ext/xml/expat  -D_REENTRANT 
>-I/usuarios/rmt/jose/Software/php-4.1.1/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS 
>-prefer-pic  -c sapi_apache2.c
> sapi_apache2.c: In function `php_apache_sapi_register_variables':
> sapi_apache2.c:148: warning: initialization discards qualifiers from pointer target 
>type
> sapi_apache2.c: In function `php_input_filter':
> sapi_apache2.c:247: incompatible type for argument 4 of `ap_get_brigade'
> sapi_apache2.c:247: too few arguments to function `ap_get_brigade'
> sapi_apache2.c: In function `php_register_hook':
> sapi_apache2.c:408: warning: passing arg 2 of `ap_register_input_filter' from 
>incompatible pointer type
> make[3]: *** [sapi_apache2.lo] Error 1
> make[3]: Saliendo directorio 
>`/usuarios/rmt/jose/Software/php-4.1.1/sapi/apache2filter'
> make[2]: *** [all-recursive] Error 1
> make[2]: Saliendo directorio 
>`/usuarios/rmt/jose/Software/php-4.1.1/sapi/apache2filter'
> make[1]: *** [all-recursive] Error 1
> make[1]: Saliendo directorio `/usuarios/rmt/jose/Software/php-4.1.1/sapi'
> make: *** [all-recursive] Error 1
> 
> 
>  Thanks in advance
> 
> 
>  Jose
> 
> 
> 
> 
> 

--- End Message ---
--- Begin Message ---
On a fairly high-traffic server, we are getting the following error several
times a minute:

PHP Warning:  Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/var/session) in Unknown on
line 0
(I am logging errors, instead of displaying in browser)

What sense should I make of this?

System details:

- Linux Redhat, kernel 2.4.17
- Dual processor Athlon MP
- SCSI RAID 0+1 (four disks total), running ReiserFS for the /var and
www/data partitions, but ext2 for / and /usr
- Apache 1.3.22, PHP 4.0.6, MySQL 3.23.49

On a previous system I was having trouble with sessions because the system
was running out of filehandles, but that was kernel 2.2. On this system, I
have set /proc/sys/fs/file-max to 32768. At any one time, there might be 300
or 400 httpd processes running. I can't see how I could be anywhere near the
file-max.


--- End Message ---
--- Begin Message ---
Hello,

I just installed PHP4 and it's having a problem recognizing files with .php3
extensions.  Does anyone know how I can get PHP4 to recognize this?  Thanks.

Keith Robinson


--- End Message ---
--- Begin Message ---
It's a setting for your web server. You tell the web server what extensions
to look for. In apache, there's a line in the config file that looks like
this:

AddType application/x-httpd-php .php

The .php at the end is the extension that Apache expects to find php in. You
probably have a line like the above that ends .php3. You need to change that
to a different extension, e.g., php4 or add the additional extension.

Janet


----- Original Message -----
From: "Keith Robinson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 17, 2002 1:45 PM
Subject: [PHP-INST] making PHP4 recognize .php3 files


> Hello,
>
> I just installed PHP4 and it's having a problem recognizing files with
.php3
> extensions.  Does anyone know how I can get PHP4 to recognize this?
Thanks.
>
> Keith Robinson
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Hi all.

 I am running PHP 4.1.0 on a win32 machine as a comand line
application.
I uncommented the line 'extension=php_sockets.dll' in my php.ini file
by removing the semi-colon but I receive the following error:

PHP Warning:  Unable to load dynamic library
'.;C:\php\extensions/php_sockets.dl
l' - One of the library files needed to run this application cannot be
found.


My source code is listed below:


Thanks,

-Katie.


<?php

// set some variables
$host = "192.168.1.99";
$port = 1234;

// don't timeout!
set_time_limit(0);

// create socket
$socket = socket_create(AF_INET, SOCK_STREAM, 0) or die("Could not
create
socket\n");

// bind socket to port
$result = socket_bind($socket, $host, $port) or die("Could not bind to
socket\n");

// start listening for connections
$result = socket_listen($socket, 3) or die("Could not set up socket
listener\n");

// accept incoming connections
// spawn another socket to handle communication
$spawn = socket_accept($socket) or die("Could not accept incoming
connection\n");

// read client input
$input = socket_read($spawn, 1024) or die("Could not read input\n");

// clean up input string
$input = trim($input);

// reverse client input and send back
$output = strrev($input) . "\n";
socket_write($spawn, $output, strlen ($output)) or die("Could not write
output\n");

// close sockets
socket_close($spawn);
socket_close($socket);
?>


=====


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
--- End Message ---
--- Begin Message ---
Hello,

Has anyone here tried building PHP from source for win32 with MinGW?  If so, have you 
run into any trouble?  Do you have any hints?

Thanks,

John
--- End Message ---
--- Begin Message ---
I'd recommend using 4.1.1, anything less is uncivilized. ;)

On Fri, 2002-02-15 at 23:34, Yasuo Ohgaki wrote:
> [EMAIL PROTECTED] wrote:
> > I'm trying to get an install of Linux Apache 2.0 + PHP 4.1.0 working,
> and the 
> > standard global variables are missing.  This address iterates throught
> the 
> > $_SERVER variables, then pulls up the phpinfo() screen.  As you can
> see none of 
> > the variables are there.  One in particular that I was expecting to
> see is 
> > $_SERVER['REMOTE_ADDR'].
> > 
> > Has anyone had any experience with this?  can anyone offer me some
> advice?
> > 
> > Thanks Much,
> > Joe
> > 
> 
> Try snapshot. http://snaps.php.net/
> It works well for me.
> 
> -- 
> Yasuo Ohgaki
> 
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
-- 
Austin Gonyou
Systems Architect, CCNA
Coremetrics, Inc.
Phone: 512-698-7250
email: [EMAIL PROTECTED]

"It is the part of a good shepherd to shear his flock, not to skin it."
Latin Proverb
--- End Message ---
--- Begin Message ---
Hi there,

I've updated from 4.0.6 (without imap) to 4.1.1 (with imap). After the
installation
(compilation from source) I've got an errormessage in my logfiles and
the apache is now unstable... (Segfaults)

PHP Warning:  Unable to load dynamic library './libimap.la' -
./libimap.la: cannot open shared object file: No such file or directory
in Unknown on line 0

I've recompiled the php 4.1.1 without imapsupport, but the message is
still in my logfile on every apache-startup.... Really crazy.
But even if I have the imap support enabled (with the missing
libimap.la) all php-imap-functions are fully functional.. :)

Has anybody an idea how to remove the php-warning?

Yours sincerely

Marc Ende

--- End Message ---
--- Begin Message ---
Sorry... it's a little bit early :)))

It's an apache 1.3.19 on an Linux (suse 7.2)

Marc

-----Original Message-----
From: Mikael Petterson (ERA) [mailto:[EMAIL PROTECTED]] 
Sent: Montag, 18. Februar 2002 00:54
To: 'Marc Ende'
Subject: RE: [PHP-INST] Unable to load dynamic library 

Hi,

what os and version of apache?

//Mikael

-----Original Message-----
From: Marc Ende [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 6:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Unable to load dynamic library 


Hi there,

I've updated from 4.0.6 (without imap) to 4.1.1 (with imap). After the
installation
(compilation from source) I've got an errormessage in my logfiles and
the apache is now unstable... (Segfaults)

PHP Warning:  Unable to load dynamic library './libimap.la' -
./libimap.la: cannot open shared object file: No such file or directory
in Unknown on line 0

I've recompiled the php 4.1.1 without imapsupport, but the message is
still in my logfile on every apache-startup.... Really crazy.
But even if I have the imap support enabled (with the missing
libimap.la) all php-imap-functions are fully functional.. :)

Has anybody an idea how to remove the php-warning?

Yours sincerely

Marc Ende


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

--- End Message ---
--- Begin Message ---
Further to my previous post - I've now successfully set up PHP 4.0.6 under
Tomcat, but have had no success with PHP 4.1.0 or 4.1.1.

Cheers

Inigo Surguy
http://inigo.0catch.com/

--- End Message ---

Reply via email to