And another reference on DO here - https://www.digitalocean.com/community/tutorials/how-to-install-laravel-with-an-nginx-web-server-on-ubuntu-14-04
This reference has different setup commands.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi.
I stumbled across this turn of phrase on the DigitalOcean help wiki -
Heads Up: If you're installing Laravel on DigitalOcean's 512MB VPS, make sure you add a swapfile to Ubuntu to prevent it from running out of memory ...
You'll find that here - https://www.digitalocean.com/community/tutorials/how-to-install-laravel-with-nginx-on-an-ubuntu-12-04-lts-vps
Anyhow, my question is in three parts - - Is this article on DigitalOcean correct? - Does Forge do this for you when setting up a DigitalOcean instance of 512Mb? - What is the general experience of those on a 512Mb Forge instance?
In my instance, I currently run my production server on a 1Gb instance. I don't get stacks of hits today ... certainly fewer than a thousand, within the space of about four hours, usually. This works out to about a hit every 14 second or so - i.e. not intensive at all.
Many thanks
Works fine.
Just add this script as recipes and execute it on desired machine.
if [ -f /swapfile ]; then
echo "Swap file already exists."
else
sudo fallocate -l 1G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo "/swapfile none swap sw 0 0" >> /etc/fstab
echo "vm.swappiness=30" >> /etc/sysctl.conf
echo "vm.vfs_cache_pressure=50" >> /etc/sysctl.conf
echo "Swap created and added to /etc/fstab for boot up."
fi
Please or to participate in this conversation.