The problem is that your php directory is probably not on the path for Apache, so php5ts.dll cannot find the ntwdblib.dll on the path. Make sure to put your php directory on the SYSTEM path. You have to reboot the machine so. May 21, 2018 'Cannot load c:/php/php5apache2_4.dll into server' is followed by The extra explanation: 'The specified procedure could not be found'. According to bizcom's experience, the problem is not that the procedure could not. Apr 11, 2018 What is a DLL? Content provided by Microsoft. This article describes what a dynamic link library (DLL) is and the various issues that may occur when you use DLLs. When you load a DLL in an application, two methods of linking let you call the exported DLL functions. You cannot maintain consistency between. Sep 20, 2006 Hi, I'm having a similar problem cant install Apache as a module. I made the php5ts.dll available by adding my php directory to the path, same for my p. Hi, I'm having a similar problem cant install Apache as a module. I made the php5ts.dll available by adding my php directory to the path, same for my p.
I am having trouble with PHP extensions. I am trying to run a script and nothing happens then I checked my error log and here is what I got:
same goes for following files:
every file except php_com_dotnet.dll was installed with PHP installation, all the files are enabled in php.ini configuration. After researching online I saw some people said that it has to be copied to system32 or sysWOW64 folder, which I did without success. Then I tried to register them using regsvr32 in cmd and I am getting error for every single file:
I don't understand what am I doing wrong.
Server configuration is Windows 2008 R2 64bit, IIS7, PHP 5.3.27
PHP cannot load a DLL file, if the file cannot be found OR the library has a dependency that cannot be found. If the file is in correct location, there are probably dependent libraries that cannot be loaded.
E.g. (for OCI8, from http://www.php.net/manual/en/oci8.requirements.php):
The OCI8 1.4 extension is included with PHP 5.3, PHP 5.4 and PHP 5.5. It is also available from » PECL. A newer OCI8 2.0 version is available only from » PECL. OCI8 1.4 requires Oracle 12c, 11g, 10g or 9iR2 client libraries and will install on PHP 4.3.9 onwards. OCI8 2.0 requires Oracle 12c, 11g or 10g client libraries and will install on PHP 5.2 onwards.
If the Oracle Database is on the same machine as PHP, the database software already contains the necessary libraries. When PHP is on a different machine, use the free » Oracle Instant Client libraries.
Aleš KrajníkAleš KrajníkI'm having some difficulty installing Apache 2.4.7 with PHP 5.5.7 on Windows Vista Service Pack 2.
When trying to start Apache, I'm getting the error:
Syntax error on line 176 of C:/Program Files/Apache/conf/httpd.conf: Cannot load C:/Program Files/PHP/php5apache2_4.dll into server: Access is denied.
I've looked at related topics, both on here and other sites, but the only issues I can find are where the error is 'The specified procedure could not be found' or 'The specified module could not be found', neither of which are relevant to my problem.
As you can see by the download links, I'm using Win32 versions of both Apache and PHP and the thread safe version of PHP. I've made sure that the C:/Program Files/PHP/php5apache2_4.dll file exists and reinstalled the Visual C++ Redistributable (http://www.microsoft.com/en-gb/download/details.aspx?id=30679; VSU_4vcredist_x86.exe). I've also tried moving both the Apache and the PHP folders outside of the Program Files but this didn't resolve the issue.
As the error I'm getting is 'Access is denied', I assume the issue is one of file permissions, but I'm not sure what permissions to change and what to change them to. So any assistance I can get will be much appreciated.
Edit
After some testing it seems that this problem only arises from PHP 5.5.4 onwards. Rolling back to 5.5.3 resolves the issue.
Edit 2
The issue seems to be that php5ts.dll
cannot be read despite showing readable permissions. Even when programs are 'run as administrator', the file cannot be opened (but can be deleted and renamed). The file can be opened if the extension is changed to something other than dll
or exe
, and other files in the same folder can be opened even if renamed to php5ts.dll
(replacing the original).
Let’s analyse the facts:
.dll
, .exe
, etc.access denied
Points 1-3 indicates that something about the contents of the file are triggering the problem. This sounds a lot like some sort of anti-virus program throwing a false-positive.
Points 4-6 point to some sort of service or driver that is causing the problem.
Security software, like anti-virus programs usually have to run at a low-level to avoid letting malware sneak in, so they use drivers and run under the System
process. This prevents most programs from being able to detect that a file is locked by the security program (which is why Unlocker could not find any open handles), and even if they can, they only show that System
has it open which isn’t very helpful.
You said that you had AVG installed at one point, but uninstalled it. Apparently AVG did not uninstall completely (missed a reboot?) and so its drivers was left behind.
So now, whenever you access a file, the driver locks it to scan, but because the rest of the program is gone, there is no way for it prompt you if it thinks the file is suspicious. If the program were still installed, it would show a prompt and ask you want to do (or more likely these days, automatically quarantine/delete the file to “protect” you). Since the program is gone, the driver component sits there waiting, while keeping the file locked.
Since you had uninstalled AVG a while ago, it probably doesn’t have the latest definitions (if any?), so it would not be able to leave the latest version of php5ts.dll
alone, and threw a false-positive, thus locking the file with no way of telling it knock it off.
I don’t know if AVG ever complained about this specific version of php5ts.dll
when it first came out, but it doesn’t now.
Also, I don’t know if AVG is known for having a lot of false-positives, though I’m sure I’ve read that about some AV vender; but a cursory check seems to indicate that searching for false positive
has at least 33% more hits for AVG than other AV vendors.
This problem occurred because AVG did not uninstall completely and left remnants behind. Unfortunately this is an all–too-common problem. In the future, when uninstalling any software be it anti-virus programs, printer drivers/software, etc. always check if the vendor has provided some sort of removal/cleanup tool/utility (try different combinations of words to make sure you find it).
Most security software and printer vendors, as well as some other software firms and hardware manufacturers will have a (usually small) program that you can download and run to wipe out all traces of their software. Unfortunately, this is usually not built into the uninstaller and must be downloaded manually from their site. Sometimes it will be in the normal parts of their site, sometimes it will be buried somewhere in their support forums. (These are usually compiled from bug-reports from people who found left-over files, registry entries, services, etc. that are left behind by the uninstaller, which is why they are separate.)
In your case, you could have (and still should), use the AVG “remover”.
NB: when searching for a cleanup utility for security software, be careful not to mix it up with a virus-removal tool.
SynetechSynetechNormally these kind of errors mean that you are missing a dependency that is used by php5apache2_4.dll
, probably introduced in PHP 5.5.4.
To verify which one is missing, use the Dependency Walker,that displays the missing DLLs in red color.Missing DLLs that are marked as 'delayed load' are usually not a problem.
Ensure that you do not have a 32-bit/64-bit mismatch.As everything is in C:/Program Files
, I suppose that all software is 64-bit.In this case use also the 64-bit version of Dependency Walker.