Upgrade made easy
The biggest fall down in upgrading is the time to set file permissions - this will make it easier.
change skin1/admin/main/patch_apply.tpl to: Code:
{include file="location.tpl" last_location="Applying patch"} This will then produce a nice easy section in a text area to cut and paste into ssh or telnet or ftp manager to set all the file permissions in one go. |
Thanks for the great ap.
|
You da man!
I normally just 777 the whole skin files, then set them back real quick. This is better ;) |
What FTP application would you guys recommend using with this?
I use WS FTP Pro but I can't figure out how to paste a whack of CHMOD commands in. FYI, I'm a Windows user. |
i use this with ssh (putty) to linux servers from a win xp pro.
not sure about ftp for this - can do this in cute ftp by defining a custom command then running |
Forgive my ignorance.
What is Putty? |
It's sort of like a user interface for SSH. Kind of like a FTP client program.
|
you can only use puTTY if you have SSH/Telnet access to the server... which I would always recommend getting a host where you have that. X-Cart would be a nightmare for me if I didn't have shell access! ;)
|
:D Sweet! I really like this one. Keep up the good work!
|
:D That's class that is, kudos funky!
|
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 08:55 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.