Re: Mod_perl and Linux/Sparc

1999-08-16 Thread Ryan Kirkpatrick
On 12 Aug 1999, Adam Di Carlo wrote:

 
 Ryan, your mod_perl problems sound wierd.  Can you file a bug against
 mod_perl?

I will. 
Also, it appears that if one starts apache with other mod-perl
support, edit httpd.conf to add it, and then use 'apachectl restart',
mod-perl loads fine and everything works! Wierd indeed! Oh well, at least
it works, and I have hacked up the /etc/init.d/apache file to start apache
without mod-perl, and then restart it with mod-perl. A little extra time
at boot, but after that, nothing major! :)


|   For to me to live is Christ, and to die is gain. |
|--- Philippians 1:21 (KJV)|

|  Ryan Kirkpatrick  |  Boulder, Colorado  | [EMAIL PROTECTED]  |

|   http://www-ugrad.cs.colorado.edu/~rkirkpat/|



Re: Mod_perl and Linux/Sparc

1999-08-13 Thread Samuel Tardieu
 Adam == Adam Di Carlo [EMAIL PROTECTED] writes:

Adam Ryan, your mod_perl problems sound wierd.  Can you file a bug
Adam against mod_perl?

Well, it really looks like my mod_php3 problem... I just installed
unstable on an Ultra5, and it gives me the same behaviour as on the
Sparc10: apache can be *reloaded* (apachectl restart) with mod_php3,
but cannot start with it.

  Sam
-- 
Samuel Tardieu -- [EMAIL PROTECTED]


Re: Mod_perl and Linux/Sparc

1999-08-13 Thread Ben Collins
On Fri, Aug 13, 1999 at 07:19:57PM +0200, Samuel Tardieu wrote:
  Adam == Adam Di Carlo [EMAIL PROTECTED] writes:
 
 Adam Ryan, your mod_perl problems sound wierd.  Can you file a bug
 Adam against mod_perl?
 
 Well, it really looks like my mod_php3 problem... I just installed
 unstable on an Ultra5, and it gives me the same behaviour as on the
 Sparc10: apache can be *reloaded* (apachectl restart) with mod_php3,
 but cannot start with it.

I think that might be attributed to the dependency on another module (I
think it requires one of the auth modules, forget which one), or else it
wont start, nor will it give an error message as to why (this is for
php3).

Ben


Re: Mod_perl and Linux/Sparc

1999-08-13 Thread Samuel Tardieu
On 13/08, Ben Collins wrote:

| I think that might be attributed to the dependency on another module (I
| think it requires one of the auth modules, forget which one), or else it
| wont start, nor will it give an error message as to why (this is for
| php3).

Why would it restart then?

