Permission Error in index.php
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
-
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 -
I have a virus scanner in my C Panel. Can you tell what i need to do with this 0 -
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 -
sir i am using clamAV virus scanner. did i need to take a backup of site before proceed to scan files 0 -
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 -
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 -
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 -
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 pls0 -
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.
Comments
9 comments