Hi all, I was trying configure my Apache web server (2.2.11) to start cgi scripts to monitoring my UPS (Eaton 9130). I am able display first page (index.html), but when I click on UPS statistics or setting I got this message: ----------------------------------------------------------------------- Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, you at example.com 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. ----------------------------------------------------------------------- Then I have a look to apache log files, and I found message: [Thu Mar 26 09:12:38 2009] [error] [client 127.0.0.1] ld.so.1: upsstats.cgi: fatal: libgcc_s.so.1: open failed: No such file or directory, referer: http://localhost/header.html [Thu Mar 26 09:12:38 2009] [error] [client 127.0.0.1] Premature end of script headers: upsstats.cgi, referer: http://localhost/header.html What shall I do ? Attila
I have played with configuration and "google" , I found solution LDFLAGS=-R/path/to/gcc/library ./configure LDFLAGS=-R/path/to/gcc/library make LDFLAGS=-R/path/to/gcc/library make install Attila ----- P?vodn? spr?va ----- Predmet: [Nut-upsuser] Nut- Apache cgi scripts problem Od: Attila Csontos <attila.csontos at r-sys.sk> Pre: nut-upsuser at lists.alioth.debian.org D?tum: 26. marec 2009 9:19:18> Hi all, > > I was trying configure my Apache web server (2.2.11) to start cgi > scripts to monitoring my UPS (Eaton 9130). > I am able display first page (index.html), but when I click on UPS > statistics or setting I got this message: > > ----------------------------------------------------------------------- > Internal Server Error > The server encountered an internal error or misconfiguration and was > unable to complete your request. > > Please contact the server administrator, you at example.com 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. > > ----------------------------------------------------------------------- > > Then I have a look to apache log files, and I found message: > > [Thu Mar 26 09:12:38 2009] [error] [client 127.0.0.1] ld.so.1: > upsstats.cgi: fatal: libgcc_s.so.1: open failed: No such file or > directory, referer: http://localhost/header.html > [Thu Mar 26 09:12:38 2009] [error] [client 127.0.0.1] Premature end of > script headers: upsstats.cgi, referer: http://localhost/header.html > > What shall I do ? > > Attila > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser > > >-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 487 bytes Desc: OpenPGP digital signature Url : http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20090326/ca8fa4cd/attachment.pgp
For reference, what operating system are you using? On Thu, Mar 26, 2009 at 6:16 AM, Attila Csontos <attila.csontos at r-sys.sk> wrote:> I have played with configuration and "google" , I found solution > > LDFLAGS=-R/path/to/gcc/library ./configure > LDFLAGS=-R/path/to/gcc/library make > LDFLAGS=-R/path/to/gcc/library make install > > Attila > > ----- P?vodn? spr?va ----- > Predmet: [Nut-upsuser] Nut- Apache cgi scripts problem > Od: Attila Csontos <attila.csontos at r-sys.sk> > Pre: nut-upsuser at lists.alioth.debian.org > D?tum: 26. marec 2009 9:19:18 >> Hi all, >> >> I was trying configure my Apache web server (2.2.11) to start cgi >> scripts to monitoring my UPS (Eaton 9130). >> I am able display first page (index.html), but when I click on UPS >> statistics or setting I got this message: >> >> ----------------------------------------------------------------------- >> Internal Server Error >> The server encountered an internal error or misconfiguration and was >> unable to complete your request. >> >> Please contact the server administrator, you at example.com 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. >> >> ----------------------------------------------------------------------- >> >> Then I have a look to apache log files, and I found message: >> >> [Thu Mar 26 09:12:38 2009] [error] [client 127.0.0.1] ld.so.1: >> upsstats.cgi: fatal: libgcc_s.so.1: open failed: No such file or >> directory, referer: http://localhost/header.html >> [Thu Mar 26 09:12:38 2009] [error] [client 127.0.0.1] Premature end of >> script headers: upsstats.cgi, referer: http://localhost/header.html >> >> What shall I do ? >> >> Attila >> >> _______________________________________________ >> Nut-upsuser mailing list >> Nut-upsuser at lists.alioth.debian.org >> http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser >> >> >> > > > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser >-- - Charles Lepple