Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » v2.0 stable Install problem

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: 1685 Views
  • kenlomax
    Avatar
    Community Member
    33 Posts

    v2.0 stable Install problem Link to this post

    When trying to install v2.0 stable the installaton gets to

    Installing SilverStripe...

    I am now running through the installation steps (this should take about 30 seconds)
    # Creating 'assets' folder...
    # Creating 'mysite/_config.php'...
    # Creating '.htaccess' file...
    # Building database schema...
    # Waiting until the the database is created before compiling the manifest

    Fatal error: Cannot redeclare class db in /var/www/html/silverstripe20/sapphire/core/model/DB.php on line 7

    THe installation then stops and nothing seems to get it to go any further.

    Ken

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: v2.0 stable Install problem Link to this post

    What version of PHP are you using?
    Have you defined a class called "db" yourself?

  • kenlomax
    Avatar
    Community Member
    33 Posts

    Re: v2.0 stable Install problem Link to this post

    I am using php version 5.1.6 and I have not created a db class

    Ken

  • Andy
    Avatar
    230 Posts

    Re: v2.0 stable Install problem Link to this post

    Perhaps you have the PEAR db package installed?

  • kenlomax
    Avatar
    Community Member
    33 Posts

    Re: v2.0 stable Install problem Link to this post

    Thanks to sterling work done by Sam, this problem has been solved.

    What happened is that I created a new folder in my web document tree (/var/www/html/silverstripe20) and copied the php installer tarball into it.

    I then unpacked the tarball and it created a folder at the same level called silverstripe-v2.0. As I did not want to use a long hierarchy of directories to call SilverStripe I copied all the files out of the new folder to the parent folder and then tried to install there.

    The message shown in the previous post was caused because the installer did not ignore the silverstripe-v2.0 folder but went down into it. By the sound of the error message, it tried to use sapphire etc files in that subfolder also.

    The fix was to delete the subfolder. I also deleted the tarball there as well (I have a separate copy saved on my machine should I need it later)

    All fixed

    (Is this something that should be incorporated in the next installer-a check for a silverstripe subfolder? Would there be a valid reason for having a folder with such a name in the lifecycle of the CMS? )

    Once again, thanks to Sam for his assistance

    Regards
    Ken

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: v2.0 stable Install problem Link to this post

    Happy to help, Ken

    You're right, we should add a check for this. I've put it on the to-do list for v2.1.

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