How to Increase Upload Size Theme in Wordpress Digital Ocean

Nowadays, we build our websites by and large using WordPress. Information technology's a clean, flexible content management system that fits almost people's needs perfectly. It allows our customers to manage their content with ease, and allows them to have their in-house team or other developers to run the entirety of the site afterwards development is done.

We also really, really similar DigitalOcean and their servers ( note: nosotros take not been paid or fifty-fifty in contact with DigitalOcean for the sake of the article, we simply really like their servers). For a reasonable price, you lot can get yourself a VPS (Virtual Private Server) – which is far superior to shared hosting for a number of reasons – and set up and manage your site with as much or as little involvement as y'all'd like. The biggest complaint we run across, though, is that information technology'due south not easy to manage your ain server and WordPress doesn't seem to work very well out of the gate with their setup.

But – and this is true, we swear! – information technology'due south easily remedied with a few steps, as shown below. And then if you'd similar to setup and manage your own cocky-hosted WordPress site, follow this guide and you'll be in good shape! This guide is for more experienced users, and so if you're intimidated past a little lawmaking typing or server management, nosotros recommend you find yourself a dandy local web developer who tin can assistance you out.

How to set up a WordPress site on a Digital Ocean server - the extra steps.

1- Use DigitalOcean's ane-Click Install

DigitalOcean makes it pretty like shooting fish in a barrel to initially install WordPress onto a VPS. In fact, they have a pretty easytofollow guide on their ain website which y'all can read here. It'south a good starting point that we don't need to rehash. A few notes, though:

Brand sure to pick a server size for what your site volition be in the futurity, not what it is now. I ever recommend the $10 a month packet to brainstorm with at the very minimum. You want to have enough space and RAM to run your site when you start getting thousands of visitors, and upgrading your server means a complete site motility, so it'southward not the easiest procedure. Go ahead and splurge on the extra $five a month if yous plan on having any kind of traffic to your site. If it's a personal hobby or weblog site, the $five program should be fine.

Also, choose the server closest to your location. In that location's perchance some stock in server location when information technology comes to SEO, and having a closer server will give you lot the best performance on the user'due south terminate (though internet speeds mostly make this bespeak moot nowadays).

Go alee and enable backups, every bit you want to be able to restore your site if information technology's ever hacked (or if you lot pause information technology). Not having backups is a recipe for a migraine headache in the virtually future.

Select a hostname, which tin can be anything y'all want. If yous're running an email server, make certain to use your master domain every bit the hostname (also known as your FQDN – Fully Qualified Domain Name). In one case you lot have all those settings done, select "applications -> WordPress on 14.04" and get! Your server is now being created, and yous'll get an email when it'south set with your login information.

2- The First Time Logging Into Your Server

Once y'all set up your server, you'll become an email with the root countersign – this is the initial password you utilize to access your server, merely you lot can't use it for anything other than logging into the console. What's the console, you inquire? It'due south the virtual window that DigitalOcean provides for you to log in to your computer as if you were physically typing on the keyboard in front of it. It looks something like this:

The Server Access Console on Digital Ocean

Your login name volition be "root" and your countersign volition be the password they emailed to you lot. Once you log in, it volition ask you to immediately modify your password – go ahead and select a new one that is pretty secure and you won't lose or forget. Please do not make information technology "123456" or something easily guessed past a robot. This is the key to your server – if someone gets a concur of it, they can command everything on your website.

If you endeavour to access your server via SSH (we recommend WinSCP for this) before changing the password, you'll get a login error. I've banged my head confronting the wall more than than once trying to log in to a new server after forgetting this fact.

3- Updating Your Server

Next up is to update all of the software on the server. While DigitalOcean gives you a fresh install of Ubuntu and an Apache server, they still don't update it every time any application requires an update – this would crave a new install image every few hours. And so they leave information technology up to you. In one case you're in the virtual console, performing an update is pretty easy. All yous do is type the following commands and then hit "enter."

apt-become update – This command downloads all of the update files for your various programs onto the server. It does not actually install the software – for that, you lot need the adjacent command:

apt-go dist-upgrade – You could just apply the simpler command app-get upgrade, which volition apply all the updates for your electric current packages that yous just downloaded. But this version of the command, with that actress dist- added on, will besides delete obsolete files or add new ones, functions the bones version of the command doesn't do.

