directory permissions for upgrade?

i am trying to upgrade from 2.08 forward and i got this message in tupgrade center



Warning: ftp_site() [function.ftp-site]: Could not change perms on js/ajax.js: No such file or directory in ///upgrade/upgrade_2.0.6-2.0.7.tgz/uc_override.php on line 828



i can browse to upgrade/upgrade_2.0.6-2.0.7.tgz/



there is a sub directory package/ where js/ajax.js



so it looks like the upgrade should be pulling from



upgrade/upgrade_2.0.6-2.0.7.tgz/package



how can i fix that?

It sounds like your FTP user is trying to change the permissions on the destination file which would probably be js/ajax.js from the root of your store. Make sure permissions are correct on the js directory as needed by your server and your ftp client.

i changed all the permissions and i am still getting the same error!

any other ideas ?



all of these files i have given 777 permissions and even chowned them to root

-----------------------------------------------------------------------------------------------------



The following files do not have write permissions. You need to set these permissions manually or use FTP to access the files (if not used already)

File



js/ajax.js



js/core.js



js/profiles_scripts.js



js/previewer.js



js/exceptions.js



js/picker.js



schemas/block_manager/specific_settings.php



schemas/block_manager/block_controllers.php



schemas/block_manager/structure.php



schemas/exim/products.php



schemas/exim/google.php



schemas/revisions/objects.php



schemas/revisions/descriptions.php



schemas/permissions/demo.php



schemas/settings/variants.php



schemas/settings/actions.php



config.php



init.php



prepare.php



controllers/customer/init.php



controllers/customer/product_features.php



controllers/customer/checkout.php



controllers/customer/products.php



controllers/customer/categories.php



controllers/common/profiles.post.php



controllers/admin/product_options.php



controllers/admin/addons.php



controllers/admin/pages.php



controllers/admin/block_manager.php



controllers/admin/upgrade_center.php



controllers/admin/settings_dev.php



controllers/admin/database.php



controllers/admin/products.php



controllers/admin/shippings.php



controllers/admin/categories.php



controllers/admin/order_management.php



controllers/admin/settings.php



controllers/admin/exim.php



lib/tar/tar.php



shippings/aup.php



shippings/usps.php



shippings/ups.php



shippings/intershipper.php



shippings/fedex.php



shippings/dhl.php



shippings/swisspost.php



shippings/can.php



admin.php



core/fn.control.php



core/fn.init.php



core/class.ajax.php



core/fn.database.php



core/fn.search.php



core/fn.common.php



core/fn.catalog.php



core/class.registry.php



core/fn.users.php



core/fn.cart.php



core/fn.fs.php



core/fn.images.php



core/db/mysql.php



core/fn.promotions.php



payments/sagepay_direct.php



payments/pay_read.php



payments/servired.php



payments/ideal_xml.php



payments/sagepay_form.php



payments/2checkout.php



payments/epassporte.php



payments/nochex.php



payments/paypal_express.php



payments/virtual_merchant.php



payments/debitech.php



payments/paypal.php



payments/google_checkout.php



payments/payflow_pro.php



payments/secpay_xml.php



payments/westpac.php



index.php



changelog.txt



addons/affiliate/controllers/customer/affiliate_plans.php



addons/tags/func.php



addons/statistics/config.php



addons/news_and_emails/schemas/revisions/objects.post.php



addons/news_and_emails/controllers/customer/newsletters.php



addons/news_and_emails/controllers/admin/news.php



addons/news_and_emails/controllers/admin/newsletters.php



addons/news_and_emails/func.php



addons/hot_deals_block/js/jquery.deals.js



addons/hot_deals_block … ger/structure.post.php



addons/hot_deals_block/addon.xml



addons/hot_deals_block/init.php



addons/hot_deals_block/func.php



addons/anti_fraud/func.php



addons/suppliers/init.php



addons/suppliers/controllers/admin/shippings.post.php



addons/suppliers/controllers/admin/profiles.post.php



addons/suppliers/func.php



addons/gift_certificat … omer/checkout.post.php



addons/gift_certificates/func.php



addons/reward_points/schemas/revisions/objects.post.php



addons/reward_points/func.php



addons/product_configurator/schemas/menu/menu.post.xml



addons/product_configu … omer/products.post.php



addons/product_configu … admin/configurator.php



addons/product_configurator/func.php



addons/bestsellers/schemas/block_manager/structure.post.php



addons/bestsellers/init.php



addons/bestsellers/controllers/admin/products.post.php



addons/bestsellers/func.php



addons/seo/func.php

Use the builtin upgrade mechanism rather than ftp???

i am using WHM i turned on pure-ftpd is that correct?

No clue, but depending on your server I would make all directories 755 and all files 644.



Stil not sure why you don’t just use the internal upgrade process rather than ftp… FTP only needs to be used if your PHP user/group is running with different permissions than your filesysystem and the files and directories are NOT writable by the PHP process. Otherwise, use the upgrade center and leave the FTP info blank.

i did leave it blank but it did not proceed. it said to change the file permissions before the update continues. but like i said the permissions are correct

Based on the message you provided, the PHP process cannot write to those files. So who are the files owned by and what user does your PHP process run as?

how can i tell?

who owns the upgrade directory? The directory named *.tgz? That should tell you who PHP is running as. Make sure all files on your site are owned by that user.

it says nobody and the group is nobody

ok i finally got this fixed… i did end up using ftp



a while back i chowned my cs-cart directory to another user. today i chowned it back to default. that corrected it and i am now at the latest version.



thanks for your help