SilverStripe Installation
From Fxp Wiki
- The blog module contains an error : two of the php pages start with <? instead of <?php (BlogEntry.php and BlogHolder.php). I mentioned this on the irc channel, and was answered that it is already corrected in the future build.
- mod_rewrite must be enabled in apache
- memory size must be set to 50Mo in php.ini
- curl must be enabled in php.ini for some widgets to work
OVH Silverstripe
Pour de mystèrieuses raisons, Silverstripe ne parvient pas à s'installer correctement sur OVH.
- pas de thème (alors que la css est bien accessible à l'adresse normale)
- impossible d'entrer dans l'administration du site
modifications
- add some more memory to php by inserting this line at the beginning of the files silverstripe/install.php, silverstripe/index.php, silverstripe/sapphire/main.php (just under the <?php):
ini_set('memory_limit', '64M');
- add this line in silverstripe/sapphire/_config.php
Director::setBaseURL("http://www.yourdomain.com/");
- Comment out the cache function in the silverstripe/install.php file (around the line 352)
function requireTempFolder($testDetails) { $this->testing($testDetails);
Insert a line beginning with /*, which means, start of a comment. And eventually, on the same line, add your name (it will be easier later if you want to find the changes that you made).
/* commented FXPif(function_exists('sys_get_temp_dir')) { $sysTmp = sys_get_temp_dir(); } elseif(isset($_ENV['TMP'])) { $sysTmp = $_ENV['TMP']; } else { @$tmpFile = tempnam('adfadsfdas',''); @unlink($tmpFile); $sysTmp = dirname($tmpFile); } $worked = true; $ssTmp = "$sysTmp/silverstripe-cache"; if(!@file_exists($ssTmp)) { @$worked = mkdir($ssTmp);To end the commenting, add a line exactly at this place, with: */ :
*/if(!$worked) { $ssTmp = dirname($_SERVER['SCRIPT_FILENAME']) . "/silverstripe-cache"; $worked = true; if(!@file_exists($ssTmp)) { @$worked = mkdir($ssTmp); } if(!$worked) { $testDetails[2] = "Permission problem gaining access to a temp folder. " . "Please create a folder named silverstripe-cache in the base folder " . "of the installation and ensure it has the adequate permissions"; $this->error($testDetails); } } }Then, comment out the last "}" of the function by squaring it with /* and */ :
/*}*/and here is what goes next, no more changes to be done.
function requireApacheModule($moduleName, $testDetails) { $this->testing($testDetails); if(!in_array($moduleName, apache_get_modules())) $this->error($testDetails); }Date:Apr/17/2008
Categories: Softwares | Internet | Webmaster | Blog
