Jump to:

23378 Posts in 18298 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » /sapphire/dev/ folder spontaneously disappearing?

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 920 Views
  • EelkeSpaak
    Avatar
    Community Member
    4 Posts

    /sapphire/dev/ folder spontaneously disappearing? Link to this post

    Over the last few days, I have encountered a serious problem with two silverstripe sites I am managing. It seems like the installation's /sapphire/dev/ folder is spontaneously disappearing or being deleted or something. This leads to a completely non-functional website, either just giving me a blank page, or a fatal error message stating that class Debug could not be found. Simply re-uploading the dev folder and running a ?flush=1 does the trick and everything is back to normal.

    As you can imagine, I find this problem quite disturbing. The folder seems to disappear at a time at which no one is using the CMS. Probably (since one of the sites receives very little visitors, and the other one is not live yet) no one is even visiting the frontend site at that time.

    Does anyone have any idea as to how this could have occurred? Maybe my hosting provider is screwing around (though that is very, very, unlikely -- many years of faithful service)?

    The issue occurred with silverstripe versions 2.3.2 and 2.3.3 running on a Linux/Apache system with PHP 5.2.6 installed.

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: /sapphire/dev/ folder spontaneously disappearing? Link to this post

    Who has write access to your installation files?

    If the www-data user has write access I would be concerned about the possibility that your site had been hacked.

    It might be a good idea to pull all your core files back and diff them to a fresh copy and make sure nothing else had been modified.

    Also, if you're not regularly backing up the database, start doing so now. Maybe review the content for any changes and have a look at your apache logs to see if there is anything obviously suspicious.

    Finally, if you're happy that the database hasn't been messed with, create a fresh installation on your site, lock down file permissions and reload your database. Better yet, upgrade both sites to 2.3.4.

    It could be something silly like your host created a cron job that removes dev/ folders for internal security reasons (maybe?) so might be worth checking with them too.

    920 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.