Koozali.org: home of the SME Server

server-manager 500 Internal Server Error after update PHP5

Offline nowhinjing

  • *
  • 32
  • +0/-0
server-manager 500 Internal Server Error after update PHP5
« on: February 28, 2007, 04:05:25 PM »
Hi,

I have updated my 7.1 installation following the method given by william-syd in http://forums.contribs.org/index.php?topic=33434.0

Apriori the update went OK, phpinfo gives <PHP Version 5.1.6> and phpMyAdmin gives <MySQL client version: 5.0.27>.

All the websites seem to be working OK, but when I try to access the server-manager I get Error 500 - Internal Server Error.

Looking in admin-error-log gives :
Code: [Select]
[Wed Feb 28 15:20:35 2007] [error] [client 127.0.0.1] Can't do setuid (cannot exec sperl)
[Wed Feb 28 15:20:35 2007] [error] [client 127.0.0.1] Premature end of script headers: index.cgi


Further checking reveals :
Code: [Select]
[root@louches ~]# rpm -q perl perl-suidperl
perl-5.8.8-4.el4s1
perl-suidperl-5.8.5-36.RHEL4
[root@louches ~]# rpm -V perl perl-suidperl
prelink: /usr/bin/sperl5.8.5: at least one of file's dependencies has changed since prelinking
S.?.....    /usr/bin/sperl5.8.5
prelink: /usr/bin/suidperl: at least one of file's dependencies has changed since prelinking
S.?.....    /usr/bin/suidperl


At this point I have no idea what to do next.

Any help will be much appreciated, I don't really want to roll back to the old versions if it can be avoided.

Merci d'avance

NWJ
...

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
server-manager 500 Internal Server Error after update PHP5
« Reply #1 on: March 02, 2007, 02:00:03 PM »
I have raised a bug report to have that wiki page removed. Bug 2602

Try following the post here that attempts to remove the custom templates and use the ones in 7.1 and later.
Regards,
William

IF I give advise.. It's only if it was me....

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
server-manager 500 Internal Server Error after update PHP5
« Reply #2 on: March 02, 2007, 02:14:55 PM »
For me both perl and perl-suidperl have same version numbers.
Code: [Select]
[root@vme70update71 ~]# rpm -q perl perl-suidperl
perl-5.8.5-36.RHEL4
perl-suidperl-5.8.5-36.RHEL4
[root@vme70update71 ~]#


Did your perl come from the centosplus repository ?
Code: [Select]
=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Updating:
 perl                    i386       4:5.8.8-4.el4s1  centosplus         11 M


Possible suggestion.

Code: [Select]
rpm -e --nodeps perl
Code: [Select]

yum install perl \
--disablerepo=* \
--enablerepo=base \
--enablerepo=updates \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons
Regards,
William

IF I give advise.. It's only if it was me....

Offline nowhinjing

  • *
  • 32
  • +0/-0
server-manager 500 Internal Server Error after update PHP5
« Reply #3 on: March 02, 2007, 03:05:15 PM »
Hi, William,

Thanks for the reply -- following your suggestions has got me out of that particular mess - but I now find myself in another.

I am still getting the 500 Internal Server Error message but this time admin-error-log shows :

Code: [Select]
[Fri Mar 02 14:50:48 2007] [error] [client 127.0.0.1] Can't open /var/cache/e-smith/formmagick/sessions/./ for writing. at /usr/lib/perl5/site_perl/5.8.5/CGI/Persistent.pm line 61
[Fri Mar 02 14:50:48 2007] [error] [client 127.0.0.1] Premature end of script headers: index.cgi


Can you shed any light ?

thanks and best regards

NWJ
...

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
server-manager 500 Internal Server Error after update PHP5
« Reply #4 on: March 02, 2007, 04:33:39 PM »
Quote from: "nowhinjing"
Hi, William,

Thanks for the reply -- following your suggestions has got me out of that particular mess - but I now find myself in another.

I am still getting the 500 Internal Server Error message but this time admin-error-log shows :

Code: [Select]
[Fri Mar 02 14:50:48 2007] [error] [client 127.0.0.1] Can't open /var/cache/e-smith/formmagick/sessions/./ for writing. at /usr/lib/perl5/site_perl/5.8.5/CGI/Persistent.pm line 61
[Fri Mar 02 14:50:48 2007] [error] [client 127.0.0.1] Premature end of script headers: index.cgi


Can you shed any light ?

thanks and best regards

NWJ


I just go myself in the same hole while trying to answer another question.
Code: [Select]
[Sat Mar 03 01:55:30 2007] [error] [client 127.0.0.1] Can't open /var/cache/e-smith/formmagick/sessions/./ for writing. at /usr/lib/perl5/site_perl/5.8.5/CGI/Persistent.pm line 61
[Sat Mar 03 01:55:30 2007] [error] [client 127.0.0.1] Premature end of script headers: index.cgi


Recovered by..

Code: [Select]
rpm -e --nodeps perl.i386
rpm -e --nodeps perl-suidperl.i386

Code: [Select]
yum install perl perl-suidperl perl-Time-HiRes \
--disablerepo=* \
--enablerepo=base \
--enablerepo=updates \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons
Regards,
William

IF I give advise.. It's only if it was me....

Offline nowhinjing

  • *
  • 32
  • +0/-0
server-manager 500 Internal Server Error after update PHP5
« Reply #5 on: March 02, 2007, 06:41:26 PM »
ca marche !  :D

