Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Warning: $project isn't set in

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: 2758 Views
  • eljefe
    Avatar
    Community Member
    3 Posts

    Warning: $project isn't set in Link to this post

    The windows install worked without a hitch. Amazing.
    Not so straightforward with the linux tho.

    Eventually I got all the boxes to come up green, then started the install and I got this?
    Anyone have any ideas?

    # Creating 'mysite/_config.php'...
    # Creating '.htaccess' file...
    # Building database schema...

    Warning: $project isn't set in /var/www/silverstripe-v2.2.1/sapphire/core/ManifestBuilder.php on line 144

    The actual line looks like this:
             user_error("\$project isn't set", E_USER_WARNING);

    Fatal error: DB::connect: Not passed a valid database config in /var/www/silverstripe-v2.2.1/sapphire/core/model/DB.php on line 51

    The actual line looks like this:
             user_error("DB::connect: Not passed a valid database config", E_USER_ERROR);

    I am not sure what "Project" refers to.
    jeff

    Details
    ============
    Ubuntu gutsy gibbon
    (Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6.3 Server at localhost Port 80)
    Mysql 5.0.45

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Warning: $project isn't set in Link to this post

    $project should be set in your _config.php file in the mysite folder. something like $project = 'mysite'; This is were you set the name of the project (by default mysite).

    It looks like your whole _config.php file is a bit broken since thats probably whats giving you the DB error too.

  • eljefe
    Avatar
    Community Member
    3 Posts

    Re: Warning: $project isn't set in Link to this post

    >>$project should be set in your _config.php file in the mysite folder.

    No such file, why might that be?
    I didn't give that folder correct write permissions, thats why !

    Thank you for the help Willr.

    jeff

  • redactuk
    Avatar
    Community Member
    117 Posts

    Re: Warning: $project isn't set in Link to this post

    I get the same set of errors installing v2.2.3 on MySQL 5.067 with PHP 5.2.6

    When does _config.php get created in mysite folder? as it certainly does not exist in default install package.

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Warning: $project isn't set in Link to this post

    It gets created when you run through the installation process - eg running the install.php file

  • redactuk
    Avatar
    Community Member
    117 Posts

    Re: Warning: $project isn't set in Link to this post

    Ok problem solved.

    For anyone getting this problem you need to check when setting Write access to .htaccess and the folders specified in install notes that you also set Excecute access as well. Using CHMOD I first set them to 777 then after install set them back to 755.

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