[Rt-devel] Webmux.pl make Apache2 crash

Francisco Javier Martínez Martinez fjmartinez at csi.uned.es
Thu Dec 2 07:43:55 EST 2004


Hello.

Finally I had found following the goggling send by  Ruslan the solution, it 
was described at:

http://www.fedoraforum.org/forum/archive/index.php/t-22941.html

I don't know how to solve perfectly.
But this is just a SELinux problem.
You can see some message in /var/log/messages after /sbin/service httpd restart
After all, easy wat to run httpd is edit /etc/SELinux/config and change 
enforcing to permissive.
I think it's a transitional consistency problem.
May be someone correct at some time.

[for reference] /etc/selinux/targeted/contexts/files/file_contexts describe 
files that can be accesible by httpd

--------------------------------------------------------------------------------

Sanya Moriyama
I forget writing enough.
after changing /etc/selinux/config , we need to reboot a machine.

more details will be below.
http://fedora.redhat.com/docs/selinux-faq-fc3test2/

At 16:45 01/12/2004, Ruslan U. Zakirov wrote:
>http://www.google.ru/search?hl=ru&q=%22failed+to+map+segment+from+shared+object%22+%22Permission+denied%22&btnG=%D0%9F%D0%BE%D0%B8%D1%81%D0%BA&lr=
>http://www.fedoraforum.org/forum/archive/index.php/t-22941.html
>
>Francisco Javier Martínez Martinez wrote:
>>Hello World.
>>I am getting crazy with this problem...
>>I had installed in a Fedora Core 3, Apache2 + MySQL + mod_perl-1.99_16-3
>>The installation notes:
>>./configure --prefix=/usr/local/rt3 --with-db-type=mysql
>>--with-web-group=nobody --with-web-user=nobody --with-db-rt-pass=xxx
>>perl sbin/rt-test-dependencies --with-mysql --with-modperl2 --install
>>perl sbin/rt-test-dependencies --with-mysql --with-modperl --install
>>NOTE: I had desesperatily tried both lines with the same result.
>>make install
>>make initialize-database
>>Everything at this point seems good, the install said that everything 
>>goes fine, and  before of adding the rt3 config file to the apache, it 
>>works fine (apache + modperl) but after adding this file to apache conf.d 
>>directory it is not working:
>>/etc/httpd/conf.d/rt3.conf
>><VirtualHost IP ADDRESS>
>>    ServerName xxx.xxxx.es
>>    DocumentRoot /usr/local/rt3/share/html
>>    AddDefaultCharset UTF-8
>>  # these four lines apply to Apache2+mod_perl2 only: {{{     <<< I had 
>> tried commenting this lines too.
>>   PerlSetVar MasonArgsMethod CGI
>>   PerlModule Apache2 Apache::compat
>>   RewriteEngine On
>>    RewriteRule ^(.*)/$ $1/index.html
>>  # }}}
>>    PerlModule Apache::DBI
>>    PerlRequire /usr/local/rt3/bin/webmux.pl
>>    <Location />
>>        SetHandler perl-script
>>        PerlHandler RT::Mason
>>    </Location>
>>The Httpd start resutls:
>>/etc/rc.d/init.d/httpd start
>>Iniciando httpd: [Wed Dec 01 15:10:49 2004] [error] Can't load 
>>'/usr/lib/perl5/5.8.5/i386-linux-thread-multi/auto/MIME/Base64/Base64.so' 
>>for module MIME::Base64: 
>>/usr/lib/perl5/5.8.5/i386-linux-thread-multi/auto/MIME/Base64/Base64.so: 
>>failed to map segment from shared object: Permission denied at 
>>/usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.\n at 
>>/usr/lib/perl5/site_perl/5.8.5/MIME/Words.pm line 85\nCompilation failed 
>>in require at /usr/lib/perl5/site_perl/5.8.5/MIME/Words.pm line 
>>85.\nBEGIN failed--compilation aborted at 
>>/usr/lib/perl5/site_perl/5.8.5/MIME/Words.pm line 85.\nCompilation failed 
>>in require at /usr/lib/perl5/site_perl/5.8.5/MIME/Head.pm line 
>>123.\nBEGIN failed--compilation aborted at 
>>/usr/lib/perl5/site_perl/5.8.5/MIME/Head.pm line 123.\nCompilation failed 
>>in require at /usr/lib/perl5/site_perl/5.8.5/MIME/Entity.pm line 
>>235.\nBEGIN failed--compilation aborted at 
>>/usr/lib/perl5/site_perl/5.8.5/MIME/Entity.pm line 235.\nCompilation 
>>failed in require at /usr/local/rt3/lib/RT/I18N.pm line 66.\nBEGIN 
>>failed--compilation aborted at /usr/local/rt3/lib/RT/I18N.pm line 
>>66.\nCompilation failed in require at /usr/local/rt3/lib/RT.pm line 
>>48.\nBEGIN failed--compilation aborted at /usr/local/rt3/lib/RT.pm line 
>>48.\nCompilation failed in require at /usr/local/rt3/bin/webmux.pl line 
>>64.\nBEGIN failed--compilation aborted at /usr/local/rt3/bin/webmux.pl 
>>line 64.\nCompilation failed in require at (eval 4) line 1.\n
>>[Wed Dec 01 15:10:49 2004] [error] Can't load Perl file: 
>>/usr/local/rt3/bin/webmux.pl for server nerea-seis.uned.es:0, exiting...
>>I had checked that there is not dependencies installing all required 
>>modules via CPAN.
>>Sorry for my English but I had read nearly 100 post looking for that 
>>problem, with no success..
>>Thanks in advance.
>>
>>_______________________________________________
>>Rt-devel mailing list
>>Rt-devel at lists.bestpractical.com
>>http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel



More information about the Rt-devel mailing list