Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default The ultimate fix for permissions

    When I was installing Zencart the permissions issue haunted me.
    Setting numeric chmod to 777 is a security hazard and frowned upon, however some Zen Cart manuals sold publicly state that it should be used or 755.
    Now, 755 means that group has read and execute permissions but cannot write, the ZC installer complained that certain files and folders were not writable.
    So, finally the solution dawned on me, I remembered that in my olden days (2007), I used group www-data.
    The following instructions are valid only for a LAMP (Linux, Apache, Mysql, PHP) server using Debian or a derivative like Ubuntu, I don't know about nginx or Windows.
    You must use a command line, I don't know Cpanel or similar stuff.
    Now, with that out of the way:
    Under group www-data will work the PHP, mysql and Linux scripts that need to write during installation, so you need to change ownership of the whole site to your_user:www-data by placing your terminal above the directory were you unzipped your ZC files, which is /var/www/html and issue command from root or another user with superuser privileges (sudo user):
    chown -R my_user:www-data my-site.com.
    So we have changed ownership, now change permissions:
    chmod -R 775 mysite.com.
    After you have executed these instructions the installer will proceed.
    Enjoy.
    Last edited by ckosloff; 7 May 2023 at 05:05 PM.

 

 

Similar Threads

  1. v151 Applied fix-CHANGE-352 for Attribute Controller fail but didn't fix
    By LindeeG in forum Upgrading to 1.5.x
    Replies: 9
    Last Post: 15 Dec 2013, 07:07 AM
  2. fix cache permissions
    By asdco in forum General Questions
    Replies: 1
    Last Post: 17 Mar 2012, 10:52 PM
  3. Replies: 1
    Last Post: 22 Feb 2007, 09:52 AM
  4. Fix for Easy Populate Froogle with Chemo's Ultimate URL's
    By mccord42 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 8 Feb 2007, 04:06 PM

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