failed to map segment from shared object: Permission denied--despite all the basic filesystem permissions looking correct? Would you like to avoid the nearly ubiquitous advice to disable SELinux, thus turning off the security that comes out of the box with SELinux enabled?Run: sudo chcon -R -h -t httpd_sys_content_t <gems path>
- chcon :: Changes the security context for those executables and libraries.
- -R :: (recursive) All the files here, please.
- -h :: Affect symbolic links instead of any referenced file.
- -t httpd_sys_content_t :: Set the TYPE in the security context.
namespace :application do
after 'bundle:install', 'application:update_selinux'
task :update_selinux, :roles => :web do
puts 'Updating SELinux context for bundled gems'
run "#{try_sudo} chcon -R -h -t httpd_sys_content_t #{applicationdir}/shared/bundle/"
end
end