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;
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
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.
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?
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
|
show 8 more comments
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
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.
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?
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
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
|
show 8 more comments
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
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.
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?
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
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
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.
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?
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
permissions development phpstorm
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
|
show 8 more comments
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
|
show 8 more comments
1 Answer
1
active
oldest
votes
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.
- Login as the bitnami user
- Change the daemon user's type with
sudo usermod -s /bin/bash daemon
(you can view the result before and after withcat /etc/passwd
) - Create a password for the daemon user:
sudo passwd daemon
- 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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
- Login as the bitnami user
- Change the daemon user's type with
sudo usermod -s /bin/bash daemon
(you can view the result before and after withcat /etc/passwd
) - Create a password for the daemon user:
sudo passwd daemon
- 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
add a comment |
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.
- Login as the bitnami user
- Change the daemon user's type with
sudo usermod -s /bin/bash daemon
(you can view the result before and after withcat /etc/passwd
) - Create a password for the daemon user:
sudo passwd daemon
- 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
add a comment |
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.
- Login as the bitnami user
- Change the daemon user's type with
sudo usermod -s /bin/bash daemon
(you can view the result before and after withcat /etc/passwd
) - Create a password for the daemon user:
sudo passwd daemon
- 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
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.
- Login as the bitnami user
- Change the daemon user's type with
sudo usermod -s /bin/bash daemon
(you can view the result before and after withcat /etc/passwd
) - Create a password for the daemon user:
sudo passwd daemon
- 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
answered Apr 16 at 12:05
appl3rappl3r
1215
1215
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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