How to setup permissions for Bitnami Virtual Machine and PhpStorm? Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Magento 2 folder/file permissionsSet debugging phpStorm for magento application?File and folder permissions for Magento setupWhat permissions schema should I use when deploying Magento securely?How to debug php code in remote server with phpstormWhat are the Magento2 code formating settings for PHPStorm?Magento 2 - How to configure Grunt in PhpStormPermissions not being picked up by setup wizardMagento 2 File and folder permissionsPermissions on /var and /var/logXdebug PhpStorm: Explain about the step into and step out

How can I save and copy a screenhot at the same time?

How to change the tick of the color bar legend to black

Relating to the President and obstruction, were Mueller's conclusions preordained?

Why is the change of basis formula counter-intuitive? [See details]

As a dual citizen, my US passport will expire one day after traveling to the US. Will this work?

A `coordinate` command ignored

Resize vertical bars (absolute-value symbols)

The test team as an enemy of development? And how can this be avoided?

Rationale for describing kurtosis as "peakedness"?

Is multiple magic items in one inherently imbalanced?

How does light 'choose' between wave and particle behaviour?

what is the log of the PDF for a Normal Distribution?

Would color changing eyes affect vision?

Sally's older brother

What is the "studentd" process?

Putting class ranking in CV, but against dept guidelines

If Windows 7 doesn't support WSL, then what is "Subsystem for UNIX-based Applications"?

Where is the Next Backup Size entry on iOS 12?

Mounting TV on a weird wall that has some material between the drywall and stud

AppleTVs create a chatty alternate WiFi network

A term for a woman complaining about things/begging in a cute/childish way

Is there hard evidence that the grant peer review system performs significantly better than random?

RSA find public exponent

Flight departed from the gate 5 min before scheduled departure time. Refund options



How to setup permissions for Bitnami Virtual Machine and PhpStorm?



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Magento 2 folder/file permissionsSet debugging phpStorm for magento application?File and folder permissions for Magento setupWhat permissions schema should I use when deploying Magento securely?How to debug php code in remote server with phpstormWhat are the Magento2 code formating settings for PHPStorm?Magento 2 - How to configure Grunt in PhpStormPermissions not being picked up by setup wizardMagento 2 File and folder permissionsPermissions on /var and /var/logXdebug PhpStorm: Explain about the step into and step out



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I downloaded Bitnami's Magento VM (OVA, using it in vmware on windows). It is a Debian 9 (Debian GNU/Linux 9.8 (stretch)) with Apache/2.4.39 (Unix), PHP 7.1.27. By default, it is configured to serve Magento from /opt/bitnami/apps/magento/htdocs
enter image description here
The user I can use to connect with SSH is the bitnami user, which does not have permission to modify files in magento's directory. All the services are configured to run with another user, like daemon or mysql.
enter image description here



What am I supposed to do to be able to open magento's directory through SFTP with an IDE on my host system and be able to deploy files too?
enter image description here



My understanding was I can connect with SSH, leave the terminal open, so I can run commands using bin/magento or use git in the directory and have PhpStorm on my host system edit and deploy files, while I can use the bitnami vm's ip to open the website in my browser.



Edit.: I jsut realized, there is a magento installation in ~/apps/magento/htdocs too, why?










share|improve this question
























  • Please read through devdocs.magento.com/guides/v2.3/config-guide/prod/… this will answer any questions you may have regarding file permissions

    – Dava Gordon
    Apr 12 at 9:27











  • @DavaGordon Do I need to reconfigure the whole bitnami vm then? Change the php-fpm, apache users to a group and change the ownership of the files to the group somehow? I mean, this is supposed to work, I think I am missing something

    – appl3r
    Apr 12 at 14:09











  • No id suggest just changing the permissions of the magneto directory can i suggest you take a look at magento.stackexchange.com/questions/91870/… i dont see the point in duplicating content which is already provided. any issues just message back.

    – Dava Gordon
    Apr 12 at 14:49











  • also after a quick search i can see that similar issues on AWS have been raised. please see support.weltpixel.com/hc/en-us/articles/… for reference

    – Dava Gordon
    Apr 12 at 14:51











  • @DavaGordon I am not sure. I fired up a new bitnami vm, changed the permissions according to the post you mention and it broke the installation.

    – appl3r
    Apr 15 at 8:28

















2















I downloaded Bitnami's Magento VM (OVA, using it in vmware on windows). It is a Debian 9 (Debian GNU/Linux 9.8 (stretch)) with Apache/2.4.39 (Unix), PHP 7.1.27. By default, it is configured to serve Magento from /opt/bitnami/apps/magento/htdocs
enter image description here
The user I can use to connect with SSH is the bitnami user, which does not have permission to modify files in magento's directory. All the services are configured to run with another user, like daemon or mysql.
enter image description here



