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.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

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

Admin account creation error


Reply


4 Posts   658 Views

Avatar
sksja81

Community Member, 2 Posts

8 July 2012 at 7:35am

Hi,

when I installed on my webhosting the CMS, I've got the next error:

If you receive a fatal error, refresh this page to continue the installation

Setting up 'mysite/_config.php'...
Setting up /data/j/a/jancarstefan.sk/web/mysite/_config.php
Setting up '.htaccess' file...
Setting up /data/j/a/jancarstefan.sk/web/.htaccess
Building database schema...
Creating default CMS admin account...
Warning: Default CMS admin account could not be created (error: Blowfish password encryption failed.)
Creating initial filesystem assets...
Checking that friendly URLs work...
Friendly URLs set up successfully; I am now redirecting you to your SilverStripe site...

It installed, but I cannot log in as admin. And when I navigate through my site the URL looks like:

http://www.jancarstefan.sk/index.php/bio/

Can somebody help me? I'm newbie.

Many thanks

SJ

Avatar
Willr

Forum Moderator, 5513 Posts

8 July 2012 at 10:43am

Edited: 08/07/2012 6:41pm

Try hard coding an admin user account. Place this in your mysite/_config.php

Security::setDefaultAdmin('admin', 'password');

Avatar
sksja81

Community Member, 2 Posts

8 July 2012 at 6:35pm

Edited: 08/07/2012 6:39pm

Thanks for the answer but in SS3 it doesn't work. But the right solution for SS3 is Security::setDefaultAdmin()

Avatar
Willr

Forum Moderator, 5513 Posts

8 July 2012 at 6:41pm

Sorry, typo in the original post. Hasn't changed between 2 and 3.