Another question: where can I find /usr/lib64/* files? I tried to recompile
ssh because it does not work at all on my Ultra5, and it still gets me
the same error (loop in crypto routines). I wanted to try it in 64 bits
mode (maybe it's stupid), but egcs64 does not contain /usr/lib64/crt1.o.


Re: Mod_perl and Linux/Sparc

1999-08-13 Thread Samuel Tardieu
On 13/08, Ben Collins wrote:

| There isn't a working mainstream 64bit environement yet. The reason ssh
| doesn't work is because of a broken libgmp2 currently in the sparc/potato
| dist. This is due to the patch in the previous version (fixing this
| problme once before) not being incorporated by the libgmp2 maintainer. I
| thought some one had already done and NMU, but since it hasn't been done,
| I'll add it to my todo list for this weekend.

If you send me the patch (if you have it), I can test it right away and
do a NMU of libgmp2 if ssh works well.


Re: Mod_perl and Linux/Sparc

1999-08-13 Thread Gergely Madarasz
On Fri, 13 Aug 1999, Ben Collins wrote:

 On Fri, Aug 13, 1999 at 07:39:33PM +0200, Gergely Madarasz wrote:
   I think that might be attributed to the dependency on another module (I
   think it requires one of the auth modules, forget which one), or else it
   wont start, nor will it give an error message as to why (this is for
   php3).
  
  Hmm... where did you get that information ? I have a few outstanding bugs
  on php3 which might be related to this.
 
 Personal experience. It requires one of the auth modules in apache to be
 loaded, or php3 wont load itself. I don't know how you can check for this
 reliably in the pre/post scripts though. I'm not even sure now which one
 of the modules it was (I know it was auth related though).

hmpf...
thunderchild:~# grep auth /etc/apache/httpd.conf
#LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
#LoadModule anon_auth_module /usr/lib/apache/1.3/mod_auth_anon.so
#LoadModule dbm_auth_module /usr/lib/apache/1.3/mod_auth_dbm.so
#LoadModule db_auth_module /usr/lib/apache/1.3/mod_auth_db.so

and it starts...

-- 
Madarasz Gergely   [EMAIL PROTECTED] [EMAIL PROTECTED]
  It's practically impossible to look at a penguin and feel angry.
  Egy pingvinre gyakorlatilag lehetetlen haragosan nezni.
HuLUG: http://mlf.linux.rulez.org/


Re: Mod_perl and Linux/Sparc

1999-08-13 Thread Ben Collins
On Fri, Aug 13, 1999 at 07:47:52PM +0200, Samuel Tardieu wrote:
 On 13/08, Ben Collins wrote:
 
 | There isn't a working mainstream 64bit environement yet. The reason ssh
 | doesn't work is because of a broken libgmp2 currently in the sparc/potato
 | dist. This is due to the patch in the previous version (fixing this
 | problme once before) not being incorporated by the libgmp2 maintainer. I
 | thought some one had already done and NMU, but since it hasn't been done,
 | I'll add it to my todo list for this weekend.
 
 If you send me the patch (if you have it), I can test it right away and
 do a NMU of libgmp2 if ssh works well.

It's already tested and works. I just have to do it is all, but thanks any
way :)

Ben


Re: Mod_perl and Linux/Sparc

1999-08-13 Thread Samuel Tardieu
On 13/08, Ben Collins wrote:

| It's already tested and works. I just have to do it is all, but thanks any
| way :)

Ok :) Btw, I just used the nice dpkg-repack libgmp2 on a machine with
a working ssh and installed the recreated package on the Ultra5, and things
work fine.


Re: Mod_perl and Linux/Sparc

1999-08-13 Thread Ben Collins
On Fri, Aug 13, 1999 at 07:51:38PM +0200, Gergely Madarasz wrote:
 hmpf...
 thunderchild:~# grep auth /etc/apache/httpd.conf
 #LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
 #LoadModule anon_auth_module /usr/lib/apache/1.3/mod_auth_anon.so
 #LoadModule dbm_auth_module /usr/lib/apache/1.3/mod_auth_dbm.so
 #LoadModule db_auth_module /usr/lib/apache/1.3/mod_auth_db.so
 
 and it starts...

Then perhaps it was a mixture of loaded/unloaded modules conflicting. I
had been fighting with it for about 4 days, when I finally uncommented one
of the auth modules and it worked. I had been so fed up with it, that I
didn't bother changing anything else to pinpoint it (it worked and I
wasn't going to mess with it anymore :)

Ben


Re: Mod_perl and Linux/Sparc

1999-08-13 Thread Samuel Tardieu
 Ben == Ben Collins [EMAIL PROTECTED] writes:

Ben Personal experience. It requires one of the auth modules in
Ben apache to be loaded, or php3 wont load itself. I don't know how
Ben you can check for this reliably in the pre/post scripts
Ben though. I'm not even sure now which one of the modules it was (I
Ben know it was auth related though).

Looks like this is related to /etc/hosts. Too bad, we do not have
ltrace on Sparc...

open(/etc/hosts, O_RDONLY)= 3
fcntl(3, F_GETFD)   = 0
fcntl(3, F_SETFD, FD_CLOEXEC)   = 0
fstat(3, {st_mode=0, st_size=934587505, ...}) = 0
mmap(0, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7001c000
read(3, 127.0.0.1\tlocalhost\n137.194.16..., 8192) = 306
--- SIGILL (Illegal instruction) ---
detach: ptrace(PTRACE_DETACH, ...): Input/output error

-- 
Samuel Tardieu -- [EMAIL PROTECTED]


Re: Mod_perl and Linux/Sparc

1999-08-13 Thread Samuel Tardieu
 Gergely == Gergely Madarasz [EMAIL PROTECTED] writes:

Gergely hmpf...  thunderchild:~# grep auth /etc/apache/httpd.conf
Gergely #LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
Gergely #LoadModule anon_auth_module
Gergely #/usr/lib/apache/1.3/mod_auth_anon.so LoadModule
Gergely #dbm_auth_module /usr/lib/apache/1.3/mod_auth_dbm.so
Gergely #LoadModule db_auth_module /usr/lib/apache/1.3/mod_auth_db.so

Gergely and it starts...

Thanks! Same think for me, it now starts. So I would guess that the
bug is not in the php3 module itself, but in one of those...
-- 
Samuel Tardieu -- [EMAIL PROTECTED]


Re: Mod_perl and Linux/Sparc

1999-08-13 Thread Samuel Tardieu
 Sam == Samuel Tardieu [EMAIL PROTECTED] writes:

Sam Thanks! Same think for me, it now starts. So I would guess that
Sam the bug is not in the php3 module itself, but in one of those...

Argh, forget it: I have apache processes now, but nothing on Port 80.
-- 
Samuel Tardieu -- [EMAIL PROTECTED]


Re: Mod_perl and Linux/Sparc

1999-08-13 Thread Ben Collins
On Fri, Aug 13, 1999 at 08:00:03PM +0200, Samuel Tardieu wrote:
 Looks like this is related to /etc/hosts. Too bad, we do not have
 ltrace on Sparc...
 
 open(/etc/hosts, O_RDONLY)= 3
 fcntl(3, F_GETFD)   = 0
 fcntl(3, F_SETFD, FD_CLOEXEC)   = 0
 fstat(3, {st_mode=0, st_size=934587505, ...}) = 0
 mmap(0, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
 0x7001c000
 read(3, 127.0.0.1\tlocalhost\n137.194.16..., 8192) = 306
 --- SIGILL (Illegal instruction) ---
 detach: ptrace(PTRACE_DETACH, ...): Input/output error

Nasty, that actually looks like it's in libc, -lresolv or nss_files. I
don't think apache nor php3 would access /etc/hosts directly.

Ben


Re: Mod_perl and Linux/Sparc

1999-08-13 Thread Samuel Tardieu
On 13/08, Ben Collins wrote:

| Nasty, that actually looks like it's in libc, -lresolv or nss_files. I
| don't think apache nor php3 would access /etc/hosts directly.

Yup, that's right. Just before that, we have:

connect(3, {sun_family=AF_UNIX, sun_path=/var/run/.nscd_socket}, 110) = -1 
ECONNREFUSED (Connection refused)

and apache does not know about nscd.


Re: Mod_perl and Linux/Sparc

1999-08-13 Thread Ben Collins
On Fri, Aug 13, 1999 at 08:09:54PM +0200, Samuel Tardieu wrote:
  Ben == Ben Collins [EMAIL PROTECTED] writes:
 
 Ben Then perhaps it was a mixture of loaded/unloaded modules
 Ben conflicting. I had been fighting with it for about 4 days, when I
 Ben finally uncommented one of the auth modules and it worked. I had
 Ben been so fed up with it, that I didn't bother changing anything
 Ben else to pinpoint it (it worked and I wasn't going to mess with it
 Ben anymore :)
 
 I'd be interested in a grep LoadModule /etc/apache/httpd.conf, so
 that I can try your very configuration.

Here is the complete list of the modules I have loaded:

LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config_ssl.so
LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
LoadModule status_module /usr/lib/apache/1.3/mod_status.so
LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so
LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
LoadModule access_module /usr/lib/apache/1.3/mod_access.so
LoadModule auth_module /usr/lib/apache/1.3/mod_auth_ssl.so
LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so
LoadModule unique_id_module /usr/lib/apache/1.3/mod_unique_id.so
LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
LoadModule sys_auth_module /usr/lib/apache/1.3/mod_auth_sys.so
LoadModule php3_module /usr/lib/apache/1.3/libphp3.so


Re: Mod_perl and Linux/Sparc

1999-08-13 Thread Samuel Tardieu
On 13/08, Ben Collins wrote:

| Can you send me a list of what you had previously?

Not very useful: everything turned on :)))
(with all optional modules)


Re: Mod_perl and Linux/Sparc

1999-08-12 Thread Adam Di Carlo

Ryan, your mod_perl problems sound wierd.  Can you file a bug against
mod_perl?

--
.Adam Di [EMAIL PROTECTED]URL:http://www.onShore.com/