What am I supposed to do to be able to open magento's directory through SFTP with an IDE on my host system and be able to deploy files too?
enter image description here



My understanding was I can connect with SSH, leave the terminal open, so I can run commands using bin/magento or use git in the directory and have PhpStorm on my host system edit and deploy files, while I can use the bitnami vm's ip to open the website in my browser.



Edit.: I jsut realized, there is a magento installation in ~/apps/magento/htdocs too, why?










share|improve this question
























  • Please read through devdocs.magento.com/guides/v2.3/config-guide/prod/… this will answer any questions you may have regarding file permissions

    – Dava Gordon
    Apr 12 at 9:27











  • @DavaGordon Do I need to reconfigure the whole bitnami vm then? Change the php-fpm, apache users to a group and change the ownership of the files to the group somehow? I mean, this is supposed to work, I think I am missing something

    – appl3r
    Apr 12 at 14:09











  • No id suggest just changing the permissions of the magneto directory can i suggest you take a look at magento.stackexchange.com/questions/91870/… i dont see the point in duplicating content which is already provided. any issues just message back.

    – Dava Gordon
    Apr 12 at 14:49











  • also after a quick search i can see that similar issues on AWS have been raised. please see support.weltpixel.com/hc/en-us/articles/… for reference

    – Dava Gordon
    Apr 12 at 14:51











  • @DavaGordon I am not sure. I fired up a new bitnami vm, changed the permissions according to the post you mention and it broke the installation.

    – appl3r
    Apr 15 at 8:28













2












2








2








I downloaded Bitnami's Magento VM (OVA, using it in vmware on windows). It is a Debian 9 (Debian GNU/Linux 9.8 (stretch)) with Apache/2.4.39 (Unix), PHP 7.1.27. By default, it is configured to serve Magento from /opt/bitnami/apps/magento/htdocs
enter image description here
The user I can use to connect with SSH is the bitnami user, which does not have permission to modify files in magento's directory. All the services are configured to run with another user, like daemon or mysql.
enter image description here



What am I supposed to do to be able to open magento's directory through SFTP with an IDE on my host system and be able to deploy files too?
enter image description here



My understanding was I can connect with SSH, leave the terminal open, so I can run commands using bin/magento or use git in the directory and have PhpStorm on my host system edit and deploy files, while I can use the bitnami vm's ip to open the website in my browser.



Edit.: I jsut realized, there is a magento installation in ~/apps/magento/htdocs too, why?










share|improve this question
















I downloaded Bitnami's Magento VM (OVA, using it in vmware on windows). It is a Debian 9 (Debian GNU/Linux 9.8 (stretch)) with Apache/2.4.39 (Unix), PHP 7.1.27. By default, it is configured to serve Magento from /opt/bitnami/apps/magento/htdocs
enter image description here
The user I can use to connect with SSH is the bitnami user, which does not have permission to modify files in magento's directory. All the services are configured to run with another user, like daemon or mysql.
enter image description here



What am I supposed to do to be able to open magento's directory through SFTP with an IDE on my host system and be able to deploy files too?
enter image description here



My understanding was I can connect with SSH, leave the terminal open, so I can run commands using bin/magento or use git in the directory and have PhpStorm on my host system edit and deploy files, while I can use the bitnami vm's ip to open the website in my browser.



Edit.: I jsut realized, there is a magento installation in ~/apps/magento/htdocs too, why?







permissions development phpstorm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 16 at 13:20







appl3r

















asked Apr 12 at 6:43









appl3rappl3r

1215




1215












  • Please read through devdocs.magento.com/guides/v2.3/config-guide/prod/… this will answer any questions you may have regarding file permissions

    – Dava Gordon
    Apr 12 at 9:27











  • @DavaGordon Do I need to reconfigure the whole bitnami vm then? Change the php-fpm, apache users to a group and change the ownership of the files to the group somehow? I mean, this is supposed to work, I think I am missing something

    – appl3r
    Apr 12 at 14:09











  • No id suggest just changing the permissions of the magneto directory can i suggest you take a look at magento.stackexchange.com/questions/91870/… i dont see the point in duplicating content which is already provided. any issues just message back.

    – Dava Gordon
    Apr 12 at 14:49











  • also after a quick search i can see that similar issues on AWS have been raised. please see support.weltpixel.com/hc/en-us/articles/… for reference

    – Dava Gordon
    Apr 12 at 14:51











  • @DavaGordon I am not sure. I fired up a new bitnami vm, changed the permissions according to the post you mention and it broke the installation.

    – appl3r
    Apr 15 at 8:28

















  • Please read through devdocs.magento.com/guides/v2.3/config-guide/prod/… this will answer any questions you may have regarding file permissions

    – Dava Gordon
    Apr 12 at 9:27











  • @DavaGordon Do I need to reconfigure the whole bitnami vm then? Change the php-fpm, apache users to a group and change the ownership of the files to the group somehow? I mean, this is supposed to work, I think I am missing something

    – appl3r
    Apr 12 at 14:09











  • No id suggest just changing the permissions of the magneto directory can i suggest you take a look at magento.stackexchange.com/questions/91870/… i dont see the point in duplicating content which is already provided. any issues just message back.

    – Dava Gordon
    Apr 12 at 14:49











  • also after a quick search i can see that similar issues on AWS have been raised. please see support.weltpixel.com/hc/en-us/articles/… for reference

    – Dava Gordon
    Apr 12 at 14:51











  • @DavaGordon I am not sure. I fired up a new bitnami vm, changed the permissions according to the post you mention and it broke the installation.

    – appl3r
    Apr 15 at 8:28
















