1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to edit php.ini by using SSH (putty)?

Discussion in 'Site & Server Administration' started by fouroozesh, Oct 4, 2009.

  1. #1
    Hello everyone,

    I did search in google but still I don't know howto do it, here are my step

    [​IMG]
    I press Enter
    [​IMG]
    Enter again!
    [​IMG]
    In this page I don't know what to do, help please!

    I want to turnoff 'open_basedir'
     
    fouroozesh, Oct 4, 2009 IP
  2. fouroozesh

    fouroozesh Member

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    46
    #2
    hahaha

    Know i know why i couldn't edit i was trying scrol down with my mouse now i know i have to press down by using keyboard. lol
     
    fouroozesh, Oct 4, 2009 IP
  3. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #3
    nano is the best editor for me not vim.

    To enable base_opendir, just remove ;
     
    olddocks, Oct 4, 2009 IP
  4. E-IndiaWeb

    E-IndiaWeb Well-Known Member

    Messages:
    467
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    110
    #4
    Press "down key" or "pg dn" to scroll down. Or the best idea is to use cuteftp type client and login to root using sftp and edit in windows environment.
     
    E-IndiaWeb, Oct 5, 2009 IP
  5. nikb

    nikb Peon

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    To delete a single character at cursor x
    Insert text before the cursor i
    Insert text after the cursor a
    Insert text at start of line I
    Insert text at end of line A
    Exit ESC :q
    Exit saving changes :wq

    You can use vi on each linux system, but you can not install something else evrytime you want. Try to learn it. You can find manual in Google.
     
    Last edited: Oct 18, 2009
    nikb, Oct 18, 2009 IP
  6. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #6
    Bohra, Oct 18, 2009 IP
  7. Natashalein

    Natashalein Peon

    Messages:
    83
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You could also use midnightcommander.That is a powerful tool for editing via putty.I used it a lot of times.
    If you have installed it just key in mc and press enter then you have your graphical interface.Is good for newbies.
     
    Natashalein, Oct 18, 2009 IP
  8. cpace1983

    cpace1983 Peon

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    For vi/vim:

    Search for a string:
    /stringname

    So, for instance, to search for "base_opendir", just type:
    /base_opendir

    Then, remove the ";" before that line (position your cursor on the ";", hit escape (to get you out of insert mode, if you are already in insert mode), then press "d", and the right arrow key on your keyboard.

    Finally, hit ":wq"
    this writes your changes to the PHP file and exits.
     
    cpace1983, Oct 19, 2009 IP