D7:Change Perimissions in command Line

ydrargyros posted 11th of July 2009 in Community Voice. 7 comments.

Here's a nice way to reduce Dolphin 7 installation to 5 minutes only. If you are lucky to have shell access to your hosting server then all you have to do is run the following scripts and all Permissions Changes will take place in a batch process (virtually 1 minute for all).

1) For the Setup of installation run the following 2 commands:

chmod 777 ./backup ./cache ./cache_public ./inc ./langs ./media/app ./media/images ./media/images/banners ./media/images/blog ./media/images/classifieds ./media/images/membership ./media/images/profile ./media/images/profile_bg ./media/images/promo ./media/images/promo/original ./tmp ./plugins/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer ./plugins/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer/CSS ./plugins/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer/HTML ./plugins/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer/Test ./plugins/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer/URI ./flash/modules/global/app/ffmpeg.exe

chmod 666 ./flash/modules/global/data/integration.dat ./flash/modules/board/xml/config.xml ./flash/modules/board/xml/langs.xml ./flash/modules/board/xml/main.xml ./flash/modules/board/xml/skins.xml ./flash/modules/chat/xml/config.xml ./flash/modules/chat/xml/langs.xml ./flash/modules/chat/xml/main.xml ./flash/modules/chat/xml/skins.xml ./flash/modules/desktop/xml/config.xml ./flash/modules/desktop/xml/langs.xml ./flash/modules/desktop/xml/main.xml ./flash/modules/desktop/xml/skins.xml ./flash/modules/global/xml/config.xml ./flash/modules/global/xml/main.xml ./flash/modules/im/xml/config.xml ./flash/modules/im/xml/langs.xml ./flash/modules/im/xml/main.xml ./flash/modules/im/xml/skins.xml ./flash/modules/mp3/xml/config.xml ./flash/modules/mp3/xml/langs.xml ./flash/modules/mp3/xml/main.xml ./flash/modules/mp3/xml/skins.xml ./flash/modules/photo/xml/config.xml ./flash/modules/photo/xml/langs.xml ./flash/modules/photo/xml/main.xml ./flash/modules/photo/xml/skins.xml ./flash/modules/video/xml/config.xml ./flash/modules/video/xml/langs.xml ./flash/modules/video/xml/main.xml ./flash/modules/video/xml/skins.xml ./flash/modules/video_comments/xml/config.xml ./flash/modules/video_comments/xml/langs.xml ./flash/modules/video_comments/xml/main.xml ./flash/modules/video_comments/xml/skins.xml ./flash/modules/board/files ./flash/modules/chat/files ./flash/modules/photo/files ./flash/modules/im/files ./flash/modules/mp3/files ./flash/modules/video/files ./flash/modules/video_comments/files ./inc/prof.inc.php

2) After installation (permission reversal):
chmod 755 ./inc

ATTENTION! For some reason if i change the "inc" directory's permissions to 755 i don see them operating correct (according to the permission checker Boonex has) in AdminPanel->Tools->Permissions, so you it with care and responsibility!

If you need a hosting plan with shell access contact me and we'll see what we can do!

 
Comments
·Oldest
·Top
Please login to post a comment.
totallyfreak
thx very very usefull...
ydrargyros
well, during the tests i found out some differences between the dolphin7 and previous dolphin documentation bout permissions, not mentioning that testing D7 will take me more than 10 installations...i had to make my life easier! :)
greymatters
Thanks dear.

It will save much time. I have VPS Hosting WHM Panel but never run these type of script from there, can you please tell me in detail from where i can use shell access n run your both scripts.
ydrargyros
you can simply download putty (a free ssh program) and connect to your website directly, using your admin and pass! if you are having trouble with it contact me!
DosDawg
hmmm, thats just quite odd that you would have a need to even do that? as it was my experience that there was only one file that needed chmod and that was ffmpeg.exe, and only one that needed a reversal. so where this was the case in point for pre-D7.

Regards,
DosDawg
greymatters
WoooW. You are guru Vdrargyros.

Putty is also good and now i can change permissions in just 2secs, it was too boring earlier.

Thanks a Ton.
ydrargyros
ATTENTION!!!
The instructions i gave do not work
(not entirely) for D7b8! Please stay tuned for updates!
I also want to write a small "How-To" on how to do all these, so if you guys want it just say so in here.
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
PET:0.10523295402527