I am sooooooooooooo grateful !

To paraphrase droopy, "you know what, you're my hero"  8)

merci mille fois, William

NWJ
...

hulyom

500 Internal Server Error
« Reply #6 on: March 20, 2007, 12:44:05 PM »
we can not access to server-manager page (SME7.1) in TWO SME SERVERS, the error "500 Internal Server Error" comes for this web page and this is the error message we have in "/var/log/httpd/admin_error_log"


[root@srvr ~]# tail -n10 /var/log/httpd/admin_error_log
[Tue Mar 20 09:24:53 2007] [error] [client 127.0.0.1] Premature end of script headers: login
[Tue Mar 20 09:27:07 2007] [notice] caught SIGTERM, shutting down
[Tue Mar 20 09:27:07 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Mar 20 09:27:07 2007] [notice] Digest: generating secret for digest authentication ...
[Tue Mar 20 09:27:07 2007] [notice] Digest: done
[Tue Mar 20 09:27:08 2007] [notice] Apache configured -- resuming normal operations
[Tue Mar 20 09:27:20 2007] [error] [client 127.0.0.1] [Apache::AuthTkt] open of config file '/etc/e-smith/web/common/cgi-bin/AuthTKT.cfg' failed: No such file or directory at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/Apache/AuthTkt.pm line 74.
[Tue Mar 20 09:27:20 2007] [error] [client 127.0.0.1] Premature end of script headers: login
[Tue Mar 20 09:44:10 2007] [error] [client 127.0.0.1] [Apache::AuthTkt] open of config file '/etc/e-smith/web/common/cgi-bin/AuthTKT.cfg' failed: No such file or directory at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/Apache/AuthTkt.pm line 74.
[Tue Mar 20 09:44:10 2007] [error] [client 127.0.0.1] Premature end of script headers: login


Any clues or fixes?

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
server-manager 500 Internal Server Error after update PHP5
« Reply #7 on: March 20, 2007, 01:07:20 PM »
Code: [Select]
rpm -q perl
Regards,
William

IF I give advise.. It's only if it was me....

hulyom

server-manager 500 Internal Server Error after update PHP5
« Reply #8 on: March 20, 2007, 03:34:05 PM »
Quote from: "william_syd"
Code: [Select]
rpm -q perl

[root@srvr ~]# rpm -q perl
perl-5.8.5-36.RHEL4

Thanks

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
server-manager 500 Internal Server Error after update PHP5
« Reply #9 on: March 21, 2007, 03:43:42 AM »
Interesting. Maybe not a perl version issue.

I suggest you take this to the bug tracker. Post all your info in the bug report including any contribs you may have installed. DO NOT just reference your forum post.
Regards,
William

IF I give advise.. It's only if it was me....

hulyom

server-manager 500 Internal Server Error after update PHP5
« Reply #10 on: March 21, 2007, 11:43:09 AM »
sorry William I don't know what you mean with
"all your info in the bug report including any contribs you may have installed"
these are 2 boxes that I am not very familiar with, so I don't really know what and when was something was installed, I am including the "uname -a" command, and a "cat /etc/*release",  Do I need to send something else?.  The only thing I know is that the two SMEs were working well last week and certainly both started having this problem.

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
server-manager 500 Internal Server Error after update PHP5
« Reply #11 on: March 21, 2007, 11:52:40 AM »
Contribs - anything added outside of the core distribution. If you don't know then you don't know. The devs may ask you to run some commands to determine the status of you SME's.

Post the bug number here when you get a chance.
Regards,
William

IF I give advise.. It's only if it was me....

hulyom

server-manager 500 Internal Server Error after update PHP5
« Reply #12 on: March 21, 2007, 12:50:21 PM »
bug number 2755

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
server-manager 500 Internal Server Error after update PHP5
« Reply #13 on: March 21, 2007, 02:43:41 PM »
Quote from: "hulyom"
bug number 2755


Maybe attach your error log to your bug report.
Regards,
William

IF I give advise.. It's only if it was me....

daley

server-manager 500 Internal Server Error after update PHP5
« Reply #14 on: April 24, 2007, 03:54:02 PM »
Hi,

I have encountered the same error after i have installed the postgresql 8.1 from centosplus repository

Quote

yum --enablerepo=base --enablerepo=centosplus install postgresql postgresql-server


i have further checking reveals:

Quote

[root@ns1 ~]# rpm -q perl perl-suidperl
perl-5.8.8-4.el4s1
perl-suidperl-5.8.5-36.RHEL4
[root@ns1 ~]#


and

Quote

more /var/log/httpd/admin_error_log...

[Tue Apr 24 21:03:48 2007] [error] [client 127.0.0.1] Can't do setuid (cannot exec sperl)
[Tue Apr 24 21:03:48 2007] [error] [client 127.0.0.1] Premature end of script headers: index.cgi
[Tue Apr 24 21:04:03 2007] [error] [client 127.0.0.1] Can't do setuid (cannot exec sperl)
[Tue Apr 24 21:04:03 2007] [error] [client 127.0.0.1] Premature end of script headers: index.cgi
[Tue Apr 24 21:04:29 2007] [error] [client 127.0.0.1] Can't do setuid (cannot exec sperl)
[Tue Apr 24 21:04:29 2007] [error] [client 127.0.0.1] Premature end of script headers: index.cgi


When i trying to access the server-manager and "500 Internal error" occurred....

Quote

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Please please please help.

Thanks,
Daley