install problem: index.php loads, but login.php doesn't

rdm70

Joined: 2002-10-21
Posts: 5
Posted: Mon, 2002-10-21 16:05

I'm having some trouble getting gallery installed and working. I've
carefully followed the installation instructions and searched the FAQ,
but I'm still stuck.

When I try to go to the main gallery URL, index.php (details below), I
get a web page, which looks kind of OK. But when I click on [login],
the transaction fails.

The request causes the following entry to be printed in
/var/log/httpd/error_log:

[Mon Oct 21 10:11:56 2002] [notice] child pid 25613 exit signal Segmentation fault (11)

Originally I thought that I had a problem with starting a session.
But I wrote a little test php that demonstrates that I can start a
session (details below).

Any ideas about how to proceed would be much appreciated.

-russ

php version: 4.1.2
OS: NetBSD 1.6
apache version: 1.3.27.
configuration URL: http://thelonious.dyndns.org/test.php
session test URL: http://thelonious.dyndns.org/test2.php
gallery URL: http://thelonious.dyndns.org/gallery/index.php

contents of test.php:

<? phpinfo() ?>

contents of test2.php:

<? session_start(); ?>
My session id is <?= session_id() ?>

Login or register to post comments
bharat
bharat's picture

Joined: 2002-05-21
Posts: 5649
Posted: Tue, 2002-10-22 20:51

Hmm. This is a bug in Apache or PHP (probably PHP). Gallery is composed of well-formed PHP so there's no theoretical way that it can cause your httpd process to seg fault.

It's also curious that your phpinfo() claims that PHP was compiled with the --disable-session option, and there is no session configuration information visible. What happens when you try to run the Session diagnostic from the config wizard?

The first thing you should try is upgrading PHP to the latest version. It's possible that they've fixed this problem.

Login or register to post comments
rdm70

Joined: 2002-10-21
Posts: 5
Posted: Wed, 2002-10-23 02:42

Thanks for the reply. I am somewhat new to php and apache, so I sometimes can't tell what is
broken, and what is just misconfigured. For instance, I was not able to deduce that the message
that is printed to the apache error log is a sign that one of the apache processes itself died; I thought
that maybe apache forked an external program of some kind, which then segfaulted.

As for the question about why phpinfo() clains that PHP was compiled with --disable-session option.
This is because I used the NetBSD package system to build php. The session support is in a separate
NetBSD package, and is loaded dynamically in an so, which must be referenced in php.ini. I'm pretty
sure that I got php.ini configured correctly, because I was able to run a php program that displays
a session id.

I'm not familiar with the session diagnostic in the config wizard. I'll try to figure out how to run that,
and let you know what I find. I'll also try to upgrade php to the latest version, and see whether that
helps.

Once again, thanks for taking the time to reply.

-russ

Quote:
Hmm. This is a bug in Apache or PHP (probably PHP). Gallery is composed of well-formed PHP so there's no theoretical way that it can cause your httpd process to seg fault.

It's also curious that your phpinfo() claims that PHP was compiled with the --disable-session option, and there is no session configuration information visible. What happens when you try to run the Session diagnostic from the config wizard?

The first thing you should try is upgrading PHP to the latest version. It's possible that they've fixed this problem.

Login or register to post comments
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8187
Posted: Wed, 2002-10-23 11:43

Yes, try upgrading to 4.2.3 (the latest version) unless you have something you need in 4.1.2 (though I think it would be better to just upgrade)

Login or register to post comments
rdm70

Joined: 2002-10-21
Posts: 5
Posted: Wed, 2002-10-23 19:49

I have upgraded to the latest and greatest PHP, and many things seem to be working now.
For instance, when I go to http://thelonious.dyndns.org/gallery/login.php I get a login page.

Also, I don't get any errors in the httpd error log. So I think that I'm over the hump on my original
problem. But now I can't remember how to log in!

What is the administrator user name? I think I remember the password that I supplied during installation
so I must have the user name wrong. I looked through the documentation, and I couldn't find the
administrator login name.

-russ

Login or register to post comments
rdm70

Joined: 2002-10-21
Posts: 5
Posted: Wed, 2002-10-23 20:08

I reran setup/index.php again to reset the admin password, so now I can log in.
I think I've got gallery installed and working. Thanks for the help!

-russ

Login or register to post comments
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8187
Posted: Wed, 2002-10-23 20:52

Welcome..have fun! The default admin username is 'admin'

Login or register to post comments