Jump to:

4873 Posts in 7127 Topics by 1471 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » When up loading and installing SilverStripe on to the web server

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: 2767 Views
  • ben_jadue
    Avatar
    Community Member
    6 Posts

    When up loading and installing SilverStripe on to the web server Link to this post

    Greetings,

    When up loading and installing SilverStripe on to the web server, should the entire content of SilverStripe be placed directly into the htdocs, or with in its own separate SilverStripe directory?

    Ben

  • spencerlim
    Avatar
    Community Member
    16 Posts

    Re: When up loading and installing SilverStripe on to the web server Link to this post

    simply upload content to site ,
    example htdoc/silverstripe
    upload thing inside silverstripe to
    public_html/silverstripe content~
    example like
    public_html/index.html
    have a nice day...

  • Yikki
    Avatar
    Community Member
    4 Posts

    Re: When up loading and installing SilverStripe on to the web server Link to this post

    I've installed SilverStripe v2.3.1 locally on Wampserver, happily created all my website content. Now the site is almost ready to move across to the live hosting server. However, this is where I am stuck. I have searched around and come across many threads with answers (http://ssorg.bigbird.silverstripe.com/archive/show/129819#post129819), but still unable to move across successfully.

    I've used phpMyadmin to export ss_mysite.sql then import the sql to live server. Also ftp everything in Silverstripe-2.3.1 to public_html, but when typed in my url to view (www.myurl.org/SilverStripe-v2.3.1) only the following message appears:

    Website Error
    There has been an error
    The website server has not been able to respond to your request.

    Because the error message doesn't indicate what the error is, I have no idea where to start fixing things. Any ideas?

    In the thread it was also suggested rather than copy whole project directory, you can also download a new 'fresh' copy of SS. I've also tried this method, upload the SilverStripe-v2.3.1.tar installer file pbulic_html, however, again stuck on how to install a tar file on a remote web hosting server?

    Any help would be very much appreciated. Thanks.

  • Phill
    Avatar
    Community Member
    75 Posts

    Re: When up loading and installing SilverStripe on to the web server Link to this post

    Hey

    i think i might know where your going wrong, if your uploading the files from your wamp onto the live server you will need to update your database settings to use you live database, the database configeration is normaly stored in /mysite/_config.php

    Also for the installing a tar on the server, you would first need to extract the tar on your local machine and then upload the files to the server

  • Yikki
    Avatar
    Community Member
    4 Posts

    Re: When up loading and installing SilverStripe on to the web server Link to this post

    Hi,
    I've opened up mysite/_config.php, you're right, the following lines seem to point to localhost:

    $databaseConfig = array(
       "type" => "MySQLDatabase",
       "server" => "localhost",
       "username" => "myusername",
       "password" => "mypassword",
       "database" => "SS_mysite",
    );

    I've tried changing "server" => "localhost" to "server" => "www.myurl.org" but no change with the error message. Also, just wonder if there's any tools around so I can get a more helpful error message (rather than just a message saying there's an error...)

    Oh, also thanks for clarify what the 'fresh' installation means - it means ftp/copy across the default site to the live site.

  • Phill
    Avatar
    Community Member
    75 Posts

    Re: When up loading and installing SilverStripe on to the web server Link to this post

    The server is for the database server so it probable wont be www.myurl.org, try checking with your host what your database setting should be,

    Quite often depending on your host the server will be localhost if mysql is running on the same machine as your webserver
    (because to the server that is its localhost)

  • Howard
    Avatar
    Community Member
    215 Posts

    Re: When up loading and installing SilverStripe on to the web server Link to this post

    Just chiming in - you will have to change your database settings but you can be pretty confident to keep 'localhost' there, the important ones are the name and password of the database where you imported your .sql file into as well as the username that can access it.

    The other thing that often causes issues when moving sites is the .htaccess file located in the web root folder, copy and paste the contents of that file to pastie.org and post a link here so we can check it out.

  • Yikki
    Avatar
    Community Member
    4 Posts

    Re: When up loading and installing SilverStripe on to the web server Link to this post

    Thanks guys.
    I finally managed to ftp a clean fresh SS to my hosting server, then slowly copy the changed theme files and import my database across. Everything seem to be working ok. (well had a few issues, like unable to log in to admin area even with correct email and password - thankfully found answers in the forum, had to reset by adding a line in mysite/_config.php)
    Have to say I don't really like working this way, not 100% sure if live site is mirroring the dev site...

    Anyway, moving on, many more issues for a SS newbie to tackle. Currently looking for answers for moving www.mydomain.org/silverstripe to www.mydomain.org. Tried modify file .htaccess
    RewriteBase /SilverStripe
    to
    RewriteBase /
    not working though, just return a page with index of the base url... any ideas?

    2767 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.