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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

Installation halts with "Building database schema...Please enter a username and password."

Go to End

3 Posts   1930 Views


Community Member, 1 Post

24 May 2007 at 11:24pm

I've upgraded my PHP version to 5 and called the SilverStripe install URL. It starts perfectly, but then halts with

Building database schema...Please enter a username and password.

A refresh of the URL doesn't make a difference. The pre-install page confirms it can connect to the database with the root password. Where can I find detailed error info on what goes wrong? Does it miss a PHP library, of MySQL library?

Technical data:
- PHP 5.1.6
- CentOS 3
- Apache 2.0.46
- MySQL 3.23.58


Administrator, 690 Posts

27 May 2007 at 12:05pm

The system is mistakenly securing your site as a test environment. We'll be fixing this up in 2.0.2, but here's what do to

1) Add Director::set_environment_type('dev') to your mysite/_config.php file

2) Visit db/build?flush=1 to create the database

3) Visit db/populate?username=admin&password=password

It should be sorted.


Forum Moderator, 922 Posts

27 May 2007 at 2:23pm

Edited: 27/05/2007 2:25pm

I never knew this existed. Nice, that would be easier than manually editing the database by hand. :-)

I assume db/populate can only be used when the site's in 'dev' mode?