php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27658 PHP5 looks for php4ts.dll
Submitted: 2004-03-23 13:06 UTC Modified: 2004-03-30 14:01 UTC
Votes:23
Avg. Score:4.6 ± 0.7
Reproduced:19 of 21 (90.5%)
Same Version:13 (68.4%)
Same OS:11 (57.9%)
From: memoimyself at yahoo dot com dot br Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 5.0.0RC1 OS: Windows 2000 SP 4
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-03-23 13:06 UTC] memoimyself at yahoo dot com dot br
Description:
------------
Having successfully installed PHP dozens of times before under Windows, Linux and FreeBSD, I downloaded the PHP5 RC1 package and installed it according to the instructions in the install.txt file. (Note: I tried the installation for the first time with Apache 2.0.47, but have since upgrated to the latest stable version, to no avail.)

Upon installation, when I started Apache again, I got an error message to the effect that php4ts.dll could not be found in the system32 directory or any of the system paths. This is curious because if anything were to be missing, it should be php5ts.dll, not php4ts.dll. I renamed php5ts.dll to php4ts.dll and stopped getting the error message, so there's clearly something in the entrails of PHP5 that expects to find php4ts.dll. Renaming the file is not exactly a pretty solution, though.

I have of course edited httpd.conf so that it now contains the line

LoadModule php5_module "c:/php/php5apache2.dll"

instead of

LoadModule php4_module "c:/php/sapi/php4apache2.dll"

My system path variable contains "C:\PHP", and I have also checked the new php.ini file to make sure that it contains valid paths (e.g. extension_dir "C:\PHP\ext\"). Everything looks fine.

I have checked both my system32 and system32\dllcache directories to make sure that no old versions of any of the PHP DLLs are still there. (In fact, none of the PHP DLLs, old or new, are there any more; they're all in C:\PHP and, as I mentioned above, I have C:\PHP in my system path variable.)

Expected result:
----------------
Apache should work with PHP5RC1 as a module without issuing any error messages.

Actual result:
--------------
An error message is issued to the effect that php4ts.dll cannot be found in any of the specified paths. (Obviously, as PHP5 comes with php5ts.dll, not php4ts.dll.)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-24 00:39 UTC] edink@php.net
Please double check that the line

LoadModule php5_module "c:/php/php5apache2.dll"

is actually used in your configuration. I have the same install and apache works fine.
 
 [2004-03-24 14:24 UTC] memoimyself at yahoo dot com dot br
The line I have in my httpd.conf file is *exactly* 

LoadModule php5_module "c:/php/php5apache2.dll"

I've tried everything, including shutting down my firewall (which sometimes interferes with Apache in weird ways) before even starting the installation process. The problem persists.

Perhaps I posted this possible bug under the wrong heading. I'm not at all sure that this problem has anything to do with Apache or, more specifically, Apache2. What I do know for certain is that I get an error message every time Apache is started ? unless, as I said, I rename php5ts.dll to php4ts.dll.

So, basically, it seems to me that whatever PHP5 DLL is called first by Apache is trying to call php4ts.dll instead of php5ts.dll, hence the error message.

Mind you, I'm totally clueless as to how the PHP module is called and how each DLL is called in turn. The only thing I know for certain is that I've followed all instructions to the letter, checked and re-checked every possible configuration, and am still getting the same error.)
 [2004-03-24 17:20 UTC] edink@php.net
Its quite possible that the documentation is outdated :)

I have just installed php and apache2 from scratch:

0. Get rid of old apache and php files (and really all of it)
1. Unpack php zip file to a folder, say c:\php5
2. Add c:\php5; to your system path (right click on My Computer->Properties->Advanced->Environmental Variables->System Variables->Path)
3. Reboot
4. Install apache to say c:\apache2
5. Edit c:\apache2\conf\httpd.conf
6. Add these two lines
LoadModule php5_module "c:/php5/php5apache2.dll"
AddType application/x-httpd-php .php
7. Stop and start apache2 service.

Just repeated these steps myself and I'm looking at phpinfo() page right now!

 [2004-03-24 17:28 UTC] edink@php.net
And just in case try the latest snapshot available at:

http://snaps.php.net/win32/php5-win32-latest.zip
 [2004-03-30 14:01 UTC] iliaa@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2008-04-09 13:54 UTC] dylanpugh at usa dot net
I have installed Apache2.2 MySQL 5 and PHP 5.2.5,
when I set the extension_dir in php.ini and then restarted apache,
an error message appeared "The dynamic link library php4ts.dll could not be found ....", but I don't have php4 installed, and all references to php in httpd.conf are to php5.
Simply copying php5ts.dll and renaming it to php4ts.dll did NOT help
new error messages now appear- "The procedure entry point _zval_copy_ctor could not be located in the dynamic link library php4ts.dll".

If anyone has found why this is happening please could you contact me at dylanpugh@usa.net

thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 13:01:35 2024 UTC