Page 1 of 1

Can separate modules be installed individually as amendment?

Posted: Thu Mar 15, 2018 1:30 pm
by baoang
My previous installation script was something like this:
bash vst-install.sh --nginx yes --phpfpm yes --apache no --named yes --remi no --vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota no --exim no --dovecot no --spamassassin no --clamav no --softaculous no --mysql yes --postgresql no
I didn't install remi. Now if I want to install it, making the script sth. like this:
bash vst-install.sh --nginx yes --phpfpm yes --apache no --named no --remi yes --vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota no --exim no --dovecot no --spamassassin no --clamav no --softaculous no --mysql yes --postgresql no
Is it correct that I only run such a bash script:
bash vst-install.sh --nginx no --apache no --phpfpm no --named no --remi yes --vsftpd no --proftpd no --iptables no --fail2ban no --quota no --exim no --dovecot no --spamassassin no --clamav no --softaculous no --mysql no --postgresql no
I mean, if I want to add some certain missed module(s), all I should run is making installed module a 'no', and adding the missed module a 'yes'?

Re: Can separate modules be installed individually as amendment?

Posted: Thu Mar 15, 2018 3:11 pm
by ScIT
as far as I know, you can't run the installer script twice. maybe you can check the referencing remi part in the script and run the command lines manually.

Re: Can separate modules be installed individually as amendment?

Posted: Fri Mar 16, 2018 3:19 am
by baoang
ScIT wrote:
Thu Mar 15, 2018 3:11 pm
as far as I know, you can't run the installer script twice. maybe you can check the referencing remi part in the script and run the command lines manually.
Thank you, ScIT, and I found this:
wget http://vestacp.com/pub/vst-install-$type.sh -O vst-install-$type.sh
in the official install script,
so I guess, since mine is running on CentOS v6.9, the real file should be
I downloaded this file and among the code, here are a few blocks:
# Installing EPEL repository
yum install epel-release -y
check_result $? "Can't install EPEL repository"

# Installing Remi repository
if [ "$remi" = 'yes' ]; then
rpm -Uvh --force $vestacp/remi-release.rpm
check_result $? "Can't install REMI repository"
sed -i "s/enabled=0/enabled=1/g" /etc/yum.repos.d/remi.repo
fi
It seems that I should install EPEL repository first by running:
yum install epel-release -y
and then install remi, which I didn't install previously, by running:
rpm -Uvh --force $vestacp/remi-release.rpm
How about the second red line, which reads
sed -i "s/enabled=0/enabled=1/g" /etc/yum.repos.d/remi.repo

Also, for that variable $vestacp, I tried https://vestacp.com/ but it looks like a wrong variable value:(
--------------
Oh, I found it, $vestacp directs to /usr/local/vesta/install/rhel/6 in my case. 6 refers to CentOS v6.x.

So, the install script will be sth. like this?

Code: Select all

rpm -Uvh --force /usr/local/vesta/install/rhel/6/remi-release.rpm
And in my case, if I want to upgrade my php-fpm from 5.3.3 to, say v5.6 or even higher, say php-fpm v7.2, the pre-requisite two scripts would be sth. like this?

Code: Select all

yum install epel-release -y && rpm -Uvh --force /usr/local/vesta/install/rhel/6/remi-release.rpm
If remi installation failed, I then would change in /etc/yum.repos.d/remi.repo "enabled=0" to "enabled=1"?

Re: Can separate modules be installed individually as amendment?

Posted: Sat Mar 17, 2018 10:03 am
by baoang
Ok, finally, from the article's explaination, I checked the author's instructions.
This is how we’re going to install certain software on CentOS 7 later on in this tutorial, if you haven’t already installed VestaCP then make sure you select it during the install, if you have already installed VestaCP then you can follow our guide to install it instead.
It looks the remi part is not like the php part which may highly associated with the control panel. Adding a remi's repo will not affect the function of the panel.