Please help me to host multiple websites by mounting the disk partition in Linode

Hello,

I'm running websites each with different PHP version and php.ini setting by reseller plan of other hosting provider, and I want to migrate 2~3 of them to Linode VPS.

I've signed up and bought $10/month VPS plan of Linode, and almost finished basic construction of guide "Getting Started…" and "Secured …" with Debian 8.

I've read the answer of you from this article on StackOverflow:

Which is the most appropriate way to host multiple websites in linode?~~[http://stackoverflow.com/questions/13726675/which-is-the-most-appropriate-way-to-host-multiple-websites-in-linode" target="_blank">](http://stackoverflow.com/questions/1372 … -in-linode">http://stackoverflow.com/questions/13726675/which-is-the-most-appropriate-way-to-host-multiple-websites-in-linode](

There is one of the answers in the discussion:

You could set a quota by creating a virtual slice of your disk space and mounting that as your individual web directories. This has a couple benefits, including limiting space, and keeping it separate from the OS in case the OS becomes corrupted and needs to be re-imaged. This happened to me a few weeks ago, and because I had the /www directory on a separate partition, I re-imaged and got the sites back up on my Linode in under an hour. – CDub Dec 6 '12 at 17:21

I'm interested in using the same solution to plan & manage mutiple websites and different 2 PHP version (PHP 5/php 7) for different websites for the compatibility reason.

Could some one know how to do these work and could share the detail? I only know how to have both PHP 5 & PHP 7 exist, but don't know about mounting the disk partition :(

Thanks,

Green

1 Reply

Try reading https://wiki.debian.org/fstab

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct