Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently installed rt-4.0.6 on my CentOS 5 distribution. I created /etc/httpd/conf.d/rt4.conf but when I restart my webserver (apache) I get the following error:
[root@localhost conf.d]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: Syntax error on line 11 of /etc/httpd/conf.d/rt4.conf:
Can't locate Log/Dispatch.pm in @INC (@INC contains: /opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 . /etc/httpd) at /opt/rt4/sbin/../lib/RT.pm line 181.\nBEGIN failed--compilation aborted at /opt/rt4/sbin/../lib/RT.pm line 181.\nCompilation failed in require at /opt/rt4/sbin/rt-server line 92.\n\t(in cleanup) Error while loading /opt/rt4/sbin/rt-server: Can't locate Log/Dispatch.pm in @INC (@INC contains: /opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 . /etc/httpd) at /opt/rt4/sbin/../lib/RT.pm line 181.\nBEGIN failed--compilation aborted at /opt/rt4/sbin/../lib/RT.pm line 181.\nCompilation failed in require at /opt/rt4/sbin/rt-server line 92.\n
[FAILED]
[root@localhost conf.d]#
this is what the rt4.conf file looks like:
# RequestTracker
<Location /rt>
Order allow,deny
Allow from all
I installed log-dispatch and when i restarted the server i get this error:
[root@localhost ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/rt4.conf: /etc/httpd/conf.d/rt4.conf:1: <VirtualHost> was not closed.
and this is what the rt4.conf file looks like:
<VirtualHost www.axxentis.com>
### Optional apache logs for RT
# ErrorLog /opt/rt4/var/log/apache2.error
# TransferLog /opt/rt4/var/log/apache2.access
# LogLevel debug
AddDefaultCharset UTF-8
DocumentRoot "/opt/rt4/share/html"
<Location /rt>
Order allow,deny
Allow from all
SetHandler modperl
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /opt/rt4/sbin/rt-server
</Location>
<Perl>
use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
</Perl>
# force rt over https always
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} rt
RewriteRule ^(.*)$ https://www.axxentis.com/$1 [R,L]
[root@localhost ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/rt4.conf: /etc/httpd/conf.d/rt4.conf:1: <VirtualHost> was not closed.
This is self explanatory: you miss the closing "</Virtualhost>" tag.
BTW using <VirtualHost www.axxentis.com> is not the correct way to define a vhost.
You have to check the "NameVirtualHost ..." option and use the same argument for <VirtualHost ...>. Ie. if you have "NameVirtualHost *:80", you need to use <VirtualHost *:80>. And you need to add inside the vhost stanza:
I followed your advice and this is what I get when I restart the server:
Syntax error on line 19 of /etc/httpd/conf.d/rt4.conf:
File::Temp version 0.18 required--this is only version 0.16 at /usr/lib/perl5/site_perl/5.8.8/MIME/Tools.pm line 14.\nBEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/MIME/Tools.pm line 14.\nCompilation failed in require at /usr/lib/perl5/site_perl/5.8.8/MIME/Entity.pm line 233.\nBEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/MIME/Entity.pm line 233.\nCompilation failed in require at /opt/rt4/sbin/../lib/RT/I18N.pm line 66.\nBEGIN failed--compilation aborted at /opt/rt4/sbin/../lib/RT/I18N.pm line 66.\nCompilation failed in require at /opt/rt4/sbin/../lib/RT.pm line 111.\n\t(in cleanup) Error while loading /opt/rt4/sbin/rt-server: File::Temp version 0.18 required--this is only version 0.16 at /usr/lib/perl5/site_perl/5.8.8/MIME/Tools.pm line 14.\nBEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/MIME/Tools.pm line 14.\nCompilation failed in require at /usr/lib/perl5/site_perl/5.8.8/MIME/Entity.pm line 233.\nBEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/MIME/Entity.pm line 233.\nCompilation failed in require at /opt/rt4/sbin/../lib/RT/I18N.pm line 66.\nBEGIN failed--compilation aborted at /opt/rt4/sbin/../lib/RT/I18N.pm line 66.\nCompilation failed in require at /opt/rt4/sbin/../lib/RT.pm line 111.\n
[FAILED]
File::Temp version 0.32 is installed on my system. when I try to install File::Temp version 0.18, it refuses
I installed the File::Temp module v0.18. here is a summary of the module:
Module id = File::Temp
DESCRIPTION Create temporary files safely
CPAN_USERID TJENNESS (Tim Jenness <t.jenness@jach.hawaii.edu>)
CPAN_VERSION 0.22
CPAN_FILE T/TJ/TJENNESS/File-Temp-0.22.tar.gz
UPLOAD_DATE 2009-06-29
DSLIP_STATUS Rdpfp (released,developer,perl,functions,Standard-Perl)
MANPAGE File::Temp - return name and handle of a temporary file safely
INST_FILE /usr/local/lib/perl5/5.16.1/File/Temp.pm
INST_VERSION 0.18
when i restart my server i get same error mentioned above.
I installed the File::Temp module v0.18. here is a summary of the module:
Module id = File::Temp
DESCRIPTION Create temporary files safely
CPAN_USERID TJENNESS (Tim Jenness <t.jenness@jach.hawaii.edu>)
CPAN_VERSION 0.22
CPAN_FILE T/TJ/TJENNESS/File-Temp-0.22.tar.gz
UPLOAD_DATE 2009-06-29
DSLIP_STATUS Rdpfp (released,developer,perl,functions,Standard-Perl)
MANPAGE File::Temp - return name and handle of a temporary file safely
INST_FILE /usr/local/lib/perl5/5.16.1/File/Temp.pm
INST_VERSION 0.18
when i restart my server i get same error mentioned above.
You didn't say how you've installed the File::Temp module, but I guess from the INST_FILE, that you didn't use your distro's package manager (yum). That's why you get the same error.
So better run (as root):
I've done that and this is what I get when I restart the server:
Syntax error on line 15 of /etc/httpd/conf.d/rt4.conf:
Invalid command 'PerlResponseHandler', perhaps misspelled or defined by a module not included in the server configuration
I've done that and this is what I get when I restart the server:
Syntax error on line 15 of /etc/httpd/conf.d/rt4.conf:
Invalid command 'PerlResponseHandler', perhaps misspelled or defined by a module not included in the server configuration
That means that the perl module is not loaded.
Did you install mod_perl and how? If you used yum, then there should be no such problem.
If you did it from sources, then you need to add in httpd.conf:
Code:
LoadModule perl_module modules/mod_perl.so
Check the actual path to mod_perl.so and if it's not the default /etc/httpd/modules, use the absolute path to it.
I have added LoadModule perl_module modules/mod_perl.so in my httpd.conf file and this is what I get now:
Syntax error on line 200 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_perl.so into server: libperl.so: cannot open shared object file: No such file or directory
I have added LoadModule perl_module modules/mod_perl.so in my httpd.conf file and this is what I get now:
Syntax error on line 200 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_perl.so into server: libperl.so: cannot open shared object file: No such file or directory
If the module doesn't exist, you need to install it:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.