Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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've nearly finished all the LAMP setup from the tarballs most recent versions, but I couldn't get apache server to run.
when i tried this:
/usr/local/apache2/bin/apachectl
it gives me this error msghttpd:
Syntax error on line 54 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied
After doing some serious search, I realised that I need to modify selinux (either make it permissive or disabled).
Is there any way to modify the policy so I allow apache server to run without disabling selinux?
I've tried what you can get from the GUI options(under System-> Admin SElinux level and firewall-> SElinux -> disable SELinux on httpd daemon) but didn't work. And I tried to just diable SElinux fully, and it worked.
If anyone has any idea, about this matter please help.
hi,
ya ,its not too easy to get rid off these errors.Fedora 6 contains setroubleshoot , a graphical application to give permission to errors pointed by selinux.
But on my experience, its not so powerful.Usually u get selinux errors on apache for the contents under /var/www/html (i.e) web files we put new.in your case it seems an error on library file.If you reinstall apache(a simple hack try), i think u can avoid the error easily.
Also, try ls -Z for the file given error and u can find two terms in it.
scontext-context set for the file
tcontext-target context needed for file
Use chcon command to set context needed.
The document i point above contains a part for apache itself.
Note: if u change contexts too much, u can restore the contexts for all the files in the system with ease.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.