Jump to content

PHP Files are Corrupt???


webjunk

Recommended Posts

Accessing most things generate a Corrupt files message such as:

 

The file /home/webjunk/public_html/clients/index.php is corrupted

 

The file /home/webjunk/public_html/clients/cart.php is corrupted.

and so on. Even the cron job generates that CRON.PHP is corupt, yet when i look at the files they look complete.

 

Can someone telme what has caused this? Do not want this to come back.

Also do I need to reinstall or copy files from a backup?

 

Thanks...

 

htt://webjunk.com

Link to comment
Share on other sites

Did you just install whmcs or is it an installation that suddenly started giving you those errors?

 

If you just installed or updated it, make sure you are uploading the files in ascii mode and not binary.

 

You should be able to just replace the files that are giving you the error.

 

As to why it happened, you really didn't give enough info to guess at what caused it.

Link to comment
Share on other sites

  • 1 month later...

i have had the same problem. I had WHMCS installed by a member of the WHMCS team recently. All has been fine. I've then made some changes e.g. to the products/services, configurable options and then to the email templates. I came back later to make more changes and every page i go to gives me a "is corrupted" error.

 

I will re-upload files as you say but I would want to fix the problem at its root and not simply patch a solution whenever it happens. I do not know what the cause is and that worries me. I initially thought it was some other aspect of my server setup (and it still could be) but as other people here have the same problem, I'm guessing it must be with WHMCS rather than anything else.

 

edit: any chance it has anything to do with dreamweaver recently being installed on that server? Sometimes these new programs seem to fiddle with every file in every folder. sounds crazy but worth shouting out about

 

Thanks

Edited by kullar
Link to comment
Share on other sites

update: turned out, it was malware on the server! The malware wrote itself to certain files (the .js files within the includes folder - look for an odd document.write statement at the bottom of the iColourpicker.js which points to some odd url). Malware can also infect the index.html files of the rest of your server too. It can insert itself as an <iframe> under the body tags or at the bottom of the page often the iframe points to a url ending in .ru

 

watch out!

 

I figure, if something tries to write itself to certain files within whmcs, the whole application says 'file is corrupt'.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated