Richard77 Richard77 - 1 year ago 134
PHP Question

read-only php.ini file is preventing saving new configuration

I've installed "PHP PECL EXTENSION/MODULE ON UBUNTU". At the end, I was asked to add some configuration lines in the a file called php_ini that can be found in this path:


However, after making my changes, I can't save the file because the file is read-only.

What the appropriate action to save my changes. I don't really why the file is read-only, I don't know if there is some thing I need to do. I'm new in Ubuntu/php

Thanks for helping.

Answer Source

For accessing the system files you need root permission.So you would need to use sudo would be like sudo vim /etc/php5/apache2/php.ini(if u are using vim editor) as user2075215 mentioned in comment.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download