Jump to:

4938 Posts in 16602 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » sub-domain installation problems

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: 1539 Views
  • paulie
    Avatar
    Community Member
    5 Posts

    sub-domain installation problems Link to this post

    Hi,

    I installed SS on a subdomain but I seem be having problems.

    I have read many of the archived posts about this but I am not sure which one would be relevant to me.

    I was at first unable to login in IE, but i could login in FF. However, the buttons for the content editor appeared to be missing. I decided to rebuild the database with with db/build?flush=1 - now I cant login at all.

    In addition this, when I simply navigate to my domain without adding /mypage/ to the url or /admin/ I get a 404 error.

    Should I abandon this installation? My main domain does not have a SS installation so i cant use that to run it from

    Is it an HTACCESS issue?

    Here are my config file and ht access files:

    <HTACCESS START--------------------------------------------------------------------------------------->

    ### SILVERSTRIPE START ###
    <IfModule mod_dir.c>
    DirectorySlash Off
    </IfModule>

    <Files *.ss>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    </Files>

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$

    RewriteCond %{REQUEST_URI} ^(.*)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
    </IfModule>
    ### SILVERSTRIPE END ###

    <HTACCESS END--------------------------------------------------------------------------------------->

    <CONFIG START--------------------------------------------------------------------------------------->
    <?php

    global $project;
    $project = 'mysite';

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

    // Sites running on the following servers will be
    // run in development mode. See
    // http://doc.silverstripe.com/doku.php?id=devmode
    // for a description of what dev mode does.
    Director::set_dev_servers(array(
       'localhost',
       '127.0.0.1',
    ));

    // This line set's the current theme. More themes can be
    // downloaded from http://www.silverstripe.com/themes/
    SSViewer::set_theme('oldenglish');
    Security::setDefaultAdmin('admin','password);

    ?>
    <CONFIG END--------------------------------------------------------------------------------------->

    Any help or advice anyone could give would be greatly appreciated.

  • paulie
    Avatar
    Community Member
    5 Posts

    Re: sub-domain installation problems Link to this post

    On checking my server error log JSPARTY was being looked for in my main site root folder, outside of my root SS folder and not in the subdomain file tree. I copied it there and now it works.

  • lxer
    Avatar
    Community Member
    16 Posts

    Re: sub-domain installation problems Link to this post

    I had the same problem. copying jsparty to the root of the main domain seems to work, but it doesn't make sense at all.

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