Hi, I have a website (wordpress multisite) running on cpanel which i would like to move to digitalocean droplet. Ive tried it before but when all the db and files have been moved, i was not able to access all the multisites and also response time was way too much!
i want to know what would be the best way to host the multisite? would it be LAMP? or ubuntu? or what would be the best way to handle it?
i was unable to find any recent and relevant information on the internet hence posting it here. 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.
here is my ngnix configuration… Now the website is showing 404 on all pages… If i restart the droplet then it starts working for 1 minute and then 404 again… should i move to apache? or am i missing something here? :(
Hello, @awaix
Thanks for getting back to me.
As you’re now with Nginx the .htaccess files will not work and you’ll need to sort out the rewrite for the internal pages directly from the Nginx config file for the domain name in question.
Can you please share your current nginx config file so I can check it for you? You need to make sure you have the following line in the nginx config:
or this one:
I usually prefer the second as it’s considered more precise. This should sort the issue with the permalinks for you.
Let me know how it goes.
Regards, Alex
while the website is in loading state if i run
sudo systemctl restart nginx.service
it loads the next request and shows the page fine… but then again same for next requests…Ubuntu LEMP on 18.04 Size 2 vCPUs 4GB / 80GB Disk
fixed the 404 for a while… was able to do it by changing config in nginx file but now website keeps loading for few minutes and then sometimes it works and sometimes 404 error again… now even for the main website as well as for the main website backend… now i can barely access the wp-admin for the main website… ive checked the graphs on the digitalocean panel and there is no surge of resources…
i have no clue what is causing this now… any help??
Hello, @awaix
You can either create a LEMP droplet and then migrate your WordPress multisite over or use our WordPress 1-click installer - https://marketplace.digitalocean.com/apps/wordpress
The installer will deploy a LAMP server with everything needed for hosting a WordPress site. You can then copy your files over and configure the rest of the setup after the migration.
You’ve mentioned that in the past you were not able to access all multisites. Can you please let me know if you’re using the sub-directories option for multisite?
As for the response times, I will recommend you to monitor the droplet’s performance once you’ve migrated your site in order to see if the resources are enough (in case you’ve started with a small droplet). There might a memory exhaustion coming from a plugin or something else can be consuming the droplet’s resources so you will need to monitor the droplet’s performance while working on your site to see what’s going on.
You can always upgrade the droplet’s resources so this should not be an issue.
As for the Laravel Forge issue, when you say that you’ve experienced the same issues, do you mean that the response times were big?
I will recommend you to go with a LEMP droplet for the Laravel Forge installation.
You can follow this tutorial for installation Laravel: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-laravel-with-lemp-on-ubuntu-18-04
Hope this helps!
Regards, Alex
P.S i also have forge.laravel subscription… i tried setting up droplet using forge as well… same issue… i read somewhere about lamp installation instead of ubuntu install… so not sure what would work best