Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Error during Installation

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 2673 Views
  • maunishq
    Avatar
    1 Post

    Error during Installation Link to this post

    Hello everybody.
    I am installing Silverstripe 2.1
    During the installation i am getting the following error:

    If you receive a fatal error, refresh this page to continue the installation
    Creating 'mysite/_config.php'...
    Creating '.htaccess' file...
    Warning: Installer::require_once(core/control/Director.php) [function.Installer-require-once]: failed to open stream: No such file or directory in D:\Webserver\webdhamal.info\www\silver\install.php on line 620
    Fatal error: Installer::require_once() [function.require]: Failed opening required 'core/control/Director.php' (include_path='.;C:\php5\pear') in D:\Webserver\webdhamal.info\www\silver\install.php on line 620

    Can anybody advice me where is the problem.

  • bobloblaw
    Avatar
    1 Post

    Re: Error during Installation Link to this post

    I am getting hang during install. I had this running on an adjacent domain so I know SS works on my server.
    On the other domain I installed 2.1.0 and then updated to 2.1.1 but on the NEW domain I just installed 2.1.1 or am attempting to at any rate...

    Installing SilverStripe...

    I am now running through the installation steps (this should take about 30 seconds)

    If you receive a fatal error, refresh this page to continue the installation
    # Creating 'mysite/_config.php'...
    # Creating '.htaccess' file...
    # Building database schema...

    ---

    Then the install hangs here.

  • joco
    Avatar
    9 Posts

    Re: Error during Installation Link to this post

    i've tried about everything and installed 20 times (i kid you not). mine keeps hanging at the exact same place over and over again. except once, when it told me my memory limit wasn't high enough (at the time it was set to the recommended 32Mb, now it is at 34Mb, but no difference, it still hangs).

    just so you know, you're not alone

  • fassy
    Avatar
    Community Member
    2 Posts

    Re: Error during Installation Link to this post

    Same here... after(?) building the db schema the installation hangs.... Any ideas?

    UPDATE:

    The v2.2.0rc-1 worked fine... - but just once...

    Is there any type of error reporting or log which can be examined? Or what about a manual installation?

    UPDATE2:

    I tracked down the problem to the compileManifest Funktion so far.

    static function compileManifest() {
    // Config manifest
    $baseDir = dirname($_SERVER['SCRIPT_FILENAME']) . "/..";
    $baseDir = ereg_replace("/[^/]+/\\.\\.", "", $baseDir);
    // locate and include the exclude files
    $topLevel = scandir($baseDir);
    foreach($topLevel as $file) {
    ###############here it crashes##############
    $fullPath = $baseDir . '/' . $file;
    [/code ]

  • trevor
    Avatar
    53 Posts

    Re: Error during Installation Link to this post

    I've had problem due to open base directory restriction that could be causing an error.

    the scandir returns . and ../ and so when the is_dir is called the open base directory restriction applies as you are attempting to look outside of the allowed directory.

    I've added if(substr($file,0,1) == '.') continue; in the foreach to prevent this.

    Its also required further down please see my post http://www.silverstripe.com/site-builders-forum/flat/7526?showPost=7567 on this.

    This may or may not help but thought I would share to possibly help.

    Regards

    Trevor

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