7/27/2016 - 8:03 AM

server scaleway


Ubuntu 16.04

Operazioni preliminari

sudo apt-get update && sudo apt-get upgrade



curl -O

Inserimento templates extra

  • curry cms
  • laravel
  • drupal
  • redmine


cd /usr/local/vesta/data/templates/web
git clone
cp -R vesta_templates/apache2 .
cp -R vesta_templates/nginx .
rm -R vesta_templates

Fix per phpmyadmin


Ubuntu curl -O -k && chmod +x && ./

Debian curl -O -k && chmod +x && ./

php.ini VESTACP


upload_max_filesize = 64M # Maximum file size your server will allowed to be uploaded, in megabytes
post_max_size = 64M # Maximum data size allowed to uploaded, in megabytes
memory_limit = 512M #Maximum amount of memory a script may consume, in megabytes
max_input_time = 120 # Maximum amount of time each script can wait for requested data, 
max_execution_time = 60 # Maximum allowed execution time of each script, in seconds.
max_input_vars: The maximum number of variable form elements that can be submitted to a single page.

my.cnf Mysql server has gone away fix



max_allowed_packet = 64M

service mysql restart

Creazione SWAP (2GB)

2gb = 1024 * 1024 * 2

dd if=/dev/zero of=/swap bs=1024 count=2097152 
mkswap /swap && chown root. /swap && chmod 0600 /swap && swapon /swap
echo /swap swap swap defaults 0 0 >> /etc/fstab
echo vm.swappiness = 0 >> /etc/sysctl.conf && sysctl -p

Altre estensioni php

sudo apt-get install php7.0-zip

Composer sistem-wide

curl -sS | sudo php -- --install-dir=/usr/local/bin --filename=composer

NPM e node.js

sudo apt-get install nodejs npm


sudo apt-get install php5-memcached memcached


Login as root

sudo -s

Update Aptitude

apt-get update

Install Java

apt-get install openjdk-7-jre-headless -y

Download and install Elasticsearch Public Signing Key

wget -qO - | sudo apt-key add -

Add repository

echo "deb stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list

Update Aptitude

apt-get update

Install Elasticsearch

apt-get install elasticsearch

Set Elasticsearch to run on startup

update-rc.d elasticsearch defaults 95 10

Start Elasticsearch server

/etc/init.d/elasticsearch start

php-cgi eat up the memory