Read-only php.ini file prevents new configuration from being saved

I installed PHP PECL EXTENSION / MODULE ON UBUNTU . In the end, I was asked to add some configuration lines to a file called php_ini , which can be found along this path:

/etc/php5/apache2/php.ini

However, after making the changes, I cannot save the file because the file is read-only .

What you need to save changes. I really don’t understand why the file is read-only, I don’t know if there is something that I need to do. I'm new to Ubuntu / php

Thanks for the help.

+4
source share
2 answers

root. , sudo command.it sudo vim /etc/php5/apache2/php.ini ( vim), user2075215, .

+4

: "sudo gedit/etc/php5/apache2/php.ini"
, ctrl + s .
.

+1

All Articles