Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 1881

Error Logging from PHP

$
0
0
<div class="threadpost col-7"> <div class="post">

I need to troubleshoot my WordPress custom plugin but can't write error logs from PHP to a text file. When I try, this error arises: "failed to open stream: Permission denied...."

It's WordPress 3.5 on IIS (Windows Server 2008). I don't have a lot of experience with IIS or WordPress.

Other forums I've checked always say to check the file permissions, so I ran the PHP get_current_user() function. It says the file owner is IUSR. This user does not have write privileges. But one PHP page does write a file. I'd just use that, but the page is for generating PDFs--not something to be done every time an error log would be helpful.

How might I correct the permissions or use IIS error logging? Can you recommend a reference (web page, forum post, book, etc.) about IIS permissions for server-side scripting?

</div> </div>

Viewing all articles
Browse latest Browse all 1881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>