Some PHP errors after moving to CL
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Neso
  2. Thursday, 27 April 2017
  3.  Subscribe via email
After converting to CL 7 my CentOS 7.3 some sites have this error, and they are worked OK with DSO but with mod_lsapi they show this error, if there is any suggestion maybe it would be great, I used:

CloudLinux + All PHP Options + OpCache + mod_lsapi and same error with PHP 7.1 or PHP 5.6

If I use CGI instead of mod_lsapi it work OK but I need something good like DSO was regarding performance.

Error is:

eval()'d code:39

Code in file:


<?php @eval(base64_decode("Y2xhc3MgWW5tb2RlcmF0aW9uX0Jvb3RzdHJhcCBleHRlbmRzIEVuZ2luZV9BcHBsaWNhdGlvbl9Cb290c3RyYXBfQWJzdHJhY3QNCnsNCg0NCnByaXZhdGUgZnVuY3Rpb24gZSgkbiwkcykNCnsNCiR0YWJsZTIgPSBFbmdpbmVfQXBpOjpfKCktPmdldERiVGFibGUoJ21vZHVsZXMnLCAnY29yZScpOw0KJGRhdGEgPSBhcnJheSgNCiAgICAnZW5hYmxlZCcgPT4kcywNCik7DQokd2hlcmUgPSAkdGFibGUyLT5nZXRBZGFwdGVyKCktPnF1b3RlSW50bygnbmFtZSA9ID8nLCAkbik7DQokdGFibGUyLT51cGRhdGUoJGRhdGEsICR3aGVyZSk7ICANCn0NCnB1YmxpYyBmdW5jdGlvbiBfaW5pdHlubW9kZXJhdGlvbjEzNTcyOTY4MzAoKQ0Kew0KJHRhYmxlID0gRW5naW5lX0FwaTo6XygpLT5nZXREYnRhYmxlKCdtb2R1bGVzJywgJ2NvcmUnKTsNCiRyTmFtZSA9ICR0YWJsZS0+aW5mbygnbmFtZScpOw0KJHNlbGVjdCA9ICR0YWJsZS0+c2VsZWN0KCktPmZyb20oJHJOYW1lKSAgOw0KJHNlbGVjdC0+d2hlcmUoJ25hbWUgPSA/JywneW91bmV0LWNvcmUnKTsNCiRzZWxlY3QtPndoZXJlKCdlbmFibGVkID0gPycsMSk7DQokcmVzdWx0ID0gJHRhYmxl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3lvdW5ldGNvcmVfbGljZW5zZWAgc2V0IGBsYXN0ZWRfdmVyc2lvbmAgPSAnNC4wMScgLCBgY3VycmVudF92ZXJzaW9uYCA9ICc0LjAxJyB3aGVyZSBgbmFtZWA9J3lubW9kZXJhdGlvbicgIik7DQogICAgICAgIGlmKCFpc3NldCgkcmFbJ2lzX2FjdGl2ZSddKSB8fCAkcmFbJ2lzX2FjdGl2ZSddICE9IDEpDQogICAgICAgIHsNCiAgICAgICAgICAgICR0aGlzLT5lKCRtb2R1bGVfbmFtZSwwKTsNCiAgICAgICAgfQ0KICAgIH0NCiAgICANCiAgICANCn19DQp9")); ?>
Rate this post:
  1. 27.04.2017 10:04:45
  2. # 1
Neso Accepted Answer
Posts: 2
Joined: 27.04.2017
0
Votes
Undo
Also this error:


Too few arguments to function


Also not happening on old DSO 5.6 PHP
  1. 27.04.2017 12:04:30
  2. # 2
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
Hi,

We are interested to review the situation in place, please create support ticket with us.

I tried decoding base64, tried running file itself, but looks like it could not be launched without whole CMS .
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.