Control Web Panel

WebPanel => Updates => Topic started by: ekgrad on May 17, 2020, 06:26:28 AM

Title: CWP-PRO showing message "Can't check updates!" on dashboard
Post by: ekgrad on May 17, 2020, 06:26:28 AM
I am getting a message  "Can't check updates!" on dashboard in place of the regular message "CWP up to date" or "Update Available".

I tried to run the script /scripts/cwp_update but I am getting these messages

######################
Update Server Packages
######################
PHP Warning:  file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php on line 0
PHP Warning:  file_get_contents(http://centos-webpanel.com/webpanel/versions/el7.txt): failed to open stream: no suitable wrapper could be found in /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php on line 0
PHP Notice:  Undefined offset: 1 in /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php on line 0
PHP Warning:  file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php on line 0
PHP Warning:  file_get_contents(http://static.cdn-cwp.com/files/apache/mod-security/cwaf_latest_installed.txt): failed to open stream: no suitable wrapper could be found in /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php on line 0
Redirecting to /bin/systemctl restart cwpsrv.service
Redirecting to /bin/systemctl restart httpd.service
Redirecting to /bin/systemctl reload httpd.service

On checking I found that allow_url_fopen is set to On in all my php.ini and php-fpm73 php.ini

Please explain what is going on or a solution to this issue.
Title: Re: CWP-PRO showing message "Can't check updates!" on dashboard
Post by: rcschaff on May 17, 2020, 06:37:19 AM
need to look at the php.ini in /usr/local/cwp/php71/php.ini

also try;
yum update cwp-phpfpm
systemctl restart cwp-phpfpm
Title: Re: CWP-PRO showing message "Can't check updates!" on dashboard
Post by: ekgrad on May 17, 2020, 06:44:36 AM
There is nothing in yum to update as you suggested.

BTW I have
37.187.72.216
198.27.104.40
167.114.21.226
in my firewall allow list.
Title: Re: CWP-PRO showing message "Can't check updates!" on dashboard
Post by: ekgrad on May 17, 2020, 06:55:49 AM
It seems  php.ini in /usr/local/cwp/php71/php.ini was the culprit where allow_url_fopen was set to off. I switched it to On and those warning messages on running the update_cwp script are gone now and the status box on cwp dashboard also now shows "CWP up to date"

Thank you @rcschaff