Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Installation problem on Bluehost

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 16782 Views
  • Josh
    Avatar
    SilverStripe Developer
    65 Posts

    Installation problem on Bluehost Link to this post

    Hey!

    Successfully installed SS a number of times on my development machine - but problems installing on a Bluehost server.

    Running the install script brings up the mod_rewrite and AllowOverride check screen.

    I contacted Bluehost support and mod_rewrite and AllowOverride are enabled by default on their servers.

    So I forced the rewrite check page to continue with the installation.

    When it tries to redirect to the homepage is displays as follows:

    ip.add.ress/~username/~username/~username/~username/~username/~username/~username/~username/?flush=1

    I cannot figure out a way around this...

    Cheers

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: Installation problem on Bluehost Link to this post

    I'm not familiar with bluehost.

    Do know what webserver is running? Apache? What version?
    Probably not the issue... but what version of PHP is running?

    You could try changing the installed .htaccess file, it might need altering somehow.

  • Carel
    Avatar
    Community Member
    3 Posts

    Re: Installation problem on Bluehost Link to this post

    Subvert,

    Just in case you overlooked this, Bluehost needs to be told to move you to a server with PHP 5. Most of their servers are still on PHP 4

    Carel

  • Josh
    Avatar
    SilverStripe Developer
    65 Posts

    Re: Installation problem on Bluehost Link to this post

    Thanks Carel,

    It turns out Bluehost servers have a max PHP memory_limit of 16MB. SS needs 20MB minimum.

    Cheers,
    Josh

  • RoaringOasis
    Avatar
    Community Member
    3 Posts

    Re: Installation problem on Bluehost Link to this post

    Josh,

    BlueHost's default memory_limit is set to 32M. (at least on their PHP5 servers).
    Also, FYI, BlueHost does allow you to create directory-specific php.ini files, in which you can define a new memory limit. You can also increase the limit by adding

    ini_set('memory_limit', '32M');

    to the sapphire/main.php file.

    One can view the PHP config info by creating a blank file called "phpinfo.php" in your root www directory ('~/public_html/' on BlueHost), inserting

    <?php phpinfo() ?>

    into the file, and then viewing that file in a Browser.

    I just tried installing 2.2.1 today, and encountered the Allowed memory error before it finished installing. I had to increase the memory limit to 96M ( trying other values in the 60's and 80's before doing so ) to get the install, and the subsequent flush, to complete successfully. And even after that, a vanilla install wont run without the limit set >= 48M . Until they can optimize their scripts, many shared-host users like you and I will likely find this a desired, but unattainable solution for our needs.

    16782 Views
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.