Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Can separate modules be installed individually as amendment?

General questions about VestaCP
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
baoang
Posts: 40
Joined: Fri Feb 23, 2018 7:31 am

Os: CentOS 5x
Web: nginx + php-fpm
Can separate modules be installed individually as amendment?
  • Quote

Post by baoang » Thu Mar 15, 2018 1:30 pm

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'?
Last edited by baoang on Fri Mar 16, 2018 3:38 am, edited 1 time in total.
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: Can separate modules be installed individually as amendment?
  • Quote

Post by ScIT » 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.
Top

baoang
Posts: 40
Joined: Fri Feb 23, 2018 7:31 am

Os: CentOS 5x
Web: nginx + php-fpm
Re: Can separate modules be installed individually as amendment?
  • Quote

Post by baoang » Fri Mar 16, 2018 3:19 am

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
http://vestacp.com/pub/vst-install-$type.sh -O vst-install-rhel.sh
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"?
Top

baoang
Posts: 40
Joined: Fri Feb 23, 2018 7:31 am

Os: CentOS 5x
Web: nginx + php-fpm
Re: Can separate modules be installed individually as amendment?
  • Quote

Post by baoang » Sat Mar 17, 2018 10:03 am

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.
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password