CWP admin login to white blank page

Started by asilweb, August 30, 2019, 12:46:12 PM

Previous topic - Next topic

asilweb

https://my-ip:2030/

When I enter, it opens a white blank page and also does not open web pages at all.

evansa

check logs from /usr/local/cwpsrv/logs/error_log

overseer

I am now encountering this exact issue on one of my 3 CWP Pro servers. I can view the hosted websites, login to webmail and via SSH. But attempting to load the CWP Pro Admin panel only shows a blank white screen. Thus far I have been able to determine that the /scripts directory is full of empty files, so it is not possible to do a CWP update by that means:

ls -al /scripts/scripts
total 12
drwxr-x---  2 root root 4096 Aug 27 08:23 .
drwxr-x---. 3 root root 4096 Aug 27 08:23 ..
-rwxr-xr-x  1 root root    0 Aug 27 08:23 add_alert
-rwxr-xr-x  1 root root    0 Aug 27 08:23 apache_mpm_calculator
-rwxr-xr-x  1 root root    0 Aug 27 08:23 autossl_fix_tmp_path
-rwxr-xr-x  1 root root    0 Aug 27 08:23 autossl_generate_apache_conf
-rwxr-xr-x  1 root root    0 Aug 27 08:23 autossl_reload
-rwxr-xr-x  1 root root    0 Aug 27 08:23 cgroups_blkio
-rwxr-xr-x  1 root root    0 Aug 27 08:23 check_api
-rwxr-xr-x  1 root root    0 Aug 27 08:23 check_postqueue
-rwxr-xr-x  1 root root    0 Aug 27 08:23 checkdb
-rwxr-xr-x  1 root root    0 Aug 27 08:23 chroot_remove
-rwxr-xr-x  1 root root    0 Aug 27 08:23 clamd_fix_100_cpu_usage
-rwxr-xr-x  1 root root    0 Aug 27 08:23 cpanel_addhandlers
-rwxr-xr-x  1 root root    0 Aug 27 08:23 cwp_api
-rwxr-xr-x  1 root root    0 Aug 27 08:23 cwp_bruteforce_protection
-rwxr-xr-x  1 root root    0 Aug 27 08:23 cwp_monitor
-rwxr-xr-x  1 root root    0 Aug 27 08:23 cwp_set_memory_limit
-rwxr-xr-x  1 root root    0 Aug 27 08:23 cwp_version
-rwxr-xr-x  1 root root    0 Aug 27 08:23 cwpsecure_update_rules
-rwxr-xr-x  1 root root    0 Aug 27 08:23 cwpsrv_rebuild_user_conf
-rwxr-xr-x  1 root root    0 Aug 27 08:23 disk_check
-rwxr-xr-x  1 root root    0 Aug 27 08:23 dns_sync_slave2
-rwxr-xr-x  1 root root    0 Aug 27 08:23 dso_handler_remove
-rwxr-xr-x  1 root root    0 Aug 27 08:23 el8_stream_convert_to_cwp_stable
-rwxr-xr-x  1 root root    0 Aug 27 08:23 generate_hostname_ssl
-rwxr-xr-x  1 root root    0 Aug 27 08:23 hostname_ssl_restart_services
-rwxr-xr-x  1 root root    0 Aug 27 08:23 image_rebuild_server_config
-rwxr-xr-x  1 root root    0 Aug 27 08:23 install_acme
-rwxr-xr-x  1 root root    0 Aug 27 08:23 install_api
-rwxr-xr-x  1 root root    0 Aug 27 08:23 install_cbpolicyd
-rwxr-xr-x  1 root root    0 Aug 27 08:23 install_imagick
-rwxr-xr-x  1 root root    0 Aug 27 08:23 install_net2ftp
-rwxr-xr-x  1 root root    0 Aug 27 08:23 install_netdata
-rwxr-xr-x  1 root root    0 Aug 27 08:23 install_pure-ftpd_tls
-rwxr-xr-x  1 root root    0 Aug 27 08:23 install_supportKey
-rwxr-xr-x  1 root root    0 Aug 27 08:23 install_terminal
-rwxr-xr-x  1 root root    0 Aug 27 08:23 list_subdomains
-rwxr-xr-x  1 root root    0 Aug 27 08:23 mysql_fix_myisam_tables
-rwxr-xr-x  1 root root    0 Aug 27 08:23 mysql_set_max_connections
-rwxr-xr-x  1 root root    0 Aug 27 08:23 mysql_show_max_connections
-rwxr-xr-x  1 root root    0 Aug 27 08:23 net_show_connections
-rwxr-xr-x  1 root root    0 Aug 27 08:23 open_basedir-suphp
-rwxr-xr-x  1 root root    0 Aug 27 08:23 php_big_file_upload
-rwxr-xr-x  1 root root    0 Aug 27 08:23 reload_cwpsrv
-rwxr-xr-x  1 root root    0 Aug 27 08:23 restart_cwpsrv
-rwxr-xr-x  1 root root    0 Aug 27 08:23 restart_httpd
-rwxr-xr-x  1 root root    0 Aug 27 08:23 security_is_my_server_hacked
-rwxr-xr-x  1 root root    0 Aug 27 08:23 softaculous_fix_update
-rwxr-xr-x  1 root root    0 Aug 27 08:23 stats_goaccess
-rwxr-xr-x  1 root root    0 Aug 27 08:23 system_info
-rwxr-xr-x  1 root root  0 Aug 27 08:23 update_cwp
-rwxr-xr-x  1 root root    0 Aug 27 08:23 upgrade_mysql
-rwxr-xr-x  1 root root    0 Aug 27 08:23 user_backup
-rwxr-xr-x  1 root root    0 Aug 27 08:23 varnish_clear_cache
-rwxr-xr-x  1 root root    0 Aug 27 08:23 whoowns

I SCP'd that directory over from another CWP server. However, seeing that the update_cwp script is calling a cron run of another script, then I noticed that this directory is also empty!
/usr/local/cwpsrv/htdocs/resources/admin/include/
So the CWP update run via cron will never complete because thie file it calls doesn't exist:
/usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php
What is my best course of recovery? Is there a way to manually re-update CWP without having to start over from scratch?

overseer

So, now just like this other post:
https://forum.centos-webpanel.com/index.php?topic=7380.0
I am seeing the exact same error:

sh /scripts/update_cwp


====================================================
============= CentOS Web Panel Cron ================
====================================================


###########################
Firewall Flush Daily Blocks
###########################


######################
Update Server Packages
######################
PHP Warning:  mysqli_connect(): (HY000/1045): Access denied for user 'postfix'@'localhost' (using password: YES) in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0
PHP Fatal error:  Uncaught Error: Call to undefined function mysql_countRows() in /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php:0
Stack trace:
#0 {main}
  thrown in /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php on line 0

rafpelegri

Hi.
I got the same error. The link above didn't help.

How did you fix it?

The admin page is blank.
When i try to update_cwp, got the same error of undefined function mysql_countRows()

rcschaff

Google Hangouts:  rcschaff82@gmail.com


rcschaff

Sure.  Use whatever the latest version available.  I wasn't going hunting for the latest version :)
Google Hangouts:  rcschaff82@gmail.com

nguyentrunghoa

I'm getting the same problem!
I have done with all guide above, but can't fix it.
Please help me check and fix!
Thank you in advanced,

DaveF

#9
Just got hit with this issue got the ADMIN panel working but the user panel is still all white. Anyone find a good solution?

This did it: https://forum.centos-webpanel.com/index.php?topic=9136.msg32002#msg32002

-Dave