Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Upgrade made easy

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 10-09-2003, 07:02 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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

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.

http://www.linuxhelp.net/newbies/
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #12  
Old 10-15-2003, 03:53 PM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

And Putty for anyone who doesnt have it.

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

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
Reply With Quote
  #13  
Old 10-28-2003, 10:53 PM
 
shasan shasan is offline
 

Advanced Member
  
Join Date: Oct 2003
Location: Toronto
Posts: 74
 

Default

Putty Rules! highly recommended for all your command line needs.
__________________
X-Cart 3.4.2 - Processor: Dual Hamsters, running on tricked out 21\" version of Hamster Wheel. (tireless little buggers)

No hamsters were harmed during the making of this sig. Several were seriously offended.
Reply With Quote
  #14  
Old 11-11-2003, 01:38 PM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

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.
Reply With Quote
  #15  
Old 11-11-2003, 01:57 PM
  DogByteMan's Avatar 
DogByteMan DogByteMan is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 833
 

Default

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.
__________________
Dedicated Server provided by EWD Hosting
X-Cart version 4.1.12
PHP 5.3.2
MySQL server 5.0.87-community
Operation system Linux
Perl 5.008008
dogbytecomputer.com
Reply With Quote
  #16  
Old 11-11-2003, 02:24 PM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

Thanks DB, was hoping for the easy way.
Reply With Quote
  #17  
Old 12-15-2003, 11:04 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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!
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #18  
Old 12-16-2003, 04:15 AM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

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).
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:05 AM.

   

 
X-Cart forums © 2001-2020