Please read through devdocs.magento.com/guides/v2.3/config-guide/prod/… this will answer any questions you may have regarding file permissions

– Dava Gordon
Apr 12 at 9:27





Please read through devdocs.magento.com/guides/v2.3/config-guide/prod/… this will answer any questions you may have regarding file permissions

– Dava Gordon
Apr 12 at 9:27













@DavaGordon Do I need to reconfigure the whole bitnami vm then? Change the php-fpm, apache users to a group and change the ownership of the files to the group somehow? I mean, this is supposed to work, I think I am missing something

– appl3r
Apr 12 at 14:09





@DavaGordon Do I need to reconfigure the whole bitnami vm then? Change the php-fpm, apache users to a group and change the ownership of the files to the group somehow? I mean, this is supposed to work, I think I am missing something

– appl3r
Apr 12 at 14:09













No id suggest just changing the permissions of the magneto directory can i suggest you take a look at magento.stackexchange.com/questions/91870/… i dont see the point in duplicating content which is already provided. any issues just message back.

– Dava Gordon
Apr 12 at 14:49





No id suggest just changing the permissions of the magneto directory can i suggest you take a look at magento.stackexchange.com/questions/91870/… i dont see the point in duplicating content which is already provided. any issues just message back.

– Dava Gordon
Apr 12 at 14:49













also after a quick search i can see that similar issues on AWS have been raised. please see support.weltpixel.com/hc/en-us/articles/… for reference

– Dava Gordon
Apr 12 at 14:51





also after a quick search i can see that similar issues on AWS have been raised. please see support.weltpixel.com/hc/en-us/articles/… for reference

– Dava Gordon
Apr 12 at 14:51













@DavaGordon I am not sure. I fired up a new bitnami vm, changed the permissions according to the post you mention and it broke the installation.

– appl3r
Apr 15 at 8:28





@DavaGordon I am not sure. I fired up a new bitnami vm, changed the permissions according to the post you mention and it broke the installation.

– appl3r
Apr 15 at 8:28










1 Answer
1






active

oldest

votes


















1














I kind of solved this, but remember not to use this solution when you are on a production machine!



By default, the bitnami VM is configured with the correct permissions and with a one-user approach. The user which owns the directory is daemon, also used for apache. It is not possible to easily add permissions for the bitnami user.



The daemon user is a service user, but we can change it to allow us to login with SSH/SFTP on our PhpStorm.



  1. Login as the bitnami user

  2. Change the daemon user's type with sudo usermod -s /bin/bash daemon (you can view the result before and after with cat /etc/passwd)

  3. Create a password for the daemon user: sudo passwd daemon

  4. Configure PhpStorm to use the remote server with the daemon user (over SFTP)

All the new files uploaded will be using the correct permissions and you can change existing files too, like the ./.gitignore file.



