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
Thanks much.
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 testwreq@gmail.com 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
Thanks much.
Best regards, Ruslan.
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 ruz@bestpractical.comwrote:
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 testwreq@gmail.com 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
Thanks much.
–
Best regards, Ruslan.
Can you show what is in webmux.pl up to line 55?On Tue, Apr 10, 2012 at 17:38, testwreq wreq testwreq@gmail.com 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 ruz@bestpractical.com 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 testwreq@gmail.com 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
Thanks much.
–
Best regards, Ruslan.
Best regards, Ruslan.
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.eduOn Tue, Apr 10, 2012 at 10:24 AM, Ruslan Zakirov ruz@bestpractical.comwrote:
Can you show what is in webmux.pl up to line 55?
On Tue, Apr 10, 2012 at 17:38, testwreq wreq testwreq@gmail.com 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 ruz@bestpractical.com 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 testwreq@gmail.com 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
Thanks much.
–
Best regards, Ruslan.
–
Best regards, Ruslan.
It is https://devrt.cs.stonybrook.eduOn Tue, Apr 10, 2012 at 11:02 AM, testwreq wreq testwreq@gmail.com wrote:
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 ruz@bestpractical.comwrote:
Can you show what is in webmux.pl up to line 55?
On Tue, Apr 10, 2012 at 17:38, testwreq wreq testwreq@gmail.com 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 ruz@bestpractical.com 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 testwreq@gmail.com 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
Thanks much.
–
Best regards, Ruslan.
–
Best regards, Ruslan.
Hi,
I managed to solve exactly the same problem (in my point of view). It
was caused by my mistake:
-
installation
CentOS 5.x with standard distribution installed Perl → RT installation
and CPAN installation of required Perl modules → RT is working
-
OS update (CentOS 5.x → CentOS 5.8)
- update of all packages including Perl - this was my point of failure
because Perl was after update of RT broken
So I uninstalled all distribution Perl packages (forced uninstall so
dependencies was broken), deleted remaining Perl directories content,
then reinstalled all RPM packages and installed CPAN modules to satisfy
RT requierements.
Finally I excluded all Perl packages from Yum updating (excludepks=perl*
…).
Hope I will help.
Regards,
Pavel Sidlo
Senior IT administrator
Top Digital Group s.r.o.
Podebradova 2017/61
702 00 Ostrava
mobil: +420 775 802 701
e-mail: pavel.sidlo@topdigital.cz
helpdesk: helpdesk@topdigital.cz
www: www.topdigital.cz
Dne 10.4.2012 15:13, testwreq wreq napsal(a):