Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Publishing my website on the server??

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

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

Page: 1 2 3
Go to End
Author Topic: 38533 Views
  • Pallas Athena
    Avatar
    Community Member
    18 Posts

    Publishing my website on the server?? Link to this post

    PLease help me, a totally beginner at hardware etc.. I have made a website with the help og Silverstripe and I tried to publish it on my webhotel. But nothing happens! Am I suppose to do something else? The address is www.lokka.se if that is to any help..

  • Pixel
    Avatar
    Community Member
    78 Posts

    Re: Publishing my website on the server?? Link to this post

    Have you put all of the files into the httpdocs folder, including the invisible .htaccess?
    Also have you added your database to the server?

  • Pallas Athena
    Avatar
    Community Member
    18 Posts

    Re: Publishing my website on the server?? Link to this post

    I just uploaded all the files in my Silverstripe-folder with the help of a ftp-program. I have an database made through the webhost, but I don´t know how to connect it to the Silverstripe site? Should I place the files in the www-folder or at the top?
    Thanks for your help.. :-?

  • Pixel
    Avatar
    Community Member
    78 Posts

    Re: Publishing my website on the server?? Link to this post

    Ok, is the .htaccess file uploaded aswell? You probably wont be able to see it through a ftp but if you can log into your server control panel, choose the domain that the files are in and click on files then navigate to the htdocs - you should be able to see it there.

    If there is not one, then you will need to show hidden files on your computer, locate the local site folders (ie the one built offline) and you will be able to see the .htaccess file, open this up in any word processor and copy the contents.

    Next back in your server admin panel you want to create a new file in the files folder, call it .htaccess and paste the content into it and then save the new file.

    Once that is done, you need to export the files that are inside your sites database from your local server WAMP/MAMP onto your desktop.
    Then back in your servers admin you want to create a new database with the same name, user and password as your local site, select the database and then import the file that is on your desktop.

    Visit your sites url, run a db/build?flush=1 and then your site should be there

  • Blackdog
    Avatar
    Community Member
    156 Posts

    Re: Publishing my website on the server?? Link to this post

    another thing to watch out for with your htaccess file is that it is pointing to the right folder.

    if you have developed the site locally you might find the htaccess file which was generated on the install does not suit your server.

    Take a look for the following line in the htaccess file and make sure it is correct.

    RewriteEngine On
    RewriteBase /path/to/your/root/directory

    more ftp clients will let you do some filtering to see files prefixed with a fullstop.

    if you are on PC, SmartFTP shows them by default & Cuteftp will require you turn on the filter with -L-a under the server side filtering options.

  • Pixel
    Avatar
    Community Member
    78 Posts

    Re: Publishing my website on the server?? Link to this post

    If your on a mac download this show/hide application

    http://www.macupdate.com/info.php/id/22318

    works a treat

  • Mishy
    Avatar
    Community Member
    24 Posts

    Re: Publishing my website on the server?? Link to this post

    I have been having the same problems. I have sorted out the .htaccess file but not sure how to sort out the database problem. Any help greatly appreciated. Thanks.

    Pixel wrote:
    "Ok, is the .htaccess file uploaded aswell? You probably wont be able to see it through a ftp but if you can log into your server control panel, choose the domain that the files are in and click on files then navigate to the htdocs - you should be able to see it there.

    If there is not one, then you will need to show hidden files on your computer, locate the local site folders (ie the one built offline) and you will be able to see the .htaccess file, open this up in any word processor and copy the contents.

    Next back in your server admin panel you want to create a new file in the files folder, call it .htaccess and paste the content into it and then save the new file.

    Once that is done, you need to export the files that are inside your sites database from your local server WAMP/MAMP onto your desktop.
    Then back in your servers admin you want to create a new database with the same name, user and password as your local site, select the database and then import the file that is on your desktop.

    Visit your sites url, run a db/build?flush=1 and then your site should be there"

  • Pallas Athena
    Avatar
    Community Member
    18 Posts

    Re: Publishing my website on the server?? Link to this post

    I feel so stupid, but I´m stuck.. :-/ I sorted out the .htaccess-problem. But now then? How do I export the database-files? As usual in the ftp? Through my control panel I created a MySql-database. But it is not visible through the ftp? How do I do? PLease, help me!? Thank you so much!

    38533 Views
Page: 1 2 3
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.