Jump to:

1384 Posts in 493 Topics by 522 members

Themes

SilverStripe Forums » Themes » Potential installation issues

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 481 Views
  • Loopy
    Avatar
    Community Member
    20 Posts

    Potential installation issues Link to this post

    I would like to install Silverstripe 2.4.6 in a sub dirctory (folder?) in the root directory of my server i.e. ./newsite1 . I need to be able to do this because I host more than one site on this hosting account. Having looked through the forum I have found some older posts that identify several problems with this approach. The problems seem to be as follows:

    1 doing this makes URL look like mystite.com/newsite1.

       There are suggestions as to how to fix this. One is that you only copy the contents of the silverstripe folder to the sub directory folder. Does this solve the problem and if so should I do this when uploading the files via ftp (before installation) or after installation?

    2 There are various references to the need to add an .htaccess file to the root directory and also to modify the .htaccess and config.php files in Silverstripe but does not specify which .htaccess or config.php files to change (there are several in different folders).

       The posts on the forum were made about a year ago. Have these issue been addressed in version 2.4.6 or do I still need to make changes to get the site to work through a sub directory in the root directory?

    If I still need to make changes can anyone tell me what I need to do in the htaccess files?

    Hoping there is a simple solution to these because Silverstrip looks great for my purposes but my experienc and understanding of htaccess and server settings is not great.

    Thanks

    Appologies but I seem to have posted this in wrong forum and it should have been in installation forum

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Potential installation issues Link to this post

    You should only ever need to edit the .htaccess file in your root directory and the _config.php file in your mysite folder. Editing any of the other core folders is not ideal as it'll make upgrading harder for you later one.

    If you don't want the url to be /newsite1 then yes, one way is to just not store the site in a subfolder. If you want to put it in a subfolder you will need to alter the VirtualHost (if you're on a VPS) to point the DocumentRoot to your new subfolder. Most shared hosts however, you'll be unable to alter the document root.

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