Jump to:

23491 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Create and configure php.ini

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1 2
Go to End
Author Topic: 4529 Views
  • Paco728
    Avatar
    Community Member
    28 Posts

    Create and configure php.ini Link to this post

    Hello people.

    I need to configure php.ini from a host that is free (000webhost) and I cant because this server doesnt have access to such files. Which I would be the correct way to configure it from the cms?
    In this post: "http://silverstripe.org/installing-silverstripe/show/5217?start=8" there is a possible solution, which is to create php.ini and then and call it from .Htaccess. Already tested and not gave me good results. To be more precise I need is to change the status of magic_quotes_gpc to off.

    Following the post I mentioned before this is my code:

    .Htacces

    ### SILVERSTRIPE START ###
    public_html/SilverStripe-v2.4.5/php.ini
    .....

    php.ini

    magic_quotes_gpc = Off

  • ordinarywebguy
    Avatar
    Community Member
    13 Posts
  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: Create and configure php.ini Link to this post

    @Paco728: Cross-post is not permitted.

  • swaiba
    Avatar
    Forum Moderator
    1792 Posts

    Re: Create and configure php.ini Link to this post

    @biapar - where is the rule book? I can't even seen some terms and conditions on the register page

  • biapar
    Avatar
    Forum Moderator
    435 Posts

    Re: Create and configure php.ini Link to this post

    The user posted the same question at same time in 3 sections. I think that this is not a good method.

  • Paco728
    Avatar
    Community Member
    28 Posts

    Re: Create and configure php.ini Link to this post

    Ordinary inserts the probe in Httacces but I think it must be enclosed in tags like the rest of the code for example:

    <IfModule mod_alias.c>
       RedirectMatch 403 /silverstripe-cache(/|$)
    </IfModule>

    <Files web.config>
       Order deny,allow
       Deny from all
    </Files>

    or am I wrong?

    As I am not sure if create it in Httacces. This well placed in this file? or better create php.ini and call instruction from Httacces as shown in the example of the first post?
    I've tried all possible ways and not found good results.

    Biapar as sam said when I read the regulations didnt see any rule that prevents leaving the same message in several forums sorry.

    Attached Files
  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Create and configure php.ini Link to this post

    Paco728 - you may be best to email your host support about this, they are often quite adept at answering questions like this. A custom php.ini file for your site is normally what they setup. magic_quotes_gpc must be set to 0 to 1.

  • Paco728
    Avatar
    Community Member
    28 Posts

    Re: Create and configure php.ini Link to this post

    ok Willr that's what supposed. As another alternative because I could not fix, Can you recommend any other kind of hosting? not have these complications, not having to pay and that is well complemented by ss ?

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