#35294 [Fbk->Opn]: MySQL extension causes Can't create thread error on some websites on my server.
| From: | cjm at cjmweb dot fsnet dot co dot uk | Date: | Sat, 19 Nov 2005 16:32:51 +0000 |
| Subject: | #35294 [Fbk->Opn]: MySQL extension causes Can't create thread error on some websites on my server. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-88548@lists.php.net to get a copy of this message | ||
ID: 35294
User updated by: cjm at cjmweb dot fsnet dot co dot uk
Reported By: cjm at cjmweb dot fsnet dot co dot uk
-Status: Feedback
+Status: Open
Bug Type: MySQL related
Operating System: Windows NT Server 4
PHP Version: 5.0.5
New Comment:
MySQL Version is 5.015-nt
I just realised something. It works in any subfolder of F:\wwwroot\
even if it is a root web folder. It is only F:\wwwroot\ and
F:\sslroot\ that cause problems.
This would seem strange.
We are running Apache though, despite the wwwroot. That was our naming
choice at the time.
Previous Comments:
------------------------------------------------------------------------
[2005-11-19 17:22:19] tony2001@php.net
What version of MySQL are you using?
------------------------------------------------------------------------
[2005-11-19 17:09:17] cjm at cjmweb dot fsnet dot co dot uk
The download of the newer version has had no effect.
------------------------------------------------------------------------
[2005-11-19 16:55:57] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-11-19 16:48:48] cjm at cjmweb dot fsnet dot co dot uk
Description:
------------
I have enabled PHP-MySQL and set up MySQL correctly so that it all
works. However, a few days ago, PHP-MySQL stopped working on some
VHosts and stayed working on others. The problem is the fact that it
works under some conditions, but not others.
The mysql_connect code in this article is the same in both VHosts.
Reproduce code:
---------------
<?php
mysql_connect("localhost","user","pwd"); //ERROR here!
?>
Expected result:
----------------
I expect the admin interface or website to come up depending on the
non-working domain.
Actual result:
--------------
Warning: mysql_connect() [function.mysql-connect]: Can't create a new
thread (errno 12). If you are not out of available memory, you can
consult the manual for a possible OS-dependent bug in
F:\wwwroot\index.php on line 23
Could not connect to mysql because Can't create a new thread (errno
12). If you are not out of available memory, you can consult the manual
for a possible OS-dependent bug
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35294&edit=1