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.

Installing SilverStripe /

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

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

Silverstripe will not install on LOCALHOST


Go to End


4 Posts   3234 Views

Avatar
mhdesign

Community Member, 216 Posts

12 November 2009 at 9:34am

After successfully installing a copy of SilverStripe on Localhost and playing about with it, I am trying to install a clean copy for the final site. When running the installer as ROOT user (plus pswd), I am advised that everything 'appears' to be OK'. However when I click 'install' I get the following two errors:

That username/password doesn't work: Access denied for user 'root'@'localhost' (using password: YES); and
I can't create new databases and the database 'SS_mysite' doesn't exist (user 'root' doesn't have CREATE DATABASE permissions.)

Strangely enough, when I log in using system admin user and pswd, I only get the second message...

On a tight deadline and really want to get this running, so any advice is very much appreciated!!

Mac OSX 10.4.11/XAMPP webserver PHP version 5.2.9

Avatar
youngmug

Community Member, 19 Posts

12 November 2009 at 7:19pm

Edited: 12/11/2009 7:20pm

The quickest fix would be to manually create the database and user for the database beforehand. At install, provide that information in the SilverStripe installer, and it should be able to build the database tables needed.

As a general rule, I always follow these steps to help partition databases and permissions for security reasons. Using the "root" user for a website frontend is a very bad idea, especially for a publicly-accessible site.

Avatar
bbudy

Community Member, 3 Posts

12 November 2009 at 8:29pm

Avatar
mhdesign

Community Member, 216 Posts

12 November 2009 at 9:06pm

Thanks for your comment. Point about security taken, although at the moment this is only running on Localhost and is not publicly accessible! Setting up database beforehand and connecting to it does make sense!