Editting PHP.ini

Discussion in 'PHP' started by misohoni, Oct 3, 2008.

  1. #1
    I've tried this bit of code in SSH but doesn't work so well (displays a list of things on the server but couldn't see PHP_INI_PERDIR or php_value allow_call_time_pass_reference to edit):

    php -i | grep php.ini
    Code (markup):
    I've also thought about copying the php.ini into CGI-BIN, but can I edit the file safely with Dreamweaver/Notepad and then re-upload?

    cp /etc/php5/php.ini $HOME/example.com/cgi-bin/php.ini
    Code (markup):

     
    misohoni, Oct 3, 2008 IP
  2. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #2
    Just use vi:

    vi php.ini

    Then scroll or search (using ?term).

    Peace,
     
    Barti1987, Oct 3, 2008 IP