Portal Home > Knowledgebase > Articles Database > help in chmod command
help in chmod command
Posted by rathin, 08-20-2008, 10:25 AM |
there on dir under the dir there lotz of subfolder i need to chmod 777 all the subdir,how to make it
|
Posted by WebbyCart, 08-20-2008, 10:27 AM |
chmod 777 -R dir
|
Posted by rathin, 08-20-2008, 10:35 AM |
thanks for reply also it worked fine,also i have que i need make folder 777 for some script to trasver data from other server,if possible to work on 755? mode
|
Posted by david510, 08-20-2008, 08:09 PM |
If it is a php script and has apache, recompile php as CGI, so that 755 permission for folder will work for uploads.
|
Posted by rathin, 08-21-2008, 03:09 AM |
is this may(recompile php as CGI) cause any problem in other scripts
|
Posted by The Ally, 08-21-2008, 06:56 AM |
Yes it may. Basically, you have four different approaches how to run PHP with Apache:
- mod_php (don't do that in a hosting environment!)
- suPHP (CGI wrapper)
- "real" CGI
- Fast-CGI
There are a lot of pros & cons for all of these approaches.
If you switch from mod_php to any of the CGI solutions, you will have to adjust access rights and ownerships. Also there are some impacts on session handling, HTTP authentication and integration of different optimizers and/or caching solutions to be expected.
|
Add to Favourites Print this Article
Also Read