maya90 — 2012-09-19T21:14:16-04:00 — #1
why can't I edit php.ini even if set permission to 644?
chmod 644 php.ini
but when try to edit and save changes get error: permission denied..
(this is on my local PHP env, unix/mac 10.6.8)
cups — 2012-09-20T06:37:47-04:00 — #2
Have you checked ownership too? (chown)
maya90 — 2012-09-20T08:56:58-04:00 — #3
<font face='Courier New'>
chown 644 php.ini
chown: php.ini: Operation not permitted</font>
this is on my own machine.. that no one else uses... I should automatically have permissions to everything...
I don't get why sometimes don't have permissions to edit files on my own computer..
qmonkey — 2012-09-20T16:31:01-04:00 — #4
Some system files aren't available for just anyone (or any program) to change or delete. This is for your own good. For such cases you need to act as the root user, or superuser. Usually this means typing "sudo" before the command and it will ask you for a password. This will allow you to do something as the superuser.
sudo nano php.ini
The above code will open the nano editor and allow you to edit and save. Substitute nano with the command to open the editor of your choice. (I don't even know if nano is on a mac by default)
maya90 — 2012-09-21T20:30:12-04:00 — #5
that worked! thank you... (but didn't solve Drupal install prob I was hoping to solve... yikes )