Pages

Monday, April 2, 2012

restorecon command: fixes the corrupted files in linux

SOme times some files may get corrupted and may shows errors as shown below: Cannot load /etc/httpd/modules/mod_jk.so into server: /etc/httpd/modules/mod_jk.so: failed to map segment from shared object: Permission denied The only and easiest way to solve this problem is to use the restorecon command Ex: [root@mulmu01-VM6783 httpd]# apachectl start Syntax error on line 4 of /etc/httpd/conf.d/tomcat.conf: Cannot load /etc/httpd/modules/mod_jk.so into server: /etc/httpd/modules/mod_jk.so: failed to map segment from shared object: Permission denied [root@mulmu01-VM6783 httpd]# restorecon -v /etc/httpd/modules/mod_jk.so restorecon reset context /usr/lib/httpd/modules/mod_jk.so:root:object_r:usr_t->system_u:object_r:httpd_modules_t [root@mulmu01-VM6783 httpd]# apachectl start [root@mulmu01-VM6783 httpd]#

No comments:

Post a Comment