문제

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.

도움이 되었습니까?

해결책

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

다른 팁

Try this :

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

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top