Open or edit php.ini on mac Os [closed]

0

Someone can tell me how to open the file php.ini , according to my PHP version 7.2.2 the file is in this address:

  

./ usr / local / php5 / lib / php.ini

I have already entered from the terminal to the folder lib now as I say to open the file php.ini ?, almost do not use the terminal someone could help me.

    
asked by Alejandro.C 23.04.2018 в 17:26
source

2 answers

1

You can edit it using the editor in the terminal and use the sudo command to open it as superuser, see here .

sudo vim php.ini

or

sudo emacs php.ini

It remains your choice.

    
answered by 23.04.2018 / 17:58
source
1

Use the command:

vi php.ini

Within vi you press a, enter edit mode edit the file, then to exit esc: wq! that records the file and go!

    
answered by 23.04.2018 в 17:45