Permission denied errors.

Note: HTML/PHP pages on website running under Windows Server 2012

We are experiencing intermittent errors (10-20 each day) being logged for what all seem to be server connection issues.  Most are when calling function file_exists([path to file]).  Here's some examples:

[19-Jun-2015 12:13:06 America/New_York] PHP Warning:  file_exists(): connect() failed: No connection could be made because the target machine actively refused it.
 in D:\WWWRoot\ADI\phpmyadmin\libraries\Config.class.php on line 468

[19-Jun-2015 06:51:00 America/New_York] PHP Warning:  file_exists(): php_network_getaddresses: getaddrinfo failed: No such host is known.  in D:\WWWRoot\ADI\phpmyadmin\libraries\Config.class.php on line 468

[19-Jun-2015 06:51:00 America/New_York] PHP Warning:  file_exists(): connect() failed: php_network_getaddresses: getaddrinfo failed: No such host is known.  in D:\WWWRoot\ADI\phpmyadmin\libraries\Config.class.php on line 468

The function is called in over 100 places, working successfully thousands of times a day.  All of the files being sought are on the site web server. All of the permissions for the folders seem to be fine.  Server has more than enough horsepower to handle requests.  So why "actively refused"?  

Other similar errors:

[19-Jun-2015 16:39:10 America/New_York] PHP Warning:  ZipArchive::extractTo(D:/WWWRoot/ADI/temp/00043911/Other.pdf): failed to open stream: Permission denied in D:\WWWRoot\ADI\software\adiInclude.php on line 4051


[19-Jun-2015 16:39:10 America/New_York] PHP Warning:  unlink(D:/WWWRoot/ADI/temp/00043911/Other.pdf): Permission denied in D:\WWWRoot\ADI\software\adiDownloadOrder.php on line 286

Again, hundreds of successful calls each day.  One or two failures each day.  All seem to relate to "Permission denied", even though the folder permissions are fine.

The file_exists() error doesn't stop the code, but will give the impression that a file that is really there is missing.  Have had a couple of support calls on that one when the users know the file is there.  The unlink() error simply leaves the folder/file there and we have to manually delete it.

The ZipArchive error, however, is trapped and results in a message being shown to user because later processing is dependent upon having all the files.  (We then take them back to then main menu so we can begin with a fresh start.)  No reports so far from users on that one, so I'm guessing it doesn't hit them more than once in row.  Otherwise, we'd hear from them.  But they definitely know there's been an error and I don't want them thinking "buggy".

Any ideas what can be causing this?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
This page shows how to change the number of connections in IIS.  I don't see anything in 'php.ini' that would limit the number of connections.
Ray PaseurCommented:
Who is the hosting company?  This sort of has the smell of an overloaded shared server.
springthorpeSoftwareAuthor Commented:
Don't think it's that.  I'm very intimate with the company - founded it and later sold out but still have excellent relationship.  They only host for my projects/clients and their internal use, which is significant given that they service six plants across the country, but not overwhelming given what they say about the network and server capabilities.  My sites are the only ones on this server.  It's a virtual server, granted, but I've been assured the box is more than capable. Incredibly good IT/Network crew but web hosting is not their primary focus.  They're a little befuddled by the errors, too, so that's why I asked here.

Will pass on your link to them.  I'm definitely not a server guy, so that stuff is way over my head. We'll see what they say.  Should know something on Monday.

Thanks to both of you!!
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

springthorpeSoftwareAuthor Commented:
They reviewed your link and said that wasn't the problem.  They did make some changes to the anti-virus program Monday morning, excluding some folders on the site.  One in particular I noticed was phpmyadmin.  Haven't seen any of the errors since.
Believe it's resolved.
Thank you both for the prompt responses!  Hope splitting the points is OK.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dave BaldwinFixer of ProblemsCommented:
That's fine, glad you got it working.
springthorpeSoftwareAuthor Commented:
Although good, neither suggestion was the cause of the problem.  Found actual solution elsewhere.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.