Could always take it one step further and generate the chmod BEFORE you set them all to chmod 666, that way reverting back would be easier :)
:arrow: http://www.php.net/manual/en/function.fileperms.php Might take a bit of work in admin/patch.php, but would be nice to have, to go along with the writeable permissions ;) Kudos as always to funky for a must needed addition to the patch/upgrade process. And if you don't have SSH access to your server, I'd suggest learning some basic commands, or easiest, send the chmod list to your hosting provider. :arrow: http://www.linuxhelp.net/newbies/ |
And Putty for anyone who doesnt have it.
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html |
Putty Rules! highly recommended for all your command line needs.
|
Is there an FTP program that I can use this with? I'm using WS_FTP Pro, but not sure if there's a way to it that particlur one. Or can someone explain how to do it the other ways. Thank you.
|
bluecat,
First you have to go through the hassle of getting SSH rights on your server. They usually want you to fax a copy of your drivers license or such. Then go and get the program PUTTY (search it on google). SSH is a server command line situation, so make sure you study up on it first. |
Thanks DB, was hoping for the easy way. :lol: :?
|
Just noted a unix shell command that makes changing permissions a breeze ;)
Set to writeable permissions: Code:
for i in `sed -e 's/,.*$//g' < upgrade/3.4.9-3.5.0/file.lst`; do chmod 666 $i ; done Set back to non-writeable permissions: (after upgrade is done) Code:
for i in `sed -e 's/,.*$//g' < upgrade/3.4.9-3.5.0/file.lst`; do chmod 644 $i ; done Replace the directory names in upgrade/3.4.9-3.5.0/ to the proper versions, and each file in the file.lst will be set to chmod 666 for writeable permissions. Kudos! :wink: |
Thanks for that, Im learning SSH myself, and yes, it does give you a much better control over the environment, the whole server environment to be exact (has to be manipulated with care).
|
All times are GMT -8. The time now is 10:31 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.