Question

Can I add WordPress sites to block storage?

Posted September 9, 2021 99 views
WordPressBlock Storage

Hi, I am starting a small hosting business and I am using WHMCS to automate the sign up process. It allows me to add additional servers and then configure where my new clients sites are automatically created when they sign up.

My question is if I have a droplet and add block storage, can I set it up so WHMCS adds the new websites to the block storage and then I host my clients WordPress sites on the block storage rather than on my droplet disk space, or do I have to upgrade the actual droplet to get bigger disk space?

Hope you guys can advise me

Regards
Andre

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.

×
Submit an Answer
1 answer

Hello,

In general, this is doable. If you were setting up the Droplet manually or with an automation tool like Ansible, you could attach the Block storage to the Droplet and install WordPress there.

However, I don’t think that WHMCS would have this functionality out of the box. So in order to implement this, you would need to either request this as a feature from the plugin vendor or try to implement the custom functionality yourself.

The more straightforward option that would not require any custom modifications, would be to use the actual Droplet storage.

Regards,
Bobby

  • Hi Bobby, thanks for the response, I do have another problem if you could be so kind to advise me on.

    I have four WordPress sites installed on my droplet, so I started to edit one site and within minutes my websites go down, (error: This site cant’ be reached) I checked and it seemed that I reached my ram limit, so I upgraded to an 8GB droplet, however same problem, all sites go down the moment I start editing just one, I checked resources and again it looks like I hit the limit on ram.

    Is this normal? What ram should I be on? or do you think it might be something else causing it?

    I am trying to setup a shared hosting environment with multiple clients (WordPress sites) Imagine 20 clients all trying to edit their sites at the same time, there goes my 99.9% uptime right out the window!

    Hope you can help.

    Regards
    Andre

    • Hi there,

      This should definitely not happen especially if you are not getting a lot of traffic and the sites are only under development.

      This could usually be due to a faulty plugin or theme, or in some cases a compromised website.

      What I could suggest is to enable the WordPress debug mode along with PHP error reporting and check if there are any warnings caused by a plugin or your theme.

      Let me know how it goes!
      Best,
      Bobby

      • Hi Bobby, thanks for the response, I really appreciate it.

        Most of my websites are just basic WordPress installations with no plugins or theme installed as yet and have no traffic, I am currently editing only one website, so from your response I feel there is light at the end of the tunnel.

        I do need your guidance plz, I suspect I am chasing the wrong angle of accusing ram here because I don’t really understand the graphs (is there any way I can send you screen shots?)

        I enabled the monitoring on the droplet and in Plesk,

        In Plesk it shows I am using less than 2GiB of ram, but it has a huge memory cached value of over 5GiB (I don’t understand how this works and if this could perhaps be the problem?)

        Under subscription management it also shows the resources used by each domain, and all are very low.

        In the DO console I enabled advanced metrics and this shows I am using only +- 35% memory

        So I think I have made a mistake here by accusing ram, unless its the memory cached thingie that’s causing it.

        If it’s not the resources causing the sites to go down, what else could cause it?

        Regards
        Andre

        P.S. Sorry I am very new to all of this)

        • Hey @AndreDT,

          No need to say sorry! Those are absolutely valid questions.

          Indeed it looks like it is not the RAM that is causing the problem.

          The cached memory is not a problem, it is a standard thing for Linux-based systems.

          There are a few things that I could suggest checking:

          • Check your PHP error log to see if there is some more information about the problem
          • Check your Apache and Nginx logs to see if you could get some information from there

          Also, when you try to make the change, does the website get redirected to HTTPS? It is possible that the HTTPS connections get refused in case that you don’t have an SSL certificate installed.

          Feel free to share the logs here if you find some errors. Make sure to remove any sensitive information first before posting them here.
          Best,
          Bobby