Ruslan, Thanks. While I was sending you the script, I found out that I had an extra # before the perl path. removing that fixed the apache error. I am able to start the apache server. However, RT still does not work. When I try to access the RT application via the browser, it gives me a warning.. It is trying to open a file and it seems like that it cannot find the correct mime type of open the file,
https://devrt.cs.sunysb.edu On Tue, Apr 10, 2012 at 10:24 AM, Ruslan Zakirov <[email protected]>wrote: > Can you show what is in webmux.pl up to line 55? > > On Tue, Apr 10, 2012 at 17:38, testwreq wreq <[email protected]> wrote: > > Unfortunately, this is the only error in the apache logs: > > > > [Tue Apr 10 09:07:10 2012] [error] "use" not allowed in expression at > > /data/rt3/bin/webmux.pl line 49, at end of line\nsyntax error at > > /data/rt3/bin/webmux.pl line 49, near "use strict"\nBEGIN not safe after > > errors--compilation aborted at /data/rt3/bin/webmux.pl line > 58.\nCompilation > > failed in require at (eval 7) line 1.\n > > > > I am able to start apache if I comment PerlRequire > > /data/rt3/bin/webmux.pl in the apache conf files. > > > > > > > > On Tue, Apr 10, 2012 at 9:26 AM, Ruslan Zakirov <[email protected]> > > wrote: > >> > >> there should be more errors. what you pasted is too late to understand > >> where the real problem is. > >> > >> On Tue, Apr 10, 2012 at 17:13, testwreq wreq <[email protected]> > wrote: > >> > > >> > I upgraded centos from 5.5 to 5.8 . I am unable to start the http > >> > server. > >> > The error in the logs is > >> > "use" not allowed in expression at /data/rt3/bin/webmux.pl line 49, > at > >> > end > >> > of line\nsyntax error at /data/rt3/bin/webmux.pl line 49, near "use > >> > strict"\nBEGIN not safe after errors--compilation aborted at > >> > /data/rt3/bin/webmux.pl line 58.\nCompilation failed in require at > (eval > >> > 7) > >> > line 1 > >> > > >> > If the comment the PerlRequire line in my conf file, I can start the > >> > httpd > >> > server. Any ideas how to fix this? > >> > > >> > <VirtualHost *:443> > >> > ServerName devrt.cs.stonybrook.edu > >> > DocumentRoot /data/rt3/share/html > >> > AddDefaultCharset UTF-8 > >> > PerlModule Apache::DBI > >> > PerlRequire /data/rt3/bin/webmux.pl > >> > > >> > <Location /> > >> > SetHandler perl-script > >> > PerlHandler RT::Mason > >> > </Location> > >> > ErrorLog logs/ssl_error_log > >> > TransferLog logs/ssl_access_log > >> > LogLevel warn > >> > <Directory /> > >> > SSLRequireSSL > >> > </Directory> > >> > SSLEngine on > >> > SSLProtocol all -SSLv2 > >> > SSLCipherSuite > >> > ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW > >> > SSLCACertificateFile > >> > /etc/sslcertificate/devwww_cs_sunysb_edu_interm.cer > >> > SSLCertificateFile > >> > /etc/sslcertificate/devwww_cs_sunysb_edu_cert.cer > >> > SSLCertificateKeyFile > >> > /etc/sslcertificate/devwww.cs.sunysb.edu.key > >> > </VirtualHost> > >> > > >> > Thanks much. > >> > >> > >> > >> -- > >> Best regards, Ruslan. > > > > > > > > -- > Best regards, Ruslan. >
