>>  Site Map >>  Forums >>  Post Installation Help

Forum module - topics in forum:



Post Installation Help - Help with problems after installation.



Fatal Error on site

I had my clans website hacked the other day and after uploading fresh files and overwriting the hacked ones i thought that would have done the trick but now every time i go onto the site the following error comes up and i dont know wat to do now.

Warning: main(mainfile.php): failed to open stream: No such file or directory in /home/tsc/public_html/index.php on line 15

Fatal error: main(): Failed opening required 'mainfile.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tsc/public_html/index.php on line 15

Can anyone hepl me with this error and how to fix it.

Razor






First off what version of nuke?

Secondly I hope you have a backup of your database. Because overwriting files won't even come close to fixing what was hacked... How was the site hacked was the DB injected of was the FTP Bruteforced and something placed in it like an index.html file. Im guessing the DB was injected in which case it will have to be redone from a backup if you have one or if you are savy enough you can go through it look for the damage and replace it.

I think you may have wasted your time overwriting the original files, chances are they weren't damaged.

When a site is hacked it is not through the files in the site but through the MySQL database.






Nuke Version 7.8

The files that were hacked the first time were in the root folder, and i simply deleted the hacked files and uploaded original ones and that got my website back up and running. But it got hacked again and this time it was files in the db folder that were hacked. So i uploaded original files and deleted the hacked ones and that worked ok. At that point i also had Nuke Sentinel installed and Patch 3.1. It then got hacked again and, but this time the file in the public_html folder were hacked. I then got original ones for that folder and uploaded them, and deleted the hacked ones, and that is when i got this error. I do have back ups of the databases, b4 it alll started getting hacked. I had help from a friend with getting the site back up after it got hacked and he said to just upload the original files and delete the hacked files and like i said that worked for the first 2 times, but didnt know wat was wrong when this error came up when we deleted the files from public_html folder and uploaded new ones.

Any ideas?

Razor






If you have 7.7 plus, Nuke Patched 3.1 or better and Sentinel there isn't much you can do sorry to say, There are MANY known security holes in these versions that are being caused by the poorly implimented WYSIWYG Editor. These problems are well documented and no turning off the WYSIWYG Editor will not supplant the problems.

If someone is getting to your site at the root level then your host has some serious security issues.

Now for your problem what the error is trying to tell you is the mainfile.php is either missing or incorrectly chmodded it should be 644 also make sure it is present.

Another thing to look for.. Empty whitespace at the end of the config.php file after the closing ?>






The main.php file is in the root directory and is chmodded at 644.

The config.php file has no whitespace after the closing ?>

And i still get the error.

Any more ideas? Would it be worth u having a look at any files, to see if u can see anything wrong with them?

Razor






If you want you can PM me your FTP and CPanel info and I will take a peek.




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS