Re: [CentOS] SELinux permissions for apache

2015-01-22 Thread Tim Dunphy
> > Exactly, SELinux is great. Its a good room to have when you can get it > working and it's another good layer of protection. Its better to learn to > use the tool then just turn it off. > Not every label has a rw option but it never hurts to try. :-) yeah man thanks. I really think it was laz

Re: [CentOS] SELinux permissions for apache

2015-01-22 Thread Jeremy Hoel
Exactly, SELinux is great. Its a good room to have when you can get it working and it's another good layer of protection. Its better to learn to use the tool then just turn it off. Not every label has a rw option but it never hurts to try. :-) On Jan 22, 2015 1:18 PM, "Tim Dunphy" wrote: > > > >

Re: [CentOS] SELinux permissions for apache

2015-01-22 Thread Tim Dunphy
> > The easiest answer is to edit the Selinux config file. By default it is > set to enforce, which really locks it down. > cd /etc/selinux > edit the config file and change SELUNIX=enforcing to SELUNIX=permissive > Save the file and restart httpd, you should be fine.. Yeah dude, exactly. Except

Re: [CentOS] SELinux permissions for apache

2015-01-22 Thread John Plemons
The easiest answer is to edit the Selinux config file. By default it is set to enforce, which really locks it down. cd /etc/selinux edit the config file and change SELUNIX=enforcing to SELUNIX=permissive Save the file and restart httpd, you should be fine.. john plemons On 1/22/2015 1:36 P

Re: [CentOS] SELinux permissions for apache

2015-01-22 Thread Tim Dunphy
Hey Jeremy, > Have you tried changing the folder where it's writing into with these > lables? httpd_sys_content_rw_t or httpd_user_content_rw_t Adding 'rw' to the command did the trick. I tried httpd_sys_content_rw_t and that works fine! Thanks for the tip! Tim On Thu, Jan 22, 2015 at 1:1

Re: [CentOS] SELinux permissions for apache

2015-01-22 Thread Jeremy Hoel
Have you tried changing the folder where it's writing into with these lables? httpd_sys_content_rw_t or httpd_user_content_rw_t On Thu, Jan 22, 2015 at 11:09 AM, Tim Dunphy wrote: > Hey all, > > I have a simple php app working that writes some info to a text file. The > app will only work cor