changes in php.ini file not reflecting on phpinfo

Discussion in 'Site & Server Administration' started by nandanamnidheesh, Jan 31, 2012.

  1. #1
    Hi i hope this is the right place to ask such a question.

    VPS server connected though SSH

    I am trying to change the “upload_max_filesize” from 2MB to 20 MB. I found the PHP.ini file path using phpinfo n tht is “/usr/local/lib/php.ini”
    I had edited it but whatever I do the change is not affecting the phpinfo



    some lines from php.info

    Scan this dir for additional .ini files (none)
    additional .ini files parsed (none)
     
    Solved! View solution.
    nandanamnidheesh, Jan 31, 2012 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Hello there,

    Have you restarted your web server for the changes to take effect?

    Regards,
    Chris
     
    RHS-Chris, Jan 31, 2012 IP
  3. #3
    Hi,

    Try restarting your web server. Please check if the same php.ini is being used by giving this command. php -i | grep php.ini :)
    Have a good day :D
     
    ideamine, Jan 31, 2012 IP
  4. nandanamnidheesh

    nandanamnidheesh Active Member

    Messages:
    376
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #4
    i had restarted so many times.. but it dint help me .. but ideamines php location finding comannd helped me .. it showed that there is a error in my php.ini file on 232 line. rectified that .. thanks .. now itz working perfectly :)
     
    nandanamnidheesh, Feb 1, 2012 IP
  5. ideamine

    ideamine Member

    Messages:
    83
    Likes Received:
    2
    Best Answers:
    2
    Trophy Points:
    28
    #5
    Glad to hear that the issue is fixed :D Take care :)
     
    ideamine, Feb 1, 2012 IP