PHP - > mysql_connect - >子进程退出,状态255 - 重新启动 [英] php -> mysql_connect -> child process exited with status 255 -- Restarting

查看:639
本文介绍了PHP - > mysql_connect - >子进程退出,状态255 - 重新启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近安装了WAMP服务器(安装单独的模块):
操作系统:Windows 7 X32
阿帕奇:的httpd-2.2.17-win32的86的OpenSSL 0.9.8o
MySQL的:MySQL的 - 50年1月5日,win32的
PHP:PHP-5.2.17-Win32的VC6-86

我配置了所有,当我运行phpinfo()函数它工作的很好,但是当我使用激活php_mysql.dll Apache服务器重新启动。
例如,我使用phpMyAdmin,把用户和传递,当我登录电子不加载页面。

我看到这个错误在Apache的错误日志:

  [周一9月29日14时39分56秒2014年] [声明]家长:子进程退出,状态255  - 重新启动。
[周一9月29日14点39分56秒2014年] [声明]的Apache / 2.2.17(的Win32)PHP / 5.2.17配置 - 恢复正常运作
[周一9月29日14点39分56秒2014年] [声明] Server内置:二零一零年十月十八日1点58分12秒
[周一9月29日14点39分56秒2014年] [声明]家长:创建子进程3988
[周一9月29日14点39分56秒2014年] [声明]儿童3988:儿童进程正在运行
[周一9月29日14点39分56秒2014] [声明]儿童3988:后天开始互斥。
[周一9月29日14点39分56秒2014年] [声明]儿童3988:64开始工作线程。
[周一9月29日14点39分56秒2014年] [声明]儿童3988:启动线程侦听端口80。

这在Windows事件:

 农布雷德拉aplicaciónCON errores:httpd.exe,版本:2.2.17.0,马卡报德时代报:0x4cbbe9e8
农布雷德尔模CON errores:的php5ts.dll,版本:5.2.17.17,马卡报德时代报:0x4d25fb49
Código德excepción:0000005
Desplazamiento德errores:0x0000acca
ID。德尔proceso CON errores:0xe0的
霍拉日INICIO德拉aplicaciónCON errores:0x01cfdbe06167ac65
鲁塔德acceso德拉aplicaciónCON errores:C:\\ XXXXXX \\ SERVER \\ APACHE \\斌\\ httpd.exe
鲁塔德acceso德尔模CON errores:C:\\ XXXXXX \\ SERVER \\ PHP \\的php5ts.dll
ID。德尔informe:a566f778-47d3-11e4-a945-000c2986f0eb

我在谷歌搜索七小时,我解决不了的问题。 ¿谁能帮我解决这个问题?

编辑:
当我做了一个mysql_connect,例如问题出现,这崩溃:

 < PHP$ login_db =根;$ motdepass_db =ZB1234;
回声试验德联接$联接= mysql_connect(localhost,则$ login_db,$ motdepass_db);
/ *回声一个preS联接
如果(!$联接){  回声德索莱联接太子港服务器是不可能的。  出口;  }其他{    回声联接确定;  }
  新的PDO('MySQL的:主机=本地主机,数据库名=测试','根','ZB1234'); * /
回声鳍剧本;
?>


解决方案

我解决问题。我从PHP到Apache的bin目录和问题dissapear复制php5apache.dll和的libmysql.dll。

@Phil,这是因为我有我的本地机器上回复旧的生产服务器。

感谢所有的答复。

I recently have installed a WAMP server (Installing the modules individually): OS: Windows 7 x32 Apache: httpd-2.2.17-win32-x86-openssl-0.9.8o MySQL: mysql-5.1.50-win32 PHP: php-5.2.17-Win32-VC6-x86

I have configured all, when i run phpinfo() it work's fine, but when i use php_mysql.dll the apache server restart. For example, i run phpMyAdmin, put the user and pass and when I loging no page is loading.

I see this error on the Apache error log:

[Mon Sep 29 14:39:56 2014] [notice] Parent: child process exited with status 255 -- Restarting.
[Mon Sep 29 14:39:56 2014] [notice] Apache/2.2.17 (Win32) PHP/5.2.17 configured -- resuming normal operations
[Mon Sep 29 14:39:56 2014] [notice] Server built: Oct 18 2010 01:58:12
[Mon Sep 29 14:39:56 2014] [notice] Parent: Created child process 3988
[Mon Sep 29 14:39:56 2014] [notice] Child 3988: Child process is running
[Mon Sep 29 14:39:56 2014] [notice] Child 3988: Acquired the start mutex.
[Mon Sep 29 14:39:56 2014] [notice] Child 3988: Starting 64 worker threads.
[Mon Sep 29 14:39:56 2014] [notice] Child 3988: Starting thread to listen on port 80.

And this in the windows event:

Nombre de la aplicación con errores: httpd.exe, versión: 2.2.17.0, marca de tiempo: 0x4cbbe9e8
Nombre del módulo con errores: php5ts.dll, versión: 5.2.17.17, marca de tiempo: 0x4d25fb49
Código de excepción: 0xc0000005
Desplazamiento de errores: 0x0000acca
Id. del proceso con errores: 0xe0
Hora de inicio de la aplicación con errores: 0x01cfdbe06167ac65
Ruta de acceso de la aplicación con errores: C:\XXXXXX\SERVER\APACHE\bin\httpd.exe
Ruta de acceso del módulo con errores: C:\XXXXXX\SERVER\PHP\php5ts.dll
Id. del informe: a566f778-47d3-11e4-a945-000c2986f0eb

I was searching in google for seven hours and i can't solve the problem. ¿Can anyone help me with this problem?

EDIT: The problem appear when i do a "mysql_connect", for example, this crashes:

<?php

$login_db = "root";

$motdepass_db = "ZB1234";
echo "test de connexion";

$connexion = mysql_connect ("localhost", $login_db, $motdepass_db);
/*echo "apres connexion";
if(!$connexion) {

  echo "Désolé. Connexion au server impossible.";

  exit;

  } else {

    echo "Connexion OK";

  } 
  new PDO('mysql:host=localhost;dbname=test', 'root', 'ZB1234');*/
echo "fin script";
?>

解决方案

I solve the problem. I copy the "php5apache.dll" and "libmysql.dll" from the PHP to the bin directory of Apache and the problem dissapear.

@Phil, this is because i have to reply an old production server on my local machine.

Thanks to all for the responses.

这篇关于PHP - &GT; mysql_connect - &GT;子进程退出,状态255 - 重新启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