Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2007
    Posts
    47
    Plugin Contributions
    0

    Default changing permissions using SSH?

    Hello!

    I already have a zen cart store, but am creating another.

    I uploaded and installed and all is fine zen cart wise...

    However when I go to change the permissions on the configure.php files so they can not be written using my hosting ftp I can't.

    So I have the big error message across the front of the store.

    I've spoken with my hosts who have said

    You cannot set 444 or a 4 permission on the owner as this removes the write permission on the owner. If you wish to set this permission, you'll need to do this through SSH.


    I know it's not a zen problem, more a wider issue for me... but I have absolutely no idea how to do this. I did some googling - but wanted to ask before randomly trying to change things that I have no idea at all about!

    Could anyone advise?

    Thanks!

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: changing permissions using SSH?

    Start with a blank text file and inside put the following code:

    <?php
    chmod("includes/configure.php", 0444);
    chmod("admin/includes/configure.php", 0444);
    echo 'Completed'
    ?>


    Note: if you renamed the 'admin' directory then change "admin" to whatever you renamed it to and you're good to go.

    Save the file as chmod.php and upload it to the same directory where these files are:
    index.php - ipn_main_handler.php - nddbc.html

    Now load this URL into your Browser: http://yoursite.com/chmod.php
    (adjust URL accordingly if Zen Cart is in a sub-directory)

    Once you see the 'Completed' msg. then load your Zen Cart "index" page to verify Error msg. is gone.

    Now delete the chmod.php page.

  3. #3
    Join Date
    Oct 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: changing permissions using SSH?

    :-) Thanks very much.

    I'll give it a go a little later - and come back if I have a problem!

    Appreciated!

  4. #4
    Join Date
    Oct 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: changing permissions using SSH?

    perfect - thanks!

  5. #5
    Join Date
    Feb 2008
    Posts
    6
    Plugin Contributions
    1

    Default Re: changing permissions using SSH?

    Thank you very much for these instructions!

 

 

Similar Threads

  1. Changing Permissions in Admin
    By ScrapManiac in forum Customization from the Admin
    Replies: 14
    Last Post: 8 Apr 2010, 07:10 PM
  2. Changing XP file Permissions !
    By rdcast in forum Installing on a Windows Server
    Replies: 4
    Last Post: 26 Feb 2010, 01:12 PM
  3. Permissions Error using HTMLarea in version 1.3.0.1
    By Kaliboi82 in forum Customization from the Admin
    Replies: 2
    Last Post: 19 Jun 2006, 03:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR