php.ini help

Discussion in 'PHP' started by kezhu911, Jun 5, 2009.

  1. #1
    hi I really need help to access php.ini, gotta change something there, but I don't know how to open php.ini, can someone tell me
     
    kezhu911, Jun 5, 2009 IP
  2. HorseGalleria

    HorseGalleria Peon

    Messages:
    91
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use a text editor like notepad, vi, ee. They all work fine.
     
    HorseGalleria, Jun 5, 2009 IP
  3. Hoth

    Hoth Well-Known Member

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    Depends on your situation. /etc/php5/apache2/php.ini (or wherever it's located) may only be accessible to the root user, so make sure you're root. If you're accessing via an SSH connection, login as root and then use nano to view and edit it: cd to the directory and nano php.ini. Or you may find it easier to use an FTP client or file browser that supports SSH connections (I know gFTP and Konqueror but I'm not sure what there is for Windows), so you can edit with your regular text editor.
     
    Hoth, Jun 6, 2009 IP