Changing PHP configuration in httpd.conf

Discussion in 'Apache' started by awaken, Jul 2, 2008.

  1. #1
    Hi,

    I'm having some trouble installing shopping cart software for one of my sites. There is one PHP directive (register_long_arrays) that needs to be turned "On" in order for everything to work properly. I'm on a shared server, so I don't have access to php.ini, and when I tried to override using .htaccess, I get a 500 internal error. I do have access to the httpd.conf file, and I think I need to add the AllowOverride function to have the .htaccess override ability. Is that true?

    Also, when adding anything to httpd.conf, does one need to restart the server?

    Thanks for any and all the help.
     
    awaken, Jul 2, 2008 IP
  2. EH Justin

    EH Justin Peon

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Have you tried creating a php.ini in your directory? Even though you're on a shared server, you may be able to create a blank php.ini file in your home directory, then add the wanted value, and it should still work.

    If for some reason that doesn't work you can indeed set the AllowOverride to All and that should give you the ability.
     
    EH Justin, Jul 3, 2008 IP
  3. apachehtaccess

    apachehtaccess Guest

    Messages:
    82
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes you need to restart after modifying httpd.conf

    For using a php.ini see this post.
     
    apachehtaccess, Jul 3, 2008 IP