Why Isn't My Php.ini File Taking Effect?

Discussion in 'PHP' started by shuman202, Feb 7, 2013.

  1. #1
    Hello
    i installed PHP Version 5.3.16 on CENTOS 5.9
    i made many editing to the PHP Configuration File php.ini but no effects..
    every time i edit that file i restart the server..
    i have set ignore_repeated_errors to on
    and
    log_errors_max_len to 1024
    but the php engine still writes the repeated errors
    and the error files sometimes reach 1 GB in size
    because i have a php start up error ( i don't have time to investigate about it now) so every time any php page loads the php engine report that error on the erro_log file
    is it bug in that php release or what should i do?
     
    shuman202, Feb 7, 2013 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    Can you tell us what for errors you get? and some releases got multiple php.ini files, check if you got the right one :)
     
    EricBruggema, Feb 8, 2013 IP
  3. shuman202

    shuman202 Well-Known Member

    Messages:
    638
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    145
    Digital Goods:
    1
    #3
    the start up error that i get

    and i get that after i installed the FFmpeg
     
    shuman202, Feb 8, 2013 IP
  4. shubhamm

    shubhamm Member

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    the file is not there check the path again if the file is there or not..
     
    shubhamm, Feb 9, 2013 IP
  5. shuman202

    shuman202 Well-Known Member

    Messages:
    638
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    145
    Digital Goods:
    1
    #5
    yeah this file libswscale.so is not in the folder and searched all the server for this file but couldn't finde it using the following command
    locate libswscale.so
     
    shuman202, Feb 9, 2013 IP
  6. x-man

    x-man Active Member

    Messages:
    212
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #6
    If you want to use locate for some new files on server you first must update db with command:
    updatedb
     
    x-man, Feb 10, 2013 IP
  7. innozemec

    innozemec Active Member

    Messages:
    84
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    68
    #7
    try first installing ffmpeg on the system and then recompile php with ffmpeg support
     
    innozemec, Feb 10, 2013 IP
  8. gavo

    gavo Active Member

    Messages:
    123
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    70
    #8
    In shell type
    updatedb
    locate php.ini

    It will show all locations of php.ini, the one your editing is overridden
    The missing module shouldn't matter unless your using ffmpeg, you can just comment out the line to remove the error, or locate the module and hard code the path in php.ini

    eg locate ffmpeg.so
    to find the path
     
    gavo, Feb 10, 2013 IP