php-install Digest 18 Apr 2002 17:49:51 -0000 Issue 795
Topics (messages 6666 through 6672):
php4.2.0 cr4 and apache 2.0.35 wierdness
6666 by: Tib
Re: Sessions
6667 by: webmaster
6668 by: LIMBOURG Arnaud
Re: [PHP-DEV] Bug #12958 Updated: fallo1
6669 by: Juliana Castillo
Probs. with cURL.
6670 by: Rodolfo González González
6671 by: Pierre-Alain Joye
Re: Problem loading php-module as DSO into Apache httpd
6672 by: Todd Mortensen
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 cranked the log level up to debug on apache and tried again.
Here's the wierd part: If I start apache without the php module, then edit
the config file and uncomment the php module line, then restart apache -
it stays up. If I do a full stop and start, then it won't come back and I
still get no complaints about the php module.
<EOL>
Tib
--- End Message ---
--- Begin Message ---
Like I said, I compiled with --enable-track-vars and --enable-trans-sid. AND the SID
propagates, but I cant seem to get anything written into the session files. So any
variables I register, do NOT propaget. But the SID does. Do you get my point?
When using cookies, all variables registered are written into its corresponding sess_*
file in /tmp (standard setup with file storage for session data). But this particular
process fails when the user don't allow cookies.
I checked the session.use_trans_sid, and it IS enabled (set to 1).
Still clueless... :-) Anything more to try out?
All the best,
Eivind :-)
--- End Message ---
--- Begin Message ---
> Like I said, I compiled with --enable-track-vars and
> --enable-trans-sid. AND the SID propagates, but I cant seem
> to get anything written into the session files. So any
> variables I register, do NOT propaget. But the SID does. Do
> you get my point?
> When using cookies, all variables registered are written into
> its corresponding sess_* file in /tmp (standard setup with
> file storage for session data). But this particular process
> fails when the user don't allow cookies.
>
> I checked the session.use_trans_sid, and it IS enabled (set to 1).
> Still clueless... :-) Anything more to try out?
The cookie is only used to propagate the session id.
If your session vars are not registered it may be a permission problem.
Whatever the client cookies configuration it does *not* affect you server
settings.
if you try
a.php
session_start();
$var = 1;
session_register('var');
echo '<a href="b.php?' . SID . '">b.php</a>
b.php
session_start();
echo $HTTP_SESSION_VARS['var'];
Adapt the code a bit, i just wrote it from the top of my head.
If b.php prints 1 then your session works.
Put Error_reporting to E_ALL, you may see a permission warning on the
session.
> All the best,
>
> Eivind :-)
>
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hello ,
I got this message when i'm trying to make an insert in mysql database and
then a file upload ...
Error CGI
La aplicación CGI especificada puede comportarse de forma anormal si no
recibe un conjunto completo de encabezados HTTP. Los encabezados retornados
son:
Anything else...
Someone can help me?
please...
--- End Message ---
--- Begin Message ---
Hi list,
curl-7.9.5-2
openssl-0.9.6-9
when compiling php-4.1.2, I get:
...
checking for CURL support... yes
checking for CURL in default path... found in /usr
checking for cURL greater than 7.8.1... configure: error: cURL version
7.8.1 or
later is required to compile php with cURL support
error: Bad exit status from /var/tmp/rpm-tmp.97534 (%build)
Why? if I have 7.9.5.
Thank you.
--
-------------------------------------------------------------------------------
Lic. Rodolfo Gonzalez Gonzalez <[EMAIL PROTECTED]>
Gerencia de Sistemas, Global Networks Technologies S.A.
--- End Message ---
--- Begin Message ---
Hello,
Are you sure you installed both dev and bin packages of curl 7.9.5 ? I yes
be sure the include are availables in the include path.
Or did you remove old packages before compiled the 7.9.5 ?
Is curl lib availaible in the ld path ?
pa
> -----Original Message-----
> From: Rodolfo Gonzalez Gonzalez [mailto:[EMAIL PROTECTED]]
> Sent: jeudi 18 avril 2002 19:54
> To: Lista de Instalacion de PHP
> Subject: [PHP-INST] Probs. with cURL.
>
>
> Hi list,
>
> curl-7.9.5-2
> openssl-0.9.6-9
>
> when compiling php-4.1.2, I get:
>
> ...
> checking for CURL support... yes
> checking for CURL in default path... found in /usr
> checking for cURL greater than 7.8.1... configure: error: cURL version
> 7.8.1 or
> later is required to compile php with cURL support
> error: Bad exit status from /var/tmp/rpm-tmp.97534 (%build)
>
> Why? if I have 7.9.5.
>
> Thank you.
>
> --
> ------------------------------------------------------------------
> -------------
> Lic. Rodolfo Gonzalez Gonzalez <[EMAIL PROTECTED]>
> Gerencia de Sistemas, Global Networks Technologies S.A.
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
I tried what you suggested. I am also usingt he gnu binutils and gcc 3.0.3.
Here is how I am trying to configure php. I can get apache to compile and
start ok. But the php causes a problem each time.
todd@svlecs01:~/src/php-4.1.2$cat config.nice
#! /bin/sh
#
# Created by configure
'./configure' \
'--with-mysql=/usr/local/mysql' \
'--enable-trans-sid' \
'--with-apxs' \
'--with-mm=/usr/local/lib' \
"$@"
todd@svlecs01:~/src/php-4.1.2$sudo apachectl start
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1:
/usr/local/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache/libexec/libphp4.so: symbol ap_block_alarms: referenced
symbol not found
/usr/local/apache/bin/apachectl start: httpd could not be started
And I know these ap_* symbols are from apache but I don't know why they are
not being linked properly.
I will try again and repost any further findings. Thanks for the updates.
Todd.
-----Original Message-----
From: Poetsch, Michael [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 9:10 AM
To: Todd Mortensen
Subject: RE: Problem loading php-module as DSO into Apache httpd
Hi Todd,
just wanted to let you know that we may have got a step ahead.
I am using the GNU C-compiler, gnu binutils, gnu make and gnu ld. When I
renamed the "ld" command supplied by GNU and used the standard solaris "ld"
instead, I could compile apache and php3, link php3 as DSO to apache and
start apache. That worked.
The GNU "ld" is the one that by default installs in /usr/local/bin. Just
rename this one to "gnu-ld" or something else. Then make sure that the
location of the solaris "ld" is included in your PATH variable. The solaris
"ld" resides under /usr/ccs/bin.
When I, however, compile php3 with mysql-support
(--with-mysql=/path/to/mysql) I get some more unreferenced symbols
(mysql_free_result). On the documentation pages in the internet I found lots
of recommendations to use the latest PHP4 release. I will try that one
tomorrow. Will keep you posted!
Please let me know if this works on your box as well!
Thanks in advance & regards from Frankfurt
Michael
-----Original Message-----
From: Todd Mortensen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 3:47 AM
To: Poetsch, Michael
Subject: RE: Problem loading php-module as DSO into Apache httpd
I will be sure to let you know. I have been trying to compile 4.1.2 for a
couple weeks as well. It is very frustrating as I have new web code to use
but I developed it on 4.1.2 on freebsd. (compiles fine) And now I need it
on my solaris box.
Your right. I have seen a lot of email with the simular problems but
without any solutions.
Let me know if you find the answer first. Sounds like we have been battling
this about the same time.
Todd.
-----Original Message-----
From: Poetsch, Michael [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 8:56 AM
To: Todd Mortensen
Subject: Problem loading php-module as DSO into Apache httpd
Hello Todd,
just came across your message on the php-net. I was wondering wether you
already have a solution for this problem:
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: Cannot load
/usr/local/apache/libexec/libphp4.so into server: ld.so.1:
/usr/local/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache/libexec/libphp4.so: symbol ap_block_alarms: referenced
symbol not found /usr/local/apache/bin/apachectl start: httpd could not be
started
Unfortunately I do not have the solution, but I am encountering the same
problem. I am recompiling since 2 weeks now - still no luck. It seems that
many others have similar difficulties.
My working environment is slightly different from yours, and I am trying to
compile php3 - but obviously the success is the same:
Syntax error on line 451 of /usr/local/apache/conf/httpd.conf: Cannot load
/usr/local/apache/libexec/libphp3.so into server: ld.so.1: /usr/loca
l/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache/libexec/libp hp3.so: symbol ap_user_id: referenced symbol
not found ./apachectl start: httpd could not be started
If you have a fix for that problem, may I kindly ask you to let me know?
Thanks & Regards
Michael
Michael Poetsch
Compaq Frankfurt
Managed Services
Tel...: ++49 6103 383 215
Fax...: ++49 6103 383 157
eMail.: [EMAIL PROTECTED]
--- End Message ---