Jump to:

23552 Posts in 19349 Topics by 2891 members

General Questions

SilverStripe Forums » General Questions » ManifestBuilder.php is scanning entire filesystem

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: 636 Views
  • micahsheets
    Avatar
    Community Member
    164 Posts

    ManifestBuilder.php is scanning entire filesystem Link to this post

    I just uploaded my site to a linux server running Fedora and Virtualmin. When I attempted to view the site I got a blank screen. I looked at the apache error log and found that there were files that had permissions problems. To find out exactly what files/folders were causing the problem I added

    echo ("<p>$baseDir/$folder</p>");

    to the getTemplateManifest function and looked at the site again. I noticed that the directories it was scanning started at the system root and looked into all the folders including etc, var, and so on. I suspect that this is not supposed to happen.

    I cannot find where $baseDir is being set before it is passed to the function to try and determine why it is not starting with the site document root.

    This may be an apache configuration issue although I have run SS sites on Virtualmin/apache before without problems.

    Edit: I have found that this server config does not return any values for $_SERVER['SCRIPT_FILENAME'] which really messes things up. I am talking with the hosting company about making sure this variable is available.

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