GithubHelp home page GithubHelp logo

Comments (5)

greg0ire avatar greg0ire commented on July 18, 2024

Did you configure these settings accordingly :

# Name used by the Web Server (i.e. www-data for Apache)
set :file_permissions_users, ['www-data']

# Name used by the Web Server (i.e. www-data for Apache)
set :webserver_user,        "www-data"

?

The group is vuser.

What about the user?

from symfony.

webdevilopers avatar webdevilopers commented on July 18, 2024

The directory on our FreeBSD server have the vuser group by default, not the typical apache www-data. This is the config I tried:

# Name used by the Web Server (i.e. www-data for Apache)
set :file_permissions_users, ['vuser']

# Name used by the Web Server (i.e. www-data for Apache)
set :webserver_user,        "foobar"

set :permission_method,     :acl
set :use_set_permissions,   true

What are the requirements for user and group to make it work? I could ask our provider about the best settings.

from symfony.

greg0ire avatar greg0ire commented on July 18, 2024

set :webserver_user, "foobar"

Why isn't it vuser ?

What are the requirements for user and group to make it work? I could ask our provider about the best settings.

I don't know, I banged my head myself with a similar ACL issues the other day, and decided to limit the use of ACLs through capistrano to the cache directory, which is the only www-data-writable-dir that is not linked in shared.

from symfony.

webdevilopers avatar webdevilopers commented on July 18, 2024

The provider suggest to use web instead of www-data:

# Name used by the Web Server (i.e. www-data for Apache)
set :file_permissions_users, ['web']

# Name used by the Web Server (i.e. www-data for Apache)
set :webserver_user,        "web"

The symlinks seem to work. Unfortunately I get a permission error:

> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Script Incenteev\ParameterHandler\ScriptHandler::buildParameters handling the post-install-cmd event terminated with an exception


  [ErrorException]                                                                        
  file_put_contents(app/config/parameters.yml): failed to open stream: Permission denied 

What kind of permissions are need here? As I mentioned I can't run acl for setting permissions - see issue #40.

from symfony.

webdevilopers avatar webdevilopers commented on July 18, 2024

At the bottom line I switch to chmod using my regular user I use for SSH auth. No need to switch to web then. But some other issues with permissions on the cache folder and logs/prod.log.
I recently changed them to 0777 to be able to deploy.

Acl can not be used on FreeBSD with the current command:

SYMFONY_ENV=prod /usr/bin/env setfacl -Rm 

setfacl: illegal option -- R

I will create a new issue on the capistrano project.

from symfony.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.