Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » 2.4.5 installation can't connect to database after installing

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

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

Page: 1
Go to End
Author Topic: 905 Views
  • wildflower1975
    Community Member
    59 Posts

    2.4.5 installation can't connect to database after installing Link to this post

    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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.