Another important thing is, for every other task, you should still use the bitnami user (it helps to remember that the daemon user is not in the sudoers file, so you won't be able to sudo with it).
Bitnami already has a wrapper for the bin/magento untility, you should always use the bitnami user and sudo ./bin/magento-cli to run cli commands, like cache:clean..etc, like you would do without this change.



You can easily revert this change, if you run sudo usermod -s /usr/sbin/nologin daemon






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f269828%2fhow-to-setup-permissions-for-bitnami-virtual-machine-and-phpstorm%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    I kind of solved this, but remember not to use this solution when you are on a production machine!



    By default, the bitnami VM is configured with the correct permissions and with a one-user approach. The user which owns the directory is daemon, also used for apache. It is not possible to easily add permissions for the bitnami user.



    The daemon user is a service user, but we can change it to allow us to login with SSH/SFTP on our PhpStorm.



    1. Login as the bitnami user

    2. Change the daemon user's type with sudo usermod -s /bin/bash daemon (you can view the result before and after with cat /etc/passwd)

    3. Create a password for the daemon user: sudo passwd daemon

    4. Configure PhpStorm to use the remote server with the daemon user (over SFTP)

    All the new files uploaded will be using the correct permissions and you can change existing files too, like the ./.gitignore file.



    Another important thing is, for every other task, you should still use the bitnami user (it helps to remember that the daemon user is not in the sudoers file, so you won't be able to sudo with it).
    Bitnami already has a wrapper for the bin/magento untility, you should always use the bitnami user and sudo ./bin/magento-cli to run cli commands, like cache:clean..etc, like you would do without this change.



    You can easily revert this change, if you run sudo usermod -s /usr/sbin/nologin daemon






    share|improve this answer



























      1














      I kind of solved this, but remember not to use this solution when you are on a production machine!



      By default, the bitnami VM is configured with the correct permissions and with a one-user approach. The user which owns the directory is daemon, also used for apache. It is not possible to easily add permissions for the bitnami user.



      The daemon user is a service user, but we can change it to allow us to login with SSH/SFTP on our PhpStorm.



      1. Login as the bitnami user

      2. Change the daemon user's type with sudo usermod -s /bin/bash daemon (you can view the result before and after with cat /etc/passwd)

      3. Create a password for the daemon user: sudo passwd daemon

      4. Configure PhpStorm to use the remote server with the daemon user (over SFTP)

      All the new files uploaded will be using the correct permissions and you can change existing files too, like the ./.gitignore file.



      Another important thing is, for every other task, you should still use the bitnami user (it helps to remember that the daemon user is not in the sudoers file, so you won't be able to sudo with it).
      Bitnami already has a wrapper for the bin/magento untility, you should always use the bitnami user and sudo ./bin/magento-cli to run cli commands, like cache:clean..etc, like you would do without this change.



      You can easily revert this change, if you run sudo usermod -s /usr/sbin/nologin daemon






      share|improve this answer

























        1












        1








        1







        I kind of solved this, but remember not to use this solution when you are on a production machine!



        By default, the bitnami VM is configured with the correct permissions and with a one-user approach. The user which owns the directory is daemon, also used for apache. It is not possible to easily add permissions for the bitnami user.



        The daemon user is a service user, but we can change it to allow us to login with SSH/SFTP on our PhpStorm.



        1. Login as the bitnami user

        2. Change the daemon user's type with sudo usermod -s /bin/bash daemon (you can view the result before and after with cat /etc/passwd)

        3. Create a password for the daemon user: sudo passwd daemon

        4. Configure PhpStorm to use the remote server with the daemon user (over SFTP)

        All the new files uploaded will be using the correct permissions and you can change existing files too, like the ./.gitignore file.



        Another important thing is, for every other task, you should still use the bitnami user (it helps to remember that the daemon user is not in the sudoers file, so you won't be able to sudo with it).
        Bitnami already has a wrapper for the bin/magento untility, you should always use the bitnami user and sudo ./bin/magento-cli to run cli commands, like cache:clean..etc, like you would do without this change.



        You can easily revert this change, if you run sudo usermod -s /usr/sbin/nologin daemon






        share|improve this answer













        I kind of solved this, but remember not to use this solution when you are on a production machine!



        By default, the bitnami VM is configured with the correct permissions and with a one-user approach. The user which owns the directory is daemon, also used for apache. It is not possible to easily add permissions for the bitnami user.



        The daemon user is a service user, but we can change it to allow us to login with SSH/SFTP on our PhpStorm.



        1. Login as the bitnami user

        2. Change the daemon user's type with sudo usermod -s /bin/bash daemon (you can view the result before and after with cat /etc/passwd)

        3. Create a password for the daemon user: sudo passwd daemon

        4. Configure PhpStorm to use the remote server with the daemon user (over SFTP)

        All the new files uploaded will be using the correct permissions and you can change existing files too, like the ./.gitignore file.



        Another important thing is, for every other task, you should still use the bitnami user (it helps to remember that the daemon user is not in the sudoers file, so you won't be able to sudo with it).
        Bitnami already has a wrapper for the bin/magento untility, you should always use the bitnami user and sudo ./bin/magento-cli to run cli commands, like cache:clean..etc, like you would do without this change.



        You can easily revert this change, if you run sudo usermod -s /usr/sbin/nologin daemon







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 16 at 12:05









        appl3rappl3r

        1215




        1215



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f269828%2fhow-to-setup-permissions-for-bitnami-virtual-machine-and-phpstorm%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Sum ergo cogito? 1 nng

            419 nièngy_Soadمي 19bal1.5o_g

            Queiggey Chernihivv 9NnOo i Zw X QqKk LpB