By Renko
Hi there.
I’d like to use a Droplet for a bunch of small websites using Apache’s Virtual Hosts, PHP and MySQL. I’d like to do it safely, like putting the hosts in a sandbox (chroot, open base dir) something like that. I can do this by configuring this all by hand for each domain. That will work fine, but it takes quite some time and it’s easy to make a mistake. On the other hand, I could use a bloated manager like DirectAdmin. I could also use a shell script.
I’m wondering about the recommended and most used method to get this done. Thank you in advance.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
This is a bit of a difficult question to give a direct answer to as it all comes down to personal preference.
I personally prefer to do it all by hand, with a little help making templates. I will create a base setup that I can then copy with simple modifications.
I like to set a Virtualhost that has some very distinct blank values like URL_GOES_HERE so I can easily search for them while making modifications.
Scripts and applications can get it done, but I feel that by doing it myself I have complete control over the process from start to finish. This ensure the most accuracy as I can review everything. I actually feel I’m less prone to a mistake by doing it manually vs using an application.
As for a recommended way, I don’t believe there is one, and it’s all how you feel most comfortable. Obviously I’m just one opinion, but I hope this has helped a bit.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.