Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP.ini error -- No permission -- Root User

Trying to setup and configure my mac as a testing server. So setting up the php.ini, i get an error when trying to save my changes:

Error writing /usr/local/php5/lib/php.ini: Permission denied

I don't know why this happened or how to fix it (noob) -I am logged in as root.

like image 246
rambossa Avatar asked Nov 06 '13 20:11

rambossa


2 Answers

Try this,

sudo -i

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

OR

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

OR

vi  /usr/local/php5/lib/php.ini
like image 72
Krish R Avatar answered Nov 09 '22 05:11

Krish R


Try this :

sudo chmod 644 /usr/local/php5/lib/php.ini

It will give you the rights to write on the php.ini

like image 41
Tib Avatar answered Nov 09 '22 06:11

Tib