Jump to:

4952 Posts in 14256 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Installing to a subdirectory (solved)

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: 1297 Views
  • nitmd
    Avatar
    Community Member
    2 Posts

    Installing to a subdirectory (solved) Link to this post

    I am trying out silverstripe, and downloaded the file and extracted to my local server. I do not want it in the server root, as I have other projects there, but rather in its own subdirectory. When I do that, I cannot even see the silverstripe directory in the browser, and if I try to go to the silverstripe subdirectory I get a 500 error.

    If I rename the .htaccess file to something else, the directory shows up and I can get to the framework installation page. So it is obviously a setting in the .htaccess file that is the problem. What do I need to change in the .htaccess file to allow silverstripe to work in this setup? I'm running apache under linux.

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Installing to a subdirectory (solved) Link to this post

    The SilverStripe default installation relies on URL Rewriting. It seems like your server doesn't like url-rewriting (mod_rewrite) directives in the .htaccess file. Maybe you should check first if your server is configured in a way that url-rewriting via .htaccess is allowed?

  • nitmd
    Avatar
    Community Member
    2 Posts

    Re: Installing to a subdirectory (solved) Link to this post

    Thanks. mod_rewrite was loaded, but I had to add the following:

    <Directory "/srv/http/silverstripe">
    AllowOverride All
    </Directory>

    to my httpd.conf file

    Although now I can't upload any files, and silverstripe doesn't recognize the png files I manually put in the Uploads directory. Found a thread on the upload issue that involves a patch (over my head what they are talking about), looks like I'll be trying another CMS. Silverstripe looked promising. ..sigh..

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Installing to a subdirectory (solved) Link to this post

    Sorry to hear that SilverStripe didn't meet your expectations. I have never encountered that PNG issue and I installed SilverStripe on multiple machines already...
    Btw.: You can manually add files to the "Upload" folder. After adding the files, you'll have to go to the Files & Images tab in the CMS and press the "Look for new files" Button.

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