JavaScript appears to be disabled. We recommend you enable JavaScript while visiting this site.

(All original content on this site is licensed under the Creative Commons License Attribution-Noncommercial-No Derivative Works 3.0.)

Enabling PHP file_put_contents() support on IIS 7.5 on Windows Server 2008 R2

I've already installed the current verison of PHP 5.2 on my Windows Server 2008 R2 machine, but unfortunately wasn't able to get content saved via the file_put_contents function.

It seems that you need to add and give IUSR the necessary permissions on the file (or directory) in order for writes to work properly.

Tags: , ,

Categories: software

(All original content on this site is licensed under the Creative Commons License Attribution-Noncommercial-No Derivative Works 3.0.)

Personal NetBeans IDE 6.9.1 setting tweaks

For my own personal reference, I've made the following tweaks to the default install of NetBeans IDE 6.9.1.

  • Tools
    • Options
      • Editor
        • Formatting
          • Language: All Languages / Category: Tabs and Indents
            • Expand Tabs to Spaces: unchecked (from checked)
            • Number of Spaces per Indent: 4 (default)
            • Tab Size: 4 (from 8)

Tags:

Categories: software, StrivingLife

(All original content on this site is licensed under the Creative Commons License Attribution-Noncommercial-No Derivative Works 3.0.)

Windows 7 Home Premium changes for IIS 7.5 access of Users directories

Not feeling much like debugging it too much, I made a couple of modifications to my IIS installation to allow access to files contained within my user directory.

Background

I turned the Internet Information Services feature on on my Windows 7 Home Premium machine before using the Web Platform Installer to add additional functionality. However, I kept running into a permissions issue, as the sites I setup were located in my Users directory (C:\Users\James).

Possible options

A couple of possible options exist, including giving the user that the application pool runs as full access to the appropriate directory. However, to some extent this circumvents security on my laptop.

Another option is to use Windows authentication. To this end it needs to be enabled by checking the feature of Internet Information Services > World Wide Web Services > Security > Basic Authentication.

Additional setup and result

Additionally default rights must be given to the local IIS_IUSRS group, so that it can access the Web.config file.

Now when I browse to the site I'm prompted for credentials, which is the same information I use to login to my machine.

Putting the content into a directory with the appropriate permissions (%SystemDrive%\inetpub\wwwroot) may be better, but this works just fine for the limited testing I need to perform.

Tags: ,

Categories: tutorials/guides