Jump to:

558 Posts in 3573 Topics by 244 members

Hosting Requirements

SilverStripe Forums » Hosting Requirements » Orange Business Service = Bad

What you need to consider when choosing a hosting provider and plan.

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

Page: 1
Go to End
Author Topic: 967 Views
  • Mauve
    Community Member
    5 Posts

    Orange Business Service = Bad Link to this post

    For some reasons, I'm trying to install silverstripe on a shared host from orange business service in France.

    And it's a bumpy road.

    The service is as basic as can be : 5Gb static storage, 20Mb mysql DB, ftp access only.

    Installing itself is eventless. Ftp the silverstripe tree, run php installer and it's set.

    Almost. Because once you're there, you can't log into the CMS without adding ?isDev=1 to the url, you can't upload pictures (well, you can upload them actually, but you won't see them), and certainly other oddities I haven't spotted yet.

    [edit]I dug into this a bit, and I solved the behavior I had by chmod'ing js files in assets/_combined to 666 ; this solved the admin access issue.[/edit]

    I've read countless docs, and I think the main issue is files are owned by the ftp account (uid ftp, gid ftp) while apache certainly runs under its own uid/gid. When you want to create folders or upload files to the cms, they end up with rwxr_x___ attributes (0750), and when you want to access them from the site, you get a 403 forbidden error.

    So far, I managed to sloppily hack this issue - nearly. I modified saphire/filesystem/Folder.php addUploadToFolder function circa line 249 like this :

    if (move_uploaded_file($tmpFile['tmp_name'], "$base/$file$ext")) {
    $oldumask = umask(0);
    chmod("$base/$file$ext", Filesystem::$file_create_mask);
    // Update with the new image
    return $this->constructChild(basename($file . $ext));
    } else {

    and Filesystem.php (line 26) like this :

    static function makeFolder($folder) {
    if(!file_exists($base = dirname($folder))) self::makeFolder($base);
    if(!file_exists($folder)) {
    $oldumask = umask(0);
    mkdir($folder, Filesystem::$folder_create_mask);


    It sort of works ; folders are created with 775 rights, but files end up with a weird rwx-rwS-r_x permission set. As there is little risk someone will upload executable files, this works enough for me.

    Does anyone have better clues on how to install silverstripe on this kind of config ?


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.