Kiwihosting Support Forum: Installing Silverstripe on HELM Servers - Kiwihosting Support Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Installing Silverstripe on HELM Servers

#1 User is offline   Kiwihost 

  • Group: Admin
  • Posts: 2361
  • Joined: 27-October 02

Posted 21 December 2008 - 10:34 PM

Please use the following .htaccess file when installing SilverStripe

### SILVERSTRIPE START ###
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]
### SILVERSTRIPE END ###


Please also make the following edits/changes to the Silverstripe Files (I've tested this with the current release version 2.2.3
note these changes can be made AFTER installing Silverstripe if you wish.

Edit /sapphire/core/control/Director.php file and change

$s = (isset($_SERVER['SSL']) || isset($_SERVER['HTTPS'])) ? 's' : ";

line to
 $s = (isset($_SERVER['SSL']) || (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')) ? 's' : ";


Edit /sapphire/main.php file and at the very beginning add these lines:
 if (!isset($_SERVER['REQUEST_URI'])) {
 $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
 }

Edit /sapphire/main.php file and change

// Check we have at least 32M
if($memory < (32 * 1024 * 1024)) {
// Increase memory limit
ini_set('memory_limit', '32M');
}

To
// Check we have at least 64M
if($memory < (64 * 1024 * 1024)) {
 // Increase memory limit
 ini_set('memory_limit', '64M');
} 


Finally please ensure you create a directory in the root of your website (if not already created by the installer) called silverstripe-cache
Kiwihosting.net Ltd
NZ Web Hosting Specialists
http://www.kiwihosting.net.nz

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users