php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7951 Can't connect to MySQL from PHP script under OrionServer (Socket problem)
Submitted: 2000-11-23 13:48 UTC Modified: 2001-12-13 06:23 UTC
From: tomi at netcityzen dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.3pl1 OS: Windows NT 4.0 SP6a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tomi at netcityzen dot com
New email:
PHP Version: OS:

 

 [2000-11-23 13:48 UTC] tomi at netcityzen dot com
Problem:

PHP can't connect to MySQL database server running in localhost when running under OrionServer 1.3.8

"Warning: Can't create TCP/IP socket (10106) in D:\client\test\web\test.php on line 5"


Steps to reproduce the problem:
1. Install Windows NT 4 Server
2. Instlal Service Pack 6a
3. Install J2SE 1.3 (JDK 1.3) (http://java.sun.com/)
4. Install OrionServer 1.3.8 (http://www.orionserver.com/)
5. Install PHP 4.03pl1 (http://www.php.net/)
6. Configure PHP to run in Orion (via Orion CGIServlet)

(global-web-application.xml)
...
<servlet>
 <servlet-name>php</servlet-name>
 <servlet-class>com.evermind.server.http.CGIServlet</servlet-class>
 <init-param>
  <param-name>interpreter</param-name>
  <param-value>c:\php\php.exe</param-value>
 </init-param>
</servlet>

<servlet-mapping>
 <servlet-name>php</servlet-name>
 <url-pattern>/*.php</url-pattern>
</servlet-mapping>
...

7. Do any PHP script to test PHP works (<? echo("Hello World!") ?> does the job). Now test it.
8. Do any PHP script that tries to connect to the MySQL database (in the same server). Now test it.

Result:

"Warning: Can't create TCP/IP socket (10106) in D:\client\test\web\test.php on line 5"


Note:
#1- Some another guy had similar problems when opening sockets from PHP under OrionServer 
(http://www.mail-archive.com/orion-interest@orionserver.com/msg01004.html)

#2- I understand this may or may not be a bug in PHP, but it certainly is related to PHP



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-20 19:45 UTC] mfischer@php.net
May be totally unrelated. 

Anyway, please give it a try with latest RC

http://phpuk.org/~james/php-4.1.0RC3-win32.zip

Feedback.
 [2001-12-13 06:23 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 01:01:30 2024 UTC