Skip to main content

Permission Error in index.php

Comments

9 comments

  • cPanelLauren
    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?
    0
  • rsubash_01@
    I have a virus scanner in my C Panel. Can you tell what i need to do with this
    0
  • cPanelLauren
    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?
    0
  • rsubash_01@
    sir i am using clamAV virus scanner. did i need to take a backup of site before proceed to scan files
    0
  • cPanelLauren
    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 # 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!
    0
  • rsubash_01@
    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
    0
  • cPanelLauren
    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.
    0
  • rsubash_01@
    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 :
    sir could you help me to resolve these error as fast as possible pls
    0
  • cPanelLauren
    Hello @rsubash_01@ You're missing the second parameter, you might want to check out something like the following: Warning: file_put_contents() expects at least 2 parameters - But i am giving 2 params
    0

Please sign in to leave a comment.