Jump to:

4935 Posts in 16066 Topics by 1488 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Suspicious File Alerts : cache problem?

Getting SilverStripe up and running on your computer and on your web server.

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

Page: 1
Go to End
Author Topic: 1802 Views
  • Semazen
    Avatar
    Community Member
    11 Posts

    Suspicious File Alerts : cache problem? Link to this post

    Installed SilverStripe to try out the acript in a sub-domain, and I'm getting these Suspicious File Alerts from LFD in WHM every hour.

    lfd on host.myhostname.com: Suspicious File Alert

    Time: Mon May 10 09:02:29 2010 +1000
    File: /tmp/silverstripe-cache-home-username-public_html-cms/manifestClassParse-_home_username_public_html_cms_sapphire_forms_ReadonlyTransformation.php
    Reason: Script, file extension
    Owner: nobody:nobody
    Action: No action taken

    Time: Mon May 10 09:02:29 2010 +1000
    File: /tmp/silverstripe-cache-home-username-public_html-cms/manifestClassParse-_home_username_public_html_cms_sapphire_core_model_fieldtypes_ForeignKey.php
    Reason: Script, file extension
    Owner: nobody:nobody
    Action: No action taken

    Time: Mon May 10 09:02:29 2010 +1000
    File: /tmp/silverstripe-cache-home-username-public_html-cms/manifestClassParse-_home_username_public_html_cms_sapphire_core_model_fieldtypes_SSDatetime.php
    Reason: Script, file extension
    Owner: nobody:nobody
    Action: No action taken

    Time: Mon May 10 09:02:29 2010 +1000
    File: /tmp/silverstripe-cache-home-username-public_html-cms/manifestClassParse-_home_username_public_html_cms_sapphire_forms_CheckboxSetField.php
    Reason: Script, file extension
    Owner: nobody:nobody
    Action: No action taken

    Time: Mon May 10 09:02:29 2010 +1000
    File: /tmp/silverstripe-cache-home-username-public_html-cms/manifestClassParse-_home_username_public_html_cms_sapphire_security_MemberLoginForm.php
    Reason: Script, file extension
    Owner: nobody:nobody
    Action: No action taken

    Time: Mon May 10 09:02:29 2010 +1000
    File: /tmp/silverstripe-cache-home-username-public_html-cms/manifestClassParse-_home_username_public_html_cms_sapphire_parsers_BBCodeParser.php
    Reason: Script, file extension
    Owner: nobody:nobody
    Action: No action taken

    Time: Mon May 10 09:02:29 2010 +1000
    File: /tmp/silverstripe-cache-home-username-public_html-cms/manifestClassParse-_home_username_public_html_cms_sapphire_core_i18n.php
    Reason: Script, file extension
    Owner: nobody:nobody
    Action: No action taken

    Time: Mon May 10 09:02:29 2010 +1000
    File: /tmp/silverstripe-cache-home-username-public_html-cms/manifestClassParse-_home_username_public_html_cms_sapphire_widgets_WidgetArea.php
    Reason: Script, file extension
    Owner: nobody:nobody
    Action: No action taken

    Time: Mon May 10 09:02:29 2010 +1000
    File: /tmp/silverstripe-cache-home-username-public_html-cms/manifestClassParse-_home_username_public_html_cms_sapphire_email_QueuedEmailDispatchTask.php
    Reason: Script, file extension
    Owner: nobody:nobody
    Action: No action taken

    Time: Mon May 10 09:02:29 2010 +1000
    File: /tmp/silverstripe-cache-home-username-public_html-cms/manifestClassParse-_home_username_public_html_cms_sapphire_parsers_TextParser.php
    Reason: Script, file extension
    Owner: nobody:nobody
    Action: No action taken

    Looks like something to do with cache. Is a cache folder missing or something?

    Thanks

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Suspicious File Alerts : cache problem? Link to this post

    Looks like you have some sort of software checking for (potentially) malicious files in your tmp directory. There isn't anything wrong as such - SilverStripe creates these files to speed up execution - but if you can't turn off the warnings you can manually set the SilverStripe cache directory with:

    define('TEMP_FOLDER', 'some-web-writeable-temp-folder');

  • Semazen
    Avatar
    Community Member
    11 Posts

    Re: Suspicious File Alerts : cache problem? Link to this post

    Thanks Hamish

    Thanks for the tip. Yes, we're using ConfigServer Security & Firewall http://www.configserver.com/cp/csf.html on WHM, which impacts all hosting accounts.

    So, just to confirm, we change:

    if(!defined('TEMP_FOLDER')) {
       define('TEMP_FOLDER', getTempFolder());
    }

    to

    if(!defined('TEMP_FOLDER')) {
       define('TEMP_FOLDER', '/full/path/to/the/temp/directory');
    }

    Is that right?

    Thanks again

    Michael

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Suspicious File Alerts : cache problem? Link to this post

    Would work, but better not to hack the core and use Environment Management instead. Just create a _ss_environment.php to sit in your SS root folder and put the line there.

  • Semazen
    Avatar
    Community Member
    11 Posts

    Re: Suspicious File Alerts : cache problem? Link to this post

    Brilliant. Thanks Hamish.

    1802 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.