Hello guys!!
First of all, i want thank you all for the support you have given me!!
I’m totally new with all this vps stuff, so i’m trying my best to learn as fast as i can! I’m glad there are so many tutorials in here!!
The problem is that i’ve been following many of those tutorials, but i’m getting lost a lot, because i often need to merge 2 or more tutorials to do what i want, and then one of them says one thing and the other says another (which is good, cause they serve different purposes).
So, i wish i could have some guidance, like: 1- follow this link, then 2- this link, then 3- and so on, based on what i need.
I know that i’m asking too much, but i’m willing to restart my droplet because i’m afraid i’ve done something wrong, mainly in the safety area… and i know that there are some things i can´t do after i’ve done other things…
Here is what i’ve done already: installed ubuntu 10.04 64x (don´t know about ubuntu or CentOS, but i followed a guide that said to install ubuntu, and i even made some changes in ssh and the droplet port, changing from 22 to 25000, based on the guide) - then i installed Zpanel, and only got to see its interface by thyping in the web browser the droplet’s IP (i did’nt change the droplets hosts file nor my computer’s hosts file), and then i got confused about firewalls, ports and stuff like that, temporary DNS, etc…
So, i what i need now is the following:
I need to migrate my wordpress blog from a shared hosting to DigitalOcean, but i want it to be very secure (i still don’t know enough about security), because my site is big and i gain money from it, so there were cases of people trying to hack it. The site needs to be able to handle a lot of simultaneous traffic as well, and fast, if possible…
Also i need to use a control panel, like Zpanel (because cPanel is paid service). I’ve been told that Zpanel installs LAMP and phpMyAdmin by itself…
I’ve heard Varnish is very good for caching and allowing a lot of traffic too, but i dont know when is the correct time to install it… Should i install it? After Zpanel? Before Zpanel? After Wordpress? Also i’ve read something about php APC, fast cgi, but don´t know about them…
Then i need to restore my database and content of the wordpress site (can i do it with zpanel interface?), and after that i need to test it before propagating the DNS…
And then i want to know there is anything else to do before i propagate my DNS and get my site to work as before, but now on DigitalOcean =))
I know its too much to ask, but thank you guys anyway!!
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!
<blockquote>1. Should i add a Swap on ubuntu?? I mean, for me that will use Wordpress blog with high traffic.</blockquote> <br>Yes, but make sure you set the swappiness level to 0: <br><pre>echo vm.swappiness=0 | sudo tee -a /etc/sysctl.conf <br>sysctl -p</pre> <br> <br><blockquote>2. Memcache, should i use it too?? People here say that it can speed up my site, but i will already use varnish, nginx, W3Total cache plugin, and maybe CloudFlare. Should i add Memcache as well? </blockquote> <br>It’s recommended that you use it since it’s an in-memory cache which will speed things up. But you can’t just “use” it, your app (Wordpress in this case) needs to support and use memcached, I believe there are plenty of plugins that do this. <br> <br><blockquote>3. What abou FastCGI on php?? Would you guys recommend it? </blockquote> <br>If you are going to use nginx, you will have to use fastcgi. FastCGI is faster even if you use Apache so I recommend going with it. <br> <br><blockquote>4. APC on PHP, should i install it even with all those cache stuff?? </blockquote> <br>Yes, I recommend installing an op-cache extension such as APC. <br> <br><blockquote>5. Is it recommended for me to make a CDN after all? Or stick with CloudFlare?</blockquote> <br>Depends. Cloudflare is usually enough.
<b>“Also i need to use a control panel, like Zpanel …”</b> <br> <br>Why? IMHO, you should <b>not</b> install zPanel at all. In doing so, you are: <br> <br>1.) adding another layer of complexity; <br>2.) adding another possible point of failure; <br>3.) limiting your ability to have granular control over your cloud server (that is, if you rely on zPanel exclusively). <br> <br><i>Case-in-point</i> <br> <br>All of the “premium” WordPress hosting companies employ Nginx, instead of Apache (including the inventors of WordPress: WordPress.com!). Thus, it defies logic that anyone that values performance would deploy their WordPress installation on the LAMP stack. I’m no expert on zPanel, but, if memory serves me, zPanel does <b>not</b> support Nginx. <br> <br>You’re better off with: <br> <br>1.) <a href=“https://www.digitalocean.com/community/articles/how-to-use-filezilla-to-transfer-and-manage-files-securely-on-your-vps”>How To Use Filezilla to Transfer and Manage Files Securely on your VPS</a>; <br> <br>2.) <a href=“https://www.digitalocean.com/community/articles/how-to-create-ssh-keys-with-putty-to-connect-to-a-vps”>How To Create SSH Keys with PuTTY to Connect to a VPS</a>; <br> <br>3.) <a href=“https://www.digitalocean.com/community/articles/how-to-install-wordpress-nginx-php-and-varnish-on-ubuntu-12-04”>How To Install Wordpress, Nginx, PHP, and Varnish on Ubuntu 12.04</a>; and <br> <br>4.) Either the <a href=“http://wordpress.org/plugins/duplicator/”>Duplicator</a> plugin or <a href=“https://www.digitalocean.com/community/articles/how-to-migrate-wordpress-from-shared-hosting-to-a-cloud-server-with-zero-downtime”>How to Migrate WordPress from Shared Hosting to a Cloud Server with Zero Downtime</a>.
Thank you so much Pablo! <br> <br>The link about How to Migrate Wordpress talks about migrating into an Apache server, will i be alright following it using Nginx? <br> <br>After all thopse steps, will you recomend installing SSL certificate?
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.