PHP 4.0 Bug #7951: Can't connect to MySQL from PHP script under OrionServer (Socket problem)

From: Date: Thu, 23 Nov 2000 18:48:39 +0000
Subject: PHP 4.0 Bug #7951: Can't connect to MySQL from PHP script under OrionServer (Socket problem)
Groups: php.dev 
Request: Send a blank email to php-dev+get-39028@lists.php.net to get a copy of this message
From: tomi@netcityzen.com Operating system: Windows NT 4.0 SP6a PHP version: 4.0.3pl1 PHP Bug Type: Other web server Bug description: Can't connect to MySQL from PHP script under OrionServer (Socket problem) 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 -- Edit Bug report at: http://bugs.php.net/?id=7951&edit=1

« previous php.dev (#39028) next »