Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Heartinternet Set-up

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1523 Views
  • Bulldog
    Avatar
    Community Member
    1 Post

    Heartinternet Set-up Link to this post

    WOW. OK so after a couple of hours trying to install Silverstripe on Heartinternet servers I finally have it working so I thought I would share my adventure with anyone who needs it.
    First I unpacked the sofware and uploaded it to my server. Heartinternet used PHP4 and PHP5 so you have to create a '.htaccess file' and add the following code the make the server treat all the files on the software as php5, (SetEnv DEFAULT_PHP_VERSION 5). Save this file and upload it to your server root.
    Next you have to create a database which you can easily do vie the heartinternet control panel but when you do the server automatically changes the db name from (e.g. "silver" to "web123-silver") and you can't remove the shashes as the server automatically replaces tham. So you need to open up "install.php file and at about line 21 look for the following code;

    "// Load database config
    if(isset($_REQUEST['mysql'])) {
    $databaseConfig = $_REQUEST['mysql'];
    } else {
    $databaseConfig = array(
    "server" => "localhost",
    "username" => "",
    "password" => "",
    "database" => "",
    );
    }

    add the username with the slashes that the server changes it to and the password you provided. Use the same username for the database name.

    When you do this you will probably see the message in the install page saying someting like;
    "I have already installed silverstripe. If you continue I will replace the .htaccess file and another one (sorry I forgot which one) continue and it will try to install until you get the mod-rewrite error. If you force continue you will get an error. Well remember that silverstripe replaced the htaccess file so heartinternet thinks it's back in php4 mode. Re-upload your htaccess file and your good to go.

    So in summary.

    1. Create your database on the heartinternet servers making a note of the name and password.
    2. Create a .htaccess file with the following code "SetEnv DEFAULT_PHP_VERSION 5".
    Open the install.php page and at look for the code mentioned above and add your username and password.
    3. Upload all the files to your server.
    4. Open your URL in a browser and follow the instructions.
    5. If you get the mod_rewrite errors, re upload your .htaccess file then force the continue.
    6. All done.

    I hope this makes sense and helps a few issues on the website.

    Thanks guys

    1523 Views
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.