Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't save php.ini

Tags:

php

iis

windows-7

I have PHP for FastCGI installed on Windows 7 through the Web Platform Installer. I need to edit php.ini to enable logging, but I'm not able to overwrite the existing file, apparently because something has it open and/or locked.

Stopping the server in IIS Manager doesn't help; stopping the Windows Process Activation Service and the World Wide Web Publishing Service doesn't help. phpinfo() confirms that I'm working with the correct file (C:\Program Files (x86)\PHP\php.ini). It's not marked as read only and I do have permissions for it. I'm out of ideas.

like image 821
phenry Avatar asked Dec 14 '09 18:12

phenry


1 Answers

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...

like image 90
Digs Avatar answered Oct 08 '22 16:10

Digs