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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   2243 Views

Avatar
Andor

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

Avatar
Sam

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.

Avatar
Sean

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?

Sean