Author Topic: Cant login to admin after reboot  (Read 4046 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
Cant login to admin after reboot
« on: April 30, 2020, 02:35:50 PM »
I was inside cwp admin.

I saw the message "New cwp ersion available"

i upgraded. it said cwp "up to date"

There was not any issues with CWP.

I rebooted the server.

Now seeing 500 error

https://185.203.118.254:2031/

Somewhere saw a message that it may be due to ssl and run

Quote
sh /scripts/generate_hostname_ssl

Now even SSL error is coming.

Please help

Offline
*****
Re: Cant login to admin after reboot
« Reply #1 on: April 30, 2020, 05:43:29 PM »
Test what is the cwp PHP version and if it is updated to 7.2

/usr/local/cwp/php71/bin/php -v
PHP 7.2.30

if PHP was not updated to 7.2 then try manually
yum update cwpphp --enablerepo=cwp

**Manual update CentOS 7 (ignore if you have CentOS 6)**
```
chattr -i -R /usr/local/cwpsrv/htdocs
cd /usr/local/cwpsrv/htdocs
wget static.cdn-cwp.com/files/cwp/el7/cwp-el7-0.9.8.964.zip
unzip -o -q cwp-el7-0.9.8.964.zip
rm -f cwp-el7-0.9.8.964.zip
```

**Manual update CentOS 6 (ignore if you have CentOS 7)**
```
chattr -i -R /usr/local/cwpsrv/htdocs
cd /usr/local/cwpsrv/htdocs
wget dl1.centos-webpanel.com/files/cwp/cwp2-0.9.8.768.zip
unzip -o cwp2-0.9.8.768.zip
rm -f cwp2-0.9.8.768.zip
```


**Manual update for services (This steep must be done for CentOS 6 and 7)**
```
cd /usr/local/cwpsrv/var/services/
wget static.cdn-cwp.com/files/cwp/el7/cwp-services.zip
unzip -o -q cwp-services.zip
rm -f cwp-services.zip
```

Test if all is ok, it should run update without errors
```
sh /scripts/update_cwp
```

If you get error like:
> Cannot load the ionCube PHP Loader - it was built with configuration API320151012,NTS, whereas running engine is API320170718,NTS

then run this:

```
sed -i "s/ioncube_loader_lin_7.0/ioncube_loader_lin_7.2/g" /usr/local/cwp/php71/php.ini
sh /scripts/restart_cwpsrv
```

Offline
**
Re: Cant login to admin after reboot
« Reply #2 on: May 01, 2020, 05:51:37 AM »
Thank you.

Updating php resolved the issue.