dongshedan4672 2014-09-29 12:47 采纳率: 0%
浏览 119
已采纳

php - > mysql_connect - >子进程退出状态为255 - 重新启动

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";
?>
  • 写回答

2条回答 默认 最新

  • douchunxian9740 2014-10-06 15:03
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 如何实验stm32主通道和互补通道独立输出
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题