Truemag

  • Categories
    • Tips And Tricks
    • Internet
    • PHP
    • Javascript
    • CSharp
    • SQL Server
    • Linux
  • Lastest Videos
  • Our Demos
  • About
  • Contact
  • Home
  • Write With Us
  • Job Request
Home Linux Linux Chmod Change Mode Directory Recursive

Linux Chmod Change Mode Directory Recursive

Sometimes, you may be asked to set write permission (777 or 666) for a particular directory which allows people upload documents to there or store files which are generated by web process such as generate cache or report files.

In my case, I’m getting write permission error message after move my WordPress site to another server. I know that I can use a Ftp client such as FileZilla to change permission of the folder to 777, it’s super easy. However, there are a lot of files already so the process may take hours to be finished.

Error: Your cache directory (/home/webroot/public_html/wp-content/cache/) or /home/webroot/public_html/wp-content need to be writable for this plugin to work. Double-check it.
 
Cannot continue... fix previous problems and retry.

Error: Your cache directory (/home/webroot/public_html/wp-content/cache/) or /home/webroot/public_html/wp-content need to be writable for this plugin to work. Double-check it. Cannot continue... fix previous problems and retry.

So, use FTP is not a good choice this time. Fortunately, we can use chmod Linux command to change the permission of the directory as well as its files and sub directories by using -R (recursive) option.

chmod -R 777 /home/webroot/public_html/wp-content/cache/

chmod -R 777 /home/webroot/public_html/wp-content/cache/

The command is very simple and just take around 1 second to set permission for all files and directories in cache folder recursively.

Jun 29, 2011Hoan Huynh
WordPress Delete Unused Post Tags By SQL CommandConsider SQL Server Express 2008 Limitations
You Might Also Like:
  • Linux Change Owner Directory Recursively
  • Fix SoftException in Application.cpp Directory/File is writeable by group
  • Linux copy entire directory
  • Linux Zip Entire Directory Recursively
  • Linux remove entire directory
  • PHP Copy Entire Directory To Another Directory
  • PHP Completely Delete A Directory Include Sub Directories And Files
  • HTTP/ HTTPS Document, CGI-BIN And Access/ Error Logs On cPanel, Plesk And VirtualMin
  • Linux Change Root Password
  • Shell script backup all Mysql Databases in Linux
Hoan Huynh

Hoan Huynh is the founder and head of 4rapiddev.com. Reach him at [email protected]

11 years ago LinuxChmod, FileZilla, Recursive311
0
GooglePlus
0
Facebook
0
Twitter
0
Digg
0
Delicious
0
Stumbleupon
0
Linkedin
0
Pinterest
Most Viewed
PHP Download Image Or File From URL
24,455 views
Notepad Plus Plus Compare Plugin
How To Install Compare Text Plugin In Notepad Plus Plus
21,836 views
Microsoft SQL Server 2008 Attach Remove Log
Delete, Shrink, Eliminate Transaction Log .LDF File
17,652 views
JQuery Allow only numeric characters or only alphabet characters in textbox
14,986 views
C# Read Json From URL And Parse/Deserialize Json
11,719 views
4 Rapid Development is a central page that is targeted at newbie and professional programmers, database administrators, system admin, web masters and bloggers.
Recent Posts
  • Things to Learn about Installingderm Loan Type S
  • Online Photo Editor – Free Photoediting Software
  • A Guide to Finding the Best Paper Sellers
  • Photoediting in Home Isn’t Hard to Do!

  • Free Photo Editor Online
Categories
  • CSharp (45)
  • Facebook Graph API (19)
  • Google API (7)
  • Internet (87)
  • iPhone XCode (8)
  • Javascript (35)
  • Linux (27)
  • MySQL (16)
  • PHP (84)
  • Problem Issue Error (29)
  • Resources (32)
  • SQL Server (25)
  • Timeline (5)
  • Tips And Tricks (141)
  • Uncategorized (647)
Recommended
  • Custom Software Development Company
  • Online Useful Tools
  • Premium Themes
  • VPS
2014 © 4 Rapid Development