Cannot Load Php5ts Dll File

  1. Php5ts.dll Download
  2. Descargar Php5ts.dll

I was trying to execute a PHP file via the command line on a windows machine and got the following error 'the program can't start because php5ts.dll is mis 'The. Download php5ts.dll free! Fix DLL missing error. Solve it yourself or get help using Client to fix DLLerror automatically. 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). Windows permissions apache-http-server php. The Php5ts.dll file is a dynamic link library for Windows 10, 8.1, 8, 7, Vista and XP (32 Bit and 64 Bit). You can fix 'The file Php5ts.dll is missing.' And 'Php5ts.dll not found.'

Table of Contents

MIhail-Klr at gmx dot net
4 years ago
This happened to me also with PHP 5.4.1
Copying the offending DLL everywhere didn't worket, and I don't have Postgres installed in the server, but also planned to use PHP against different Postgres versions, so the only solution I found that worked was to put in httpd.conf a line like this:
LoadFile 'C:/Program Files/PostgreSQL/8.4/bin/libpq.dll'
but refering to the libpq.dll that comes bundled with PHP, like this:
LoadFile 'C:/php/libpq.dll'
After that it worked fine to me.
nestor dot martinez at etb dot net dot co
9 years ago
If you get a message like this:
'Php Startup: Unable to load dynamic library 'C:phpextphp_pgsql.dll'
1. In the Configuration File alter the order of the libraries 'php_exif.dll' and 'php_mbstring.dll', in such a way that is called first the library 'php_mbstring.dll'
2. Copy all the libraries in the folder 'bin' of your installation of PostgreSQL and paste them into the root folder of Windows
3. Uncomment the line 'extension=php_pgsql.dll'
4. Now you should see on the page generated by 'phpinfo()' section of PostgreSQL
kouber at php dot net
10 years ago
If you get this error on Windows:
Unable to load dynamic library 'C:/php/extphp_pgsql.dll' - The specified module could not be found.
Try downloading the PostgreSQL binaries-no-install archive from (replace 8.3.5 with the latest stable version) and copy these DLLs to C:/WINDOWS/system32/ :
emil at example dot com
10 years ago
Unable to load dynamic library 'C:phpextphp_pgsql.dll' - The specified module could not be found.
another solution:
copy libpq.dll/all files from zip (if you have php from installer)
add to httpd.conf:
PHPIniDir 'c:/PHP/'
Loadfile 'C:phpphp5ts.dll'
Loadfile 'C:phplibpq.dll'
LoadModule php5_module 'c:/PHP/php5apache2_2.dll'
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps
(in php.ini default: extension_dir ='c:PHPext' )
if it doesn't work add c:php (php path) to your windows path (and restart)
tested on php5.2.8 + apache2.2.3

Php5ts.dll Download

some at domain dot name
9 years ago
Another windows xp solution for 'Unable to load dynamic library 'php_pgsql.dll' - The specified module could not be found.'
Add the path of the postgres binaries to the system search-path:
Right click on 'My Computer', select 'properties', 'advanced'-tab, 'Environment variables'-button, 'System variables'-section, select 'path' and click 'Edit' and add the path to the postgres binaries at the end, in my case it was 'C:Program FilesPostgreSQL8.4bin' and then restart the computer (or at least restart the apache/php processes)
Please note that the system-path can have several values, each separated by a semicolon ';'.
  • PostgreSQL
Active5 years, 8 months ago

I'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:

Descargar Php5ts.dll

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.

View and Download Canon PIXMA MP610 start here online. Canon PIXMA MP610: Setup Instruction. PIXMA MP610 All in One Printer pdf manual download. View and Download Canon PIXMA MP610 Series quick start manual online. Canon All in One Printer Quick Start Guide. PIXMA MP610 Series All in One Printer pdf manual download. Bedienungsanleitung canon mp610 pdf creator.

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 (; 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.


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).


2 Answers

Let’s analyse the facts:

  1. It works with an extension other than typical executable/code extensions like .dll, .exe, etc.
  2. It does not work with a different filename
  3. It worked just fine with a previous version; only the latest version is having trouble
  4. It works just fine in safe-mode
  5. Safe-mode disables all non-essential drivers and service
  6. It shows no locks or open-handles
  7. It says access denied
  8. It cannot be moved, opened, copied, etc.

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.

58.4k30 gold badges191 silver badges324 bronze badges

Normally 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.

284k16 gold badges302 silver badges615 bronze badges

Not the answer you're looking for? Browse other questions tagged windowspermissionsapache-http-serverphp or ask your own question.

Comments are closed.