Can't save php.ini

I had this problem and managed to work around it. You need to be running the editor (notepad or whatever) as an admin.

In Window Vista / Window 7, right click and choose "Run as Administrator". Then open php.ini and edit it...


Another option is to copy the text of the file into a new file in a different location, make your changes, save the file as 'php.ini'. Then copy the new file across overwriting the old one. Explorer may handle the permissions differently.


I've had a similar problem, and I was working in windows 10 which doesn't use "run as administrator"

So this is what I did:

  1. right click the problem file and go to properties
  2. go to tab security
  3. click edit, which should have a shield
  4. select in names of groups: Users(computer specifics\Users)
  5. in the square under it you can allow editing of the file

This causes it to allow you to edit the file for users and not run into the problem anymore. This also removes the problem in the future for this file so you can always edit it again by just opening the file in text editor.

Please note I am Dutch and that certain names are translated incorrectly.

Tags:

Php

Iis

Windows 7