Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th May 2012, 02:29 AM
pedenski Offline
Registered User
 
Join Date: Mar 2012
Location: manila
Posts: 29
linuxchrome
CHMOD folder

Im installing PLIGG and at the installation wizard i got this alert

Quote:
/cache/templates_c/ is not writable!
Please chmod this directory to 777
Quote:
/cache/ is not writable!
Please chmod this directory to 777
so i went to cache/ folder and typed this cmd
#chmod -R 777 cache/
#ls-l
#drwxrwxrwx. 4 root root 4096 May 4 16:26 cache

then went inside cache/
#chmod -R 777 templates_c/
#ls-l
#drwxrwxrwx. 2 root root 4096 May 4 16:26 templates_c

after doing all the above im still getting the alert,
im quite stuck here. pls guide me

Last edited by pedenski; 7th May 2012 at 02:48 AM.
Reply With Quote
  #2  
Old 7th May 2012, 12:38 PM
Fenrin Offline
Registered User
 
Join Date: Apr 2010
Location: Earth
Posts: 858
linuxopera
Re: CHMOD folder

I guess SELinux prevents this application to write to /cache

I had the same issue when I tried the php forum fluxbb on the httpd server, then I did this (also chmod g+rw):
• chcon -R -h -t httpd_sys_content_t /home/user1/public_html/fluxbb
• chcon -R -h -t httpd_sys_script_rw_t /home/user1/public_html/fluxbb/cache
• chcon -R -h -t httpd_sys_script_rw_t /home/user1/public_html/fluxbb/img/avatars
• setsebool -P httpd_unified 1

and then write access to cache and img/avatars worked.

other useful commands to change and see SELinux options:
• getsebool -a
• setsebool OPTION true

Last edited by Fenrin; 8th May 2012 at 12:55 PM. Reason: commands were not complete
Reply With Quote
  #3  
Old 9th May 2012, 09:23 AM
pedenski Offline
Registered User
 
Join Date: Mar 2012
Location: manila
Posts: 29
linuxchrome
Re: CHMOD folder

im sorry, i dont follow.. how do i apply the command on my case?

#chcon -R -h -t /var/www/html/pligg/cache

does not work on me.
Reply With Quote
  #4  
Old 9th May 2012, 10:48 AM
Fenrin Offline
Registered User
 
Join Date: Apr 2010
Location: Earth
Posts: 858
linuxopera
Re: CHMOD folder

Quote:
Originally Posted by pedenski View Post
[...]
ok, so if the path /var/www/html/pligg/cache is correct it should be like this:
Code:
su
setsebool -P httpd_unified 1
chcon -R -h -t httpd_sys_content_t /var/www/html/pligg
chcon -R -h -t httpd_sys_script_rw_t /var/www/html/pligg/cache
maybe you have to set the permissions afterwards again, for example if your user is in the group apache:
Code:
chgrp apache -R /var/www/html/pligg
chmod g+r -R /var/www/html/pligg
chmod g+rw -R /var/www/html/pligg/cache
it's possible that I forgot something.
Reply With Quote
  #5  
Old 10th May 2012, 12:55 PM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
Re: CHMOD folder

What exactly are you trying to do and where is this cache folder located?

There is no /cache folder or is this pligg thingie chrooted?
Reply With Quote
Reply

Tags
chmod, folder

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Want to right click folder in nautilus to open terminal to that folder - any ideas? zorgoth Using Fedora 3 19th February 2010 07:49 AM
Mounting a folder in a partition to anoter folder Galvin Tjime Using Fedora 1 13th June 2009 09:31 AM
file/folder Properties: date created missing & access means expose in open folder Nick Levinson Using Fedora 4 17th February 2009 12:07 AM
Can't chmod! Why? Creedog Using Fedora 12 22nd January 2006 06:48 PM
mounting a NTFS folder on my /home/myuser folder jaguero Using Fedora 3 26th October 2005 10:54 PM


Current GMT-time: 03:54 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat