Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: andresilva-cc on May 06, 2020, 06:02:30 PM

Title: CWP keeps renaming PHPMyAdmin folder
Post by: andresilva-cc on May 06, 2020, 06:02:30 PM
I know that PHPMyAdmin is stored in /usr/local/cwpsrv/var/services.

After some days, the "pma" folder gets renamed to a backup name, like "pma_28-04-2020.bak" and my customer can't access PHPMyAdmin anymore.
I solve it by making a copy of the .bak folder and renaming it to "pma", but, as I said, after some days it happens again.

How can I prevent this from happening?
Title: Re: CWP keeps renaming PHPMyAdmin folder
Post by: rcschaff on May 06, 2020, 09:35:03 PM
Sound's like CWP File updates might be failing.  you could run an hourly cron to check if pma exists, if not cp .bak to pma as a workaround.

Are any other issues arising after this happens?
Title: Re: CWP keeps renaming PHPMyAdmin folder
Post by: Sandeep on May 07, 2020, 10:43:11 AM
cd /usr/local/cwpsrv/var/services
mv pma_28-04-2020.bak pma
Title: Re: CWP keeps renaming PHPMyAdmin folder
Post by: andresilva-cc on May 07, 2020, 12:42:40 PM
Sound's like CWP File updates might be failing.  you could run an hourly cron to check if pma exists, if not cp .bak to pma as a workaround.

Are any other issues arising after this happens?

It's a good workaround, but it would be better if I could solve it permanently. No, not any other issues as far as I'm aware.

cd /usr/local/cwpsrv/var/services
mv pma_28-04-2020.bak pma

Yes, as I said, I'm making a copy of the folder, but even if I mv it, it would just fix it temporarily.