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

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


Reply


3 Posts   1619 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, 685 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