Control Web Panel

WebPanel => Updates => Topic started by: kienvictory on May 16, 2020, 02:47:50 AM

Title: Can't update cwp version
Post by: kienvictory on May 16, 2020, 02:47:50 AM
Hello!
I tried update CWP last version but error: CWP Update FAILED Please urgently run update of cwpphp rpm: yum update cwpphp --enablerepo=cwp
I have used the following command sh /scripts/update_cwp and yum update cwpphp --enablerepo=cwp but not work.
It displays the following error:
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Error getting repository data for cwp, repository not found

How to fix it?
Title: Re: Can't update cwp version
Post by: rcschaff on May 16, 2020, 03:01:47 AM
This is for CentOS 7.  If your using 6, should be the same, but change all 7's to 6's

nano /etc/yum.repos.d/cwp.repo

Code: [Select]
[cwp]
name=CentOS Web Panel repo for Linux 7 - $basearch
baseurl=http://repo.centos-webpanel.com/repo/7/$basearch
enabled=1
gpgcheck=0
priority=1
Title: Re: Can't update cwp version
Post by: kienvictory on May 16, 2020, 03:30:43 AM
Hello!
Im using  CentOS 7.7.1908.  :(
Title: Re: Can't update cwp version
Post by: rcschaff on May 16, 2020, 03:55:38 AM
I gave you the answer:

Code: [Select]
nano /etc/yum.repos.d/cwp.repo
add the text from the code block for it's contents.

Code: [Select]
[cwp]
name=CentOS Web Panel repo for Linux 7 - $basearch
baseurl=http://repo.centos-webpanel.com/repo/7/$basearch
enabled=1
gpgcheck=0
priority=1

then run
Quote
yum update