Jump to:

4873 Posts in 7242 Topics by 1471 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Is ini_set required for installation

Getting SilverStripe up and running on your computer and on your web server.

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

Page: 1
Go to End
Author Topic: 1147 Views
  • EdP
    Avatar
    Community Member
    11 Posts

    Is ini_set required for installation Link to this post

    I have the following disabled in php.ini for security reasons on our live server:

    disable_functions = "show_source, system, shell_exec, passthru, exec, popen, proc_open, allow_url_fopen, eval, parse_ini_file, dl, ini_set"

    I see this error when I run install.php but have not yet progressed further:

    Warning: ini_set() has been disabled for security reasons in C:\wamp\www\silverstripe\install.php on line 19

    Am I likely to have problems installing Silverstripe?

    Ed

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Is ini_set required for installation Link to this post

    Doing a quick check on 2.4 ini_set is called roughly a dozen times. Do a global search on your project, you should be able to get away with using SS since most of the references to it are in tests or functions which aren't critical.

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Is ini_set required for installation Link to this post

    ini_set() is used for example, to increase the PHP memory limit for SilverStripe.

    I'd try re-enable this function if you can, there's bound to be a lot of places in the code that relies on it being enabled. You could get away with scouring the code base to remove these ini_set(), but I can't guarantee it's going to work properly on your server if you do.

    Having exec() disabled is also probably going to cause you problems, as there's a few places it's used in the code as well.

    Sean

    1147 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.