Ubuntu 16.04
sudo apt-get update && sudo apt-get upgrade
curl -O http://vestacp.com/pub/vst-install.sh
bash vst-install.sh
- curry cms
- laravel
- drupal
- redmine
(https://github.com/errogaht/vesta_templates)
cd /usr/local/vesta/data/templates/web
git clone https://github.com/errogaht/vesta_templates.git
cp -R vesta_templates/apache2 .
cp -R vesta_templates/nginx .
rm -R vesta_templates
(https://forum.vestacp.com/viewtopic.php?f=14&t=10307)
Ubuntu
curl -O -k https://raw.githubusercontent.com/skurudo/phpmyadmin-fixer/master/pma-ubuntu.sh && chmod +x pma-ubuntu.sh && ./pma-ubuntu.sh
Debian
curl -O -k https://raw.githubusercontent.com/skurudo/phpmyadmin-fixer/master/pma-debian.sh && chmod +x pma-debian.sh && ./pma-debian.sh
/etc/php/7.0/apache2/php.ini
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.
/etc/mysql/my.cnf
edit
wait_timeout=600
max_allowed_packet = 64M
service mysql restart
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
sudo apt-get install php7.0-zip
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
sudo apt-get install nodejs npm
sudo apt-get install php5-memcached memcached
sudo -s
apt-get update
apt-get install openjdk-7-jre-headless -y
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list
apt-get update
apt-get install elasticsearch
update-rc.d elasticsearch defaults 95 10
/etc/init.d/elasticsearch start