Saturday, November 14, 2015

failed to open stream: Inappropriate ioctl for device

https://prggmr.wordpress.com/2011/05/12/failed-to-open-stream-inappropriate-ioctl-for-device/


//
you're reading...
PHP

failed to open stream: Inappropriate ioctl for device

A new error I have yet to encounter at first glance this was a bit strange and didn’t make much sense … putting on my System administration hat the answer was quite obvious ownership.

Error:

failed to open stream: Inappropriate ioctl for device

Solution:

chown owner:group file.php
Modify the ownership of the file throwing the error to match that of the file that is being included.
Headache solved!