<p dir="ltr">" I tie the vhost and user together so there is an sftp path to upload content."</p>
<p dir="ltr">"How would you upload content if you have multiple vhosts and only one user?"</p>
<p dir="ltr">Depends on the architecture of the file structure. By one user I assume only one user is managing the system and needs access to all of the vhosts. <br>
I version all my code using Git. Using a local development environment on my laptop push code changes to a Gitlab server then ssh on the prod box and do a git pull. In my case I don't use sftp.</p>
<p dir="ltr">I develop in Drupal so I use Drush heavily which requires ssh access especially when using drushrc.alias files. But that allows me to automate most of my migration and perform auto - updates from my Git repo.</p>
<p dir="ltr">Just a note regarding Ubuntu. It is a server centric install. It is replacing/outpacing RHEL CentOS and Debian on forward facing sites at a rate of 500 per day.</p>
<p dir="ltr">On Dec 22, 2014 6:34 PM, "Keith Smith" <<a href="mailto:techlists@phpcoderusa.com">techlists@phpcoderusa.com</a>> wrote:<br>
><br>
> On 2014-12-22 15:33, James Dugger wrote:<br>
>><br>
>> Hey Keith. Is this for a production or development environment? <br>
><br>
><br>
> Production<br>
><br>
><br>
> For<br>
>><br>
>> prod, I have typically seen no home directory for users other than<br>
>> root (for both Debian based or RHEL). In either distribution you can<br>
>> explicitly assign a different home folder so you can do<br>
>> /var/www/public_html as the accessible directory using the --home<br>
>> option. If you need that user to be able to ssh into the web<br>
>> server than you can give them access by adding them into the<br>
>> ssh_config file (I forget the details) but search Ubuntu how to for<br>
>> this. <br>
><br>
><br>
> I tie the vhost and user together so there is an sftp path to upload content.<br>
><br>
> How would you upload content if you have multiple vhosts and only one user?<br>
><br>
><br>
>><br>
>> Since you are adding DNS and email (these would typically be different<br>
>> servers in production), this may make it more difficult to not have a<br>
>> default separate home folder.<br>
><br>
><br>
> I agree they would normally be separate. However this server is in my home office so everything needs to be in one box.<br>
><br>
><br>
>><br>
>> Nothing Says you have to do it this way. But in production the idea is<br>
>> to reduce the accessible footprint of all users to the minimum needed<br>
>> access.<br>
>><br>
><br>
> Makes sense.<br>
><br>
> Thank you for your feedback.<br>
><br>
><br>
>> Hi,<br>
>><br>
>> I decided to move to Ubuntu 14.04 LTS after 7 years with<br>
>> RHEL/CentOS. I'm very used to RHEL and am experiencing an adjustment<br>
>> with this move.<br>
>><br>
>> With RHEL I would add a user and use that user as the docroot<br>
>> (/home/username/public_html) for the associated vhost. This would<br>
>> give ssh access (after adding to the sshd_config) and sftp access.<br>
>><br>
>> When I add a user to Ubuntu it does not create a home directory.<br>
>><br>
>> When I did the install I selected LAMP,DNS, and mail servers.<br>
>><br>
>> I was not able to shell into the server and found SSH had not been<br>
>> installed. I was surprised. I installed SSHD and now I can access<br>
>> the box via the shell.<br>
>><br>
>> I'm starting to get the feeling I am approaching this build<br>
>> incorrectly.<br>
>><br>
>> I want to build 1 box that handles LAMP+DNS+Mail<br>
>> (Postfix+Dovecot+Spamassassin+MySql) Looks like the install did a lot<br>
>> of the heavy lifting by instating and configuring everything.<br>
>><br>
>> So my main question is, am I going about this correctly or am I not<br>
>> understanding the difference between Ubuntu and RHEL?<br>
>><br>
>> Thanks a bunch!!<br>
>><br>
>> Keith<br>
>><br>
>> --<br>
>> Keith Smith<br>
>> ---------------------------------------------------<br>
>> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
>> To subscribe, unsubscribe, or to change your mail settings:<br>
>> <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a> [1]<br>
>><br>
>><br>
>> Links:<br>
>> ------<br>
>> [1] <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
>><br>
>><br>
>> ---------------------------------------------------<br>
>> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
>> To subscribe, unsubscribe, or to change your mail settings:<br>
>> <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
><br>
><br>
> -- <br>
> Keith Smith<br>
> ---------------------------------------------------<br>
> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
> To subscribe, unsubscribe, or to change your mail settings:<br>
> <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></p>