Author Topic: HTTP ERROR 500 on admin  (Read 134 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
HTTP ERROR 500 on admin
« on: May 05, 2020, 09:08:50 PM »
PHP Warning:  PHP Startup: Unable to load dynamic library 'pgsql.so' (tried: /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/pgsql.so (/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/pgsql.so: cannot open shared object file: No such file or directory), /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/pgsql.so.so (/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/pgsql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_pgsql.so' (tried: /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/pdo_pgsql.so (/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/pdo_pgsql.so: cannot open shared object file: No such file or directory), /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/pdo_pgsql.so.so (/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/pdo_pgsql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Fatal error:  The file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP 7.1 or later.
 Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1. in Unknown on line 0


i can't open my admin also update not working
anyone help me how to fix this problem

Offline
***
Re: HTTP ERROR 500 on admin
« Reply #1 on: May 06, 2020, 01:28:49 AM »
Code: [Select]
Hello,

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.961.zip
unzip -o -q cwp-el7-0.9.8.961.zip
rm -f cwp-el7-0.9.8.961.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.765.zip
unzip -o cwp2-0.9.8.765.zip
rm -f cwp2-0.9.8.765.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

This has been posted to the forum at least 20 times. But here you go...
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: HTTP ERROR 500 on admin
« Reply #2 on: May 07, 2020, 05:39:07 PM »
Thank you for help me now admin open and my server working fine