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.

Archive /

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


Reply


6 Posts   2834 Views

Avatar
eljefe

Community Member, 3 Posts

22 March 2008 at 11:02am

Edited: 22/03/2008 11:04am

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

Avatar
Willr

Forum Moderator, 5513 Posts

22 March 2008 at 1:41pm

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

Avatar
eljefe

Community Member, 3 Posts

23 March 2008 at 7:43pm

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

Avatar
redactuk

Community Member, 117 Posts

25 November 2008 at 2:12pm

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.

Avatar
Willr

Forum Moderator, 5513 Posts

25 November 2008 at 2:21pm

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

Avatar
redactuk

Community Member, 117 Posts

25 November 2008 at 2:40pm

Edited: 25/11/2008 2:41pm

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.