4577 Posts in 1388 Topics by 1377 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1329 Views |
-
sub-domain installation problems

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--------------------------------------------------------------------------------------->
<?phpglobal $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.
-
Re: sub-domain installation problems

2 January 2009 at 1:49pm Last edited: 2 January 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.
-
Re: sub-domain installation problems

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.
| 1329 Views | ||
|
Page:
1
|
Go to Top |

