Allowing PhpBB to delete files in CACHE with SELinux enforce

Discuss general troubleshooting concerns.

Moderators: scrumpy, Dave, leihog

Allowing PhpBB to delete files in CACHE with SELinux enforce

Postby EoDogs on Thu Feb 14, 2008 11:30 am

Hi everyone.

I'm sure the way to resolve my issue is an easy one, after all, this forum uses phpbb and I assume is running on an engarde box :)

I've tried going through the wiki, and I've read the guides written by Pax Dickinson and to be honest, I'm still fairly lost. I am not a unix guru, and while I understand the basics, I'm really worried about buggering my system up to the point of needing a fresh install.

Basically - whenever my box boots (say, due to power failure) it comes up in enforce mode and at that point my install of phpbb 3 breaks as it doesn't have full permission to the cache folder.

General Error
Unable to remove files within ./cache/. Please check directory permissions.


So I've been logging into the server, switching out to su and entering "setenforce 0" to switch to permissive. I'd like to be able to run the box in enforcing, but am confused beyond all belief at the moment.

Hoping someone might be able to provide a quick how-to on doing this. I'd really prefer this method than setting up my box to permanently boot into permissive mode (following the instructions I also found from Pax on your wiki site).

Thanks!
EoDogs
 
Posts: 2
Joined: Thu Feb 14, 2008 11:08 am

Re: Allowing PhpBB to delete files in CACHE with SELinux enforce

Postby wkeys on Fri Feb 15, 2008 9:00 am

hi

I would try turning on the httpd_write_content_dir

Code: Select all
System -> SELInux Control Console


Towards the bottom are the boolean click next to httpd_write_content_dir to activate that boolean.

Bests,
~Bill
wkeys
 
Posts: 283
Joined: Thu Feb 01, 2007 5:43 pm

Re: Allowing PhpBB to delete files in CACHE with SELinux enforce

Postby EoDogs on Fri Feb 15, 2008 4:37 pm

Thanks! That did the trick!
EoDogs
 
Posts: 2
Joined: Thu Feb 14, 2008 11:08 am

Re: Allowing PhpBB to delete files in CACHE with SELinux enforce

Postby jeffr on Wed Mar 17, 2010 6:29 pm

Thanks! That did the trick!
For me as well!
Too bad that I didn't find this thread long ago!
Anyway, all's good in the hood!
Thanks
Last edited by leihog on Fri Mar 19, 2010 3:08 pm, edited 1 time in total.
Reason: Advertising not allowed
jeffr
 
Posts: 1
Joined: Wed Mar 17, 2010 6:27 pm


Return to General Troubleshooting

Who is online

Users browsing this forum: No registered users and 2 guests

cron