Jump to:

4952 Posts in 14256 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Where can I find php.ini

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

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

Page: 1 2
Go to End
Author Topic: 4823 Views
  • JSD1985
    Avatar
    Community Member
    12 Posts

    Where can I find php.ini Link to this post

    Hello everyone,

    I want to install silverstripe, everything is correct, except I get this message:

    allow_call_time_pass_reference is set to '' in php.ini. You can install with allow_call_time_pass_reference not set, but some warnings may get displayed. For best results, turn it on.

    where can I find php.ini?

    I looked in the root but it wasn't there and also not in the unzipped files.

    Greetz,
    Jeroen

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: Where can I find php.ini Link to this post

    Your php.ini is usually set by your host but you can create one and overide theirs, are you using an online host or is it setup locally on your own machine?

  • JSD1985
    Avatar
    Community Member
    12 Posts

    Re: Where can I find php.ini Link to this post

    I use a online host but I can't find php.ini anywhere on the server. if i create php.ini myself, where should I place it on the server? in the root of my silverstripe directory? Can you put the code of php.ini in a reply or something? Tnx!

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: Where can I find php.ini Link to this post

    ok try this, create a php.ini in your root directory and put this in it:

    allow_call_time_pass_reference = on

    Then in your .htaccess add this line to the top:

    SuPHP_ConfigPath /[your]/[path]/php.ini

    where /[you]/[path]/ is the path from your server's root to your new php.ini file. For example one of mine is /home/aabmsl/public_html/php.ini

    Bear in mind that that will mean all your php settings are run at default except for the ones you set in you new php.ini, but they are probably running at default anyway if you dont already have a php.ini

    For calrification on that Contact your host.

  • JSD1985
    Avatar
    Community Member
    12 Posts

    Re: Where can I find php.ini Link to this post

    Ok,

    I now have a file called php.ini with this code in it:

    <?PHP

    allow_call_time_pass_reference = on;

    ?>

    And i have a file named .htaccess

    SuPHP_ConfigPath /php.ini

    Both files are in the root of my silverstripe folder but now i get this when I want to install silverstripe:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Web Server at jsdstudios.nl

    What can I do about this and what is wrong with php.ini or .htaccess?

    Greetz,
    Jeroen

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: Where can I find php.ini Link to this post

    hmm, well firstly your php.ini file sould not have <?php tags in it, and the line in your .htaccess needs to have the full server path in it, for example /home/username/public_html/php.ini

    I think your best bet at this point is to contact your host and get them to sort it out for you.

  • JSD1985
    Avatar
    Community Member
    12 Posts

    Re: Where can I find php.ini Link to this post

    When I remove .htaccess from my server the installation wizard starts perfectly, but it keeps saying the php.ini error. Something is wrong with .htaccess but I don't know what.

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: Where can I find php.ini Link to this post

    have you actually tried just installing SS and seeing what happens? It's only a warning so it should be fine.

    4823 Views
Page: 1 2
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.