Skip to content

Category: Servers

3 min readNode.js, Servers4 comments

How to setup Node.js production application on Apache multiple virtual host server

When it comes to using Node.js on backend it’s quite different from what people used to do for PHP server configuration. Process manager First and most important is not to run your application directly with node app.js command instead use one of the following packages: forever, PM2, and some others. This will help maintain your … Continue reading How to setup Node.js production application on Apache multiple virtual host server

1 min readServers

Simple MySql daily and weekly backups on Linux

Recently I had a task to create automatic Mysql database backups daily and weekly and keep some number of those backups. After some short googling I come up with a quite small and simple shell script that just works. To make this happen we need few following steps: Create a new file in /etc/cron.daily/ folder … Continue reading Simple MySql daily and weekly backups on Linux

1 min readServers2 comments

MySql (MariaDB) crashes on small RAM VPS, what to do

Recently I encountered one weird problem, my MariaDB database started to crash from time to time on one of my small RAM (512mb) virtual private servers. After some short googling I found out what what is potential problem with MariaDB on small RAM machines and how to fix it. First of all, if you have this … Continue reading MySql (MariaDB) crashes on small RAM VPS, what to do