X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Upgrade made easy (https://forum.x-cart.com/showthread.php?t=4653)

B00MER 10-09-2003 07:02 AM

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/

groovico 10-15-2003 03:53 PM

And Putty for anyone who doesnt have it.

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

shasan 10-28-2003 10:53 PM

Putty Rules! highly recommended for all your command line needs.

bluecat 11-11-2003 01:38 PM

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.

DogByteMan 11-11-2003 01:57 PM

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.

bluecat 11-11-2003 02:24 PM

Thanks DB, was hoping for the easy way. :lol: :?

B00MER 12-15-2003 11:04 PM

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
:!: NOTE: this command is being ran from the xcart/ install dir, where upgrade/ is a subdir.

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:

leon 12-16-2003 04:15 AM

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.