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

What is a more techy Technical Writer job title that isn't cutesy or confusing?

Are the endpoints of the domain of a function counted as critical points?

How many time has Arya actually used Needle?

Does the Black Tentacles spell do damage twice at the start of turn to an already restrained creature?

Delete free apps from library

What is the difference between a "ranged attack" and a "ranged weapon attack"?

Why do early math courses focus on the cross sections of a cone and not on other 3D objects?

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

Co-worker has annoying ringtone

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

Did any compiler fully use 80-bit floating point?

Why are vacuum tubes still used in amateur radios?

What initially awakened the Balrog?

Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?

Why weren't discrete x86 CPUs ever used in game hardware?

Is there public access to the Meteor Crater in Arizona?

New Order #6: Easter Egg

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

What is the difference between CTSS and ITS?

What are the main differences between Stargate SG-1 cuts?

How can a team of shapeshifters communicate?

In musical terms, what properties are varied by the human voice to produce different words / syllables?

How to ternary Plot3D a function

What does Turing mean by this statement?



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

            Bulk add to cart function issuecart vs. mini cart issue … rwd themeRedirect Add to cart button to cart pageAdd to cart issue - Magento 2.1The requested Payment Method is not available When creating an orderM2: reason add-to-cart might not function in production modeAdd to cart issue in some android devicesMagento 2 - custom price can not add to subtotal and grand total after add to cartAdd to cart codeIssue with my cart module on pdp and cart pages, just keeps spinningBulk price and quantity update using rest api

            Magento2 - How to hide price filter only in specific categories?Multiselect price filter attribute in layered navigationhide only some categories from layered navigation in magentoRemove Price Filter on certain categoriescustomize layered price filter?Hide Price for a particular customer groupPrice filter in layered navigation not working correctly with price including tax in magento 2.2.3Magento 2 how to hide attribute at Layered navigation?Magento 2. how to hide price only for specific categoriesMagento 2 How can I hide the price and total from cart and checkout summary?Magento2: Can we add navigation layered filter like price filter for other attribute?