Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

apache runs Magento on our Linux server, and I'm trying to find out where the home directory for this user would be. I need to place a private key for SFTP access for Magento's extension.

There is /var/www, so would I have a directory, /var/www/.ssh/ here and put the private key there?

Furthermore, I'm not even sure if this will work when a Magento extension will attempt to upload a file via key-anthenticating SFTP. I do have the password-authentication SFTP already set up, and that works great. This might be a little off-topic, however.

share|improve this question

1 Answer 1

On a terminal, do grep "apache" /etc/passwd

You should get something like


That second-last column (/var/www in my example) is the home directory of apache

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.