Hi, I am thinking of the following setup with just one droplet:
a. test.[mydomainhere].com //a private test website for my own eyes only b. temp.[mydomainhere].com //a temporary website to showcase what I want to do to the public, will be powered by Wordpress and eventually be shut down in favour of something a bit more permanent c. [mydomainhere].com //the actual website once I am ready d. [any other websites in case I need them]
So, here’s my questions about it:
Thanks!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
@victoriousrock see my comment on https://www.digitalocean.com/community/articles/how-to-set-up-a-host-name-with-digitalocean
Thanks man, now I am trying to get the A and CNAME records to work properly; I can get to my websites via their exact names only (i.e. www.[subdomain].[mydomain].com will not work despite following the guides here… :O) <br> <br>PS: And I managed to get WordPress working on the website too. Was a little tricky in the sense that you cannot remove the wordpress folder after the initial setup (even after you copied the files out to the “correct” /var/www directory); you have to do it before that…
@victoriousrock: Glad to hear it worked!
Ok wait, I figured that out; I forgot to make A records for the subdomains facepalm
I can’t get VirtualHosts to work by the way; tried both guides (the one I posted and the one here) but kept getting 404s :(
Ah, I managed to figure the multiple users part (once I understood how to assign their home directories and set those file permissions correctly); am I right to say that the file permissions should be -rwxr–r-x for Apache to be able to work with them but yet remain secure? <br> <br>PS: I am quite unsure about the security issues; I mean, is there anything else I can do to make the server more secure? I heard about Tripwire but there seem to be no way to apt-get it…
Yes, it should work fine. You can use multiple accounts but make sure Apache can read the files so it can serve them. <br>It’s up to you :]
But that will mean I will be using only one Linux user for all (sub) websites right? <br> <br>PS: I will use this guide for Virtual Hosts since my situation is more towards that (http://stackoverflow.com/questions/8044221/does-apache2-support-virtual-hosting-of-subdomains)
You can use one user for all virtualhosts, and it’ll work perfectly fine.
Thanks, but I am not sure how to set that up as by following the initial setup guide here, I am unable to log in to the server with the new users (i.e. I can log in with only the new user I made right after logging in as root)…