Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

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

sub-domain installation problems


Go to End


3 Posts   2378 Views

Avatar
paulie

Community Member, 5 Posts

2 January 2009 at 6:40am

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.

Avatar
paulie

Community Member, 5 Posts

2 January 2009 at 1:49pm

Edited: 02/01/2009 1:49pm

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.

Avatar
lxer

Community Member, 16 Posts

14 March 2009 at 2:10am

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.