Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.


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

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

Warning: $project isn't set in


6 Posts   2770 Views


22 March 2008 at 11:02am (Last edited: 22 March 2008 11:04am), Community Member, 3 Posts

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.

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


22 March 2008 at 1:41pm Forum Moderator, 5511 Posts

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


23 March 2008 at 7:43pm Community Member, 3 Posts

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



25 November 2008 at 2:12pm Community Member, 117 Posts

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.


25 November 2008 at 2:21pm Forum Moderator, 5511 Posts

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


25 November 2008 at 2:40pm (Last edited: 25 November 2008 2:41pm), Community Member, 117 Posts

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.