I am currently attempting to install this on 16.04, I will document my changes and if I finally get the install to work or if it falls apart into a miserable piece of garbage.
My modified copy of vst-install-ubuntu.sh is pasted here:
Steps:
Download the installer file from the Vesta site.
Code: Select all
curl -O http://vestacp.com/pub/vst-install.sh
Try running the bash once with your desired parameters (Mine is going to differ from yours).
Code: Select all
bash vst-install.sh --nginx yes --apache yes --phpfpm no --vsftpd yes --proftpd no --exim no --dovecot no --spamassassin no --clamav no --named no --iptables yes --fail2ban yes --mysql yes --postgresql no --remi yes --quota no --hostname oac.yesleap.com --email [email protected] --password XXxxXXxxXXxxXX
Wait for first failure.
Now edit the vst-install-ubuntu.sh with the following:
Find line 15 (should be os='u buntu') and replace the following variables: release, codename, software.
Replace them with the following,
(be sure to leave vestacp variable alone!):
Code: Select all
release="15.10"
codename="wily"
software="nginx apache2 apache2-utils apache2.2-common
apache2-suexec-custom libapache2-mod-ruid2 libapache2-mod-rpaf
libapache2-mod-fcgid libapache2-mod-php7.0 php7.0 php7.0-common php7.0-cgi
php7.0-mysql php7.0-curl php7.0-fpm php7.0-pgsql awstats webalizer vsftpd
proftpd-basic bind9 exim4 exim4-daemon-heavy clamav-daemon
spamassassin dovecot-imapd dovecot-pop3d roundcube-core
roundcube-mysql roundcube-plugins mysql-server mysql-common
mysql-client postgresql postgresql-contrib phppgadmin phpmyadmin mc
flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
bsdmainutils cron vesta vesta-nginx vesta-php"
Look for
Install Repository and change
Code: Select all
echo "deb http://nginx.org/packages/ubuntu/ $codename nginx" > $apt/nginx.list
to
Code: Select all
echo "deb http://nginx.org/packages/ubuntu/ xenial nginx" > $apt/nginx.list
Delete the
Backing up PHP configuration sections (there are two) and paste the following:
Code: Select all
# Backing up PHP configuration
service php7-fpm stop >/dev/null 2>&1
cp -r /etc/php/7.0 $vst_backups/php7.0 > /dev/null 2>&1
rm -f /etc/php/7.0/fpm/pool.d/* >/dev/null 2>&1
In
Package Exludes
under the
if [ "$apache" = 'no' ]; then
add software=$(echo "$software" | sed -e "s/libapache2-mod-php7.0//")
In
if [ "$mysql" = 'no' ]; then
update php-mysql to php7.0-mysql
and correct the capitalization of phpMyAdmin to phpmyadmin (case sensative in the *nix world).
In
if [ "$postgresql" = 'no' ]; then
update php-pgsql to php7.0-pgsql
Now look for
"WEB_BACKEND='php-fpm'" (around 700) and update it to php-fpm7.0-fpm
Look for
Configure PHP-FPM we are going to erase the block and replace them with the following:
Code: Select all
#----------------------------------------------------------#
# Configure PHP-FPM #
#----------------------------------------------------------#
if [ "$phpfpm" = 'yes' ]; then
wget $vestacp/php7.0-fpm/www.conf -O /etc/php/7.0/fpm/pool.d/www.conf
update-rc.d php7.0-fpm defaults
service php7.0-fpm start
check_result $? "php7.0-fpm start failed"
fi
That's it for PHP!
Now on to MySQL
Look for
Configure MySQL/MariaDB and then
MySQL configuration
Replace the entire block with the following:
Code: Select all
# MySQL configuration
wget $vestacp/mysql/$mycnf -O /etc/mysql/my.cnf
sed -i.bak s/thread_concurrency/\#thread_concurrency/g /etc/mysql/my.cnf
sed -i.bak s/myisam-recover-options/\#myisam-recover-options/g /etc/mysql/mysql.conf.d/mysqld.cnf
sed -i.bak s/thread_concurrency/\#thread_concurrency/g /etc/mysql/mysql.conf.d/mysqld.cnf
mysql_install_db
update-rc.d mysql defaults
systemctl enable mysql.service
service mysql start
check_result $? "mysql start failed"
IT WORKS... So Far
This seems to of worked thus far and I am not noticing any issues, next will be setting up an account and testing it.
