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, Ed, biapar, Willr, Ingo, swaiba

2.4.5 installation can't connect to database after installing

Go to End



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

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