4- Calculation Other Necessary Features

Once you execute those commands, it'due south time to install the missing files that you lot need to properly run WordPress. While you tin can run a WordPress site on your site at present, you volition all the same run across plugins that don't seem to work properly, or issues with your database running out of space. This is solved past installing the post-obit:

5- SendMail

Your website won't exist able to properly ship outgoing emails without this installed. This isn't the aforementioned as setting up an email server. This plugin allows the generation of emails to exist sent from your site, like when someone submits a form, for instance. You need to install and and then activate SendMail doing the following:

apt-get install sendmail – Make certain to press "Y" when prompted. This will install SendMail. Merely information technology'south not ready yet.

To get your outgoing mail service formatted properly so other servers don't identify it as spam, you need to edit your host file to include your hostname:

  • It'south found on your server in the main folder called /etc/ – and information technology's then a file named hosts.
  • You tin edit the file by downloading information technology and opening it with WordPad, or editing it straight in the console (that's for a whole other tutorial – search "edit files in ubuntu with command line" if you need help).
  • Edit the kickoff line from "127.0.0.ane localhost" to "127.0.0.1 localhost localhost.localdomain YOURHOSTNAME " using the hostname you selected when you first created your server.
  • Save the file – if using WinSCP, merely upload it over the quondam version – that should do the fox!

sendmailconfig – Afterwards editing the host file, you're ready to configure SendMail. Execute this command and press "Y" when prompted.

Once you exercise those, your site should send outgoing e-mail with no problem!

6- PHP5 Curl

Some plugins require CURL to piece of work properly. I've run into this when trying to get plugins like social streams that require integration with APIs to work. Installing it is easy and will save yous a number of future headaches.

apt-get install php5-curl – Done and done. If y'all do this at a split up time from this initial setup, brand sure to restart your Apache server using the command service apache2 restart in the last.

7- Swap File

A mutual effect that WordPress users have is the dreaded "error establishing a database connexion" fault that breaks a website. This is virtually always due to your memory being completely used up – your database tin't create any new information because your RAM is jam-packed full. There are two reasons for this:

  1. You lot have a bajillion different versions of your posts (by default, WordPress saves all older revisions of pages and posts so you tin can recover previous copies).
  2. You didn't accept enough memory for your usage to brainstorm with.

If information technology's the former, nosotros suggest you lot download a plugin like Amend Delete Revision – this volition make clean up all the erstwhile copies and free upwardly some database memory. If it'south the latter, and in the case of setting upwardly a new server on DigitalOcean, you need to create a swap file. Information technology'south a chip more complicated, so luckily, DigitalOcean has their own handy guide on how to create permanent swap memory in Ubuntu. This creates a file that, yes, swaps in and out every bit retentiveness gets full, assuasive for reallocation of files to keep your memory articulate.

viii- PHP Upload Maximum Size

This is a quick item that may or may non affect you lot. Sometimes, if you try to manually upload a plugin, yous see an issue where your PHP settings don't let a file of that size to be uploaded. To increase the max size, you need to:

  • Detect the file php.ini in the binder /etc/php5/apache2/
  • Edit the line "upload_max_filesize = 2M" establish under the "File Uploads" department to any size you need. I usually set it to 5M (five megabytes)
  • Save the file and rewrite the old version

If y'all do this step at a time other than the initial server setup, make sure to restart Apache for it to accept affect, using the command service apache2 restart in the last.

You're Washed Setting Upward Your DigitalOcean WordPress Server!

All that is left to practise at present is to restart the whole darn server. Become alee and practice this using the "Ability Cycle" push button in your DigitalOcean dashboard. From here, yous can proceed with setting up WordPress using the residual of the instructions in DigitalOcean'southward guide, and you'll be well on your way to creating and hosting your ain WordPress site on a VPS.

While this guide was a bit lengthy, it covers all of the necessary settings and plugins you need to have to run a successful WordPress installation using DigitalOcean. If you take any questions, permit us know!

westthiclon1977.blogspot.com

Source: https://www.postmm.com/web-development/how-to-set-up-wordpress-on-digital-ocean/

0 Response to "How to Increase Upload Size Theme in Wordpress Digital Ocean"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel