Search the Community

34 Results
  • Tutorial

    How To Add Swap on Ubuntu 14.04

    Swap space can be used as an "overflow" area for your system when you run out of RAM. The operating system can store data that would normally be kept in RAM on the hard drive in a specially formatted file. In this g...
    By Justin Ellingwood Getting Started Linux Basics Server Optimization Ubuntu
  • Tutorial

    How To Add Swap Space on Ubuntu 16.04

    One of the easiest way of increasing the responsiveness of your server and guarding against out of memory errors in your applications is to add some swap space. In this guide, we will cover how to add a swap file to a...
    By Justin Ellingwood Linux Basics Ubuntu Ubuntu 16.04
  • Tutorial

    How To Add Swap Space on Ubuntu 18.04

    One of the easiest way of guarding against out-of-memory errors in applications is to add some swap space to your server. In this guide, we will cover how to add a swap file to an Ubuntu 18.04 server.
    By Brian Boucheron Linux Basics Ubuntu Ubuntu 18.04
  • Tutorial

    How To Add Swap Space on Ubuntu 20.04

    One way to guard against out-of-memory errors in applications is to add some swap space to your server. In this guide, we will cover how to add a swap file to an Ubuntu 20.04 server.
    By Brian Boucheron Linux Basics Ubuntu Ubuntu 20.04
  • Tutorial

    How To Add Swap on Ubuntu 12.04

    Linux swaps allow a system to harness more memory than was originally physically available. Here's how to set up a linux swap file on Ubuntu 12.04
    By Etel Sverdlov Linux Basics Ubuntu
  • Tutorial

    How To Add Swap on CentOS 7

    One of the easiest ways to make your server more responsive, and guard against out-of-memory errors in your application, is to add some swap space. This gives you the ability to increase the amount of information that...
    By Josh Barnett Server Optimization CentOS
  • Tutorial

    How To Add Swap on CentOS 6

    Linux swaps allow a system to harness more memory than was originally physically available. Here's how to set up a linux swap file on CentOS 6
    By Etel Sverdlov Linux Basics CentOS
  • Tutorial

    How To Add Swap Space on Debian 10

    One of the easiest way of guarding against out-of-memory errors in applications is to add some swap space to your server. In this guide, we will cover how to add a swap file to a Debian 10 server. <$>[warning] W...
    By Brian Boucheron Linux Basics Debian Debian 10
  • Tutorial

    How To Add Swap Space on Debian 9

    One of the easiest way of guarding against out-of-memory errors in applications is to add some swap space to your server. In this guide, we will cover how to add a swap file to a Debian 9 server. <$>[warning] Wa...
    By Brian Boucheron Linux Basics Debian Debian 9
  • Tutorial

    How To Add Swap Space on Debian 8

    One of the easiest way of guarding against out-of-memory errors in applications is to add some swap space to your server. In this guide, we will cover how to add a swap file to a Debian 8 server. <$>[warning] Wa...
    By Brian Boucheron Linux Basics Debian
  • Tutorial

    How to Add a Swap File on an Arch Linux Cloud Server

    In this article, we will discuss how to add a swap file to an Arch Linux cloud server. Linux uses swap spaces to offload information from the machine's RAM, allowing for the most important processes more resources to...
    By Justin Ellingwood Server Optimization Caching Arch Linux
  • Question

    How To Add Swap on CentOS 7

    Hi all, Recently we got a feedback on our tutorial - https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-centos-7 It stated the following : sudo swapon /swapfile swapon failed: invalid argument Shout...
    Accepted Answer: This error is created due to the usage of <^>fallocate<^> in the article. The problem with <^>fallocate <^>is that it uses <^>filesystem <^><^>ioctls<^> to make the allocation fast and effective, the disadvantage is t...
    1 By KFSys CentOS
  • Question

    Can I move a volume snapshot to another region?

    Can I add a volume snapshot to another region or transfer it to another region? I know I can do it with droplet snapshots, but what about volume snapshots? And if it's not possible, can you add this feature?
    Accepted Answer: Hey @urirodberg, I just tested this and it does not seem to be possible as of the time being. A workaround that I would use in this case is to use a command like rsync for example, to transfer all of my files from an ...
    1 By urirodberg DigitalOcean Volumes
  • Question

    How to enable php-mbstring and php-soap on my Ubuntu 18.04 droplet

    Running WordPress w/WooCommerce on a Ubuntu 18.04 droplet with PHP 7.4.2. A WooCommerce Square payment add-in is not accepting payments. The WooCommerce website status is reporting 2 errors: Your server does not su...
    Accepted Answer: Hi @mdkennedy, It does seem like you have mbstring and SOAP enabled on your PHP version. It's possible however your website is actually picking up another PHP version. You can confirm this by creating a info.php file ...
    1 By mdkennedy LAMP Stack PHP
  • Question

    Add droplet to VPC without downtime?

    Hi. With new VPC feature, can I add existing and running droplet to VPC network without shutting it down (and taking snapshot)? Probably via some manual commands? Thanks in advance.
    Accepted Answer: Hello, @xrjMaker You can't migrate Droplets between VPC networks directly, but you can recreate a Droplet using a snapshot. Snapshots are on-demand images of Droplets. You can create new Droplets based on snapshots t...
    1 By xrjMaker Networking
  • Question

    Can I use the API to create a snapshot of a droplet then add that snapshot to another region ?

    Hey All, I want to create a script that will create a snapshot of a droplet, then add that snapshot to another region for redundancy. Is is possible to do this through the DO API? Thanks
    Accepted Answer: Yes. The DigitalOcean API supports both taking a snapshot (https://developers.digitalocean.com/documentation/v2/#snapshot-a-droplet) of a Droplet and transferring a copy (https://developers.digitalocean.com/documenta...
    1 By VicJones API
  • Question

    Is it possible to tag a snapshot using the API?

    I see that in the snapshots API, there is a list of "tags" per snapshot. Is it possible to add a tag to a snapshot using the API? Also, is it possible to fetch all the snapshots with a certain tag?
    Accepted Answer: Hi @firedragondol, sorry for the confusion. You can tag Droplet Snapshots via the API - they're considered an image, so you would pass "resource_type":"image" Hope this helps!
    3 By firedragondol DigitalOcean API and CLI (doctl)
  • Question

    How can I perform Add to Region and Restore Droplet actions on a backup or snapshot?

    The GUI offers "Add to Region" and "Restore Droplet" for a snapshot. How can I perform those actions on a backup or snapshot through the API?
    Accepted Answer: After you take a snapshot of a Droplet, you can find the ID of that snapshot via the API by querying the /v2/images?private=true endpoint (https://developers.digitalocean.com/documentation/v2/#list-a-user-s-images). ...
    1 By csabatothus DigitalOcean API and CLI (doctl)
  • Question

    Doctl Spinup droplet from previous snapshot

    I've been trying to spinup droplets from previous snapshots, but the cli command requires the image Slug. is there a way to add a slug to a snapshot ?
    Accepted Answer: @Skyscrapers As far as I can see, you can't add a slug, though you don't need to provide doctl with a slug to create a new Droplet using a previously generated snapshot, you just need to pass the ID of the snapshot i...
    1 By Discovery DigitalOcean Linux Commands API Ubuntu
  • Question

    How to add swap to docker?

    Guys hi, I am using Ubuntu Docker 17.12.0ce on 16.04 and have php app running. It has 2 containers: prj_apache_1 and prj1_mysql_1 Problem is that mysql container is frequently crushing. Solution is to add swap space....
    1 By BBcoon Docker Apache MySQL