Jump to content

Sull5

Members
  • Posts

    513
  • Joined

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Posts posted by Sull5

  1. 40 minutes ago, Makoto said:

    Oh, it should work then, yes. What are the acl permissions on applications/cjmenu/Application.php? PHP-FPM is running as www-data as well, right?

    getfacl on applications/cjmenu 

    # file: applications/cjmenu
    # owner: webapp
    # group: webapp
    user::rwx
    user:www-data:rwx
    user:nginx:r-x
    group::r-x
    mask::rwx
    other::---
    default:user::rwx
    default:user:www-data:rwx
    default:user:nginx:r-x
    default:group::r-x
    default:mask::rwx
    default:other::---

    getfacl on applications/cjmenu/Application.php

    # owner: webapp
    # group: webapp
    user::rw-
    user:www-data:rw-
    user:nginx:r--
    group::r--
    mask::rw-
    other::rw-

    and yes php5-fpm is running under www-data 

    Any application gives the same error. Except if I apply the owner:group to www-data recursively to applications/

     

  2. 18 minutes ago, Makoto said:

    Unless you have a reason to, there's really no reason you should need or want to change the default session/opcache filepaths. Regarding microcache, I haven't actually used that as of yet, but I imagine that's also something that is just written to tmp and is owned by Nginx on write? You'll have to review the documentation yourself on that one.

    I'm sorry, I have no idea what you are asking. If you still need help, can you please clarify what the problem / question is..?

    Are you upgrading using IPS4's FTP upgrader? Naturally, if you are using FTP, your FTP user will need read/write access to the files as well. Ideally, if you can, you should just set up an FTP account for the webapp user and utilize that account for upgrades.

    I'm talking about upgrading 3rd party applications.

    not actually upgrading the suite. 

  3. Thanks for the guide very informative. I've run into a bit of a permission issue I'm hoping you can shed some light. 

    If I run your fixperms script, all is good except when I go to upgrade an application, since the files and folders are owned by webapp:webapp I'll get a permission error.

    0: Extraction from phar "/tmp/phpZ2rgSN.tar" failed: Cannot extract "Application.php" to "applications/cjmenu/Application.php", setting file permissions failed
    

    if I set the user:group recursively on applications/cjmenu to www-data:www-data the application will upgrade without a hitch. 

    I thought we shouldn't have an issue since www-data has read and write access through acl ?

    here is the output from getfacl applications/

    # file: applications/
    # owner: webapp
    # group: webapp
    user::rwx
    user:www-data:rwx
    user:nginx:r-x
    group::r-x
    mask::rwx
    other::---
    default:user::rwx
    default:user:www-data:rwx
    default:user:nginx:r-x
    default:group::r-x
    default:mask::rwx
    default:other::---
    

    Please I'd really like to know why this is happening ?

  4. Hi, great plugin. I'd like to request an additional feature. In the 3.x series the size of the attached file would be listed as well as the download count, it would be awesome if if there was an option to enable this, could have a file icon with the size of the file next to it. 

    Thanks! 

×
×
  • Create New...