How to replace original php.ini file

Discussion in 'Site & Server Administration' started by bbrian017, Aug 30, 2011.

  1. #1
    Hi guys,

    I messed up my php.ini file and now my phpmyadmin or website wont load,

    How can I replace it back to normal.

    I found this url, http://www.reallylinux.com/docs/php.ini

    I just don't know how to replace the entire file.

    Please can someone help?

    I also see a file names php.ini.saved_by_psa.08.25;15:37 is there any way I can restore that one?

    Thanks,

    I'm a noob I know....
     
    Last edited: Aug 30, 2011
    bbrian017, Aug 30, 2011 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

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

    Rename the php.ini that you have now, to something like php.ini.bad, then, rename the php.ini.saved_by_psa.08.25;15:37 to php.ini, and restart your webserver.

    Chris
     
    RHS-Chris, Aug 30, 2011 IP
  3. bbrian017

    bbrian017 Well-Known Member

    Messages:
    2,990
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    170
    #3
    Hi Chris, I got it all sorted,

    I deleted the old one, created a new file vi php.ini pasted the text in it and :wq

    Thanks for the feedback!
     
    bbrian017, Sep 1, 2011 IP