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

2.4.5 installation can't connect to database after installing


Go to End


1397 Views

Avatar
wildflower1975

Community Member, 63 Posts

7 April 2011 at 1:39pm

Edited: 07/04/2011 3:31pm

I can run the install.php script and the mysite database is created and I'm told the mod_rewrite module isn't installed (i can handle that),

but when I go back to index.php I'm redirected to install.php (even after emptying the cache), it appears the install script is triggered if there isn't a live DB connection .

The install script accepts my username and password and confirms the database connection is good.

It's like Apache can't read _config.php even though it's owned by www-data, or if it does read it, it throws the DB details away.

The install script complains that Silverstripe is already installed because it can see mysite/_config.php bt it don't/can't use it.

I'm installing on Ubuntu 10.04
cheers
Haydn

I think it's something to do with the symlink I've put in place.
I've installed (unpacked) SilverStripe-v2.4.5 to /usr/local/apps and put a ln -s in /var/wwwsilverstripe which points to /usr/local/apps/Silverstripe-v2.4.5

the install goes well but viewing it first off doesn't.

I want to use symlinks because I want to run multiple sites of the 1 install like I have on 2.4.0 on my production server running Debian.

I might have fixed it by setting the ServerName for my Localhost in the httpd.conf as per here
http://aslamnajeebdeen.com/blog/how-to-fix-apache-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127011-for-servername-error-on-ubuntu