|
Posted by Xseven on July 21, 2009, 9:53 am
Please log in for more thread options
Hi to all, today i have istalled PHP 5.2.10, Apache 2.2.11 and MySQL
5.1.36 on Windows2003. It's a tsting enviroment, but when i tried some
line of code Apache crashed with this error in the event log of windows:
Faulting application httpd.exe, version 2.2.11.0, faulting module
php5ts.dll, version 5.2.10.10, fault address 0x0000ac6a.
and the code executed is this:
<?php
$db_url = "127.0.0.1";
$db = "dbtest";
$db_user = "user";
$db_pass = "pass";
$connessione = mysql_connect("$db_url","$db_user","$db_pass");
$selezione_db = mysql_select_db("$db",$connessione) || die(mysql_error());
show/hide quoted text
?>
Other line of code without mysql function works fine, i tried with IIS
but the result is the same, iis crash.
Any suggestions? I don't know what to check anymore.. :(
|
|
Posted by Jerry Stuckle on July 21, 2009, 10:01 am
Please log in for more thread options
Xseven wrote:
show/hide quoted text
> Hi to all, today i have istalled PHP 5.2.10, Apache 2.2.11 and MySQL
> 5.1.36 on Windows2003. It's a tsting enviroment, but when i tried some
> line of code Apache crashed with this error in the event log of windows:
>
> Faulting application httpd.exe, version 2.2.11.0, faulting module
> php5ts.dll, version 5.2.10.10, fault address 0x0000ac6a.
>
> and the code executed is this:
>
> <?php
> $db_url = "127.0.0.1";
> $db = "dbtest";
> $db_user = "user";
> $db_pass = "pass";
> $connessione = mysql_connect("$db_url","$db_user","$db_pass");
> $selezione_db = mysql_select_db("$db",$connessione) || die(mysql_error());
>
> Other line of code without mysql function works fine, i tried with IIS
> but the result is the same, iis crash.
> Any suggestions? I don't know what to check anymore.. :(
Are you using the MySQL client library which comes with PHP?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
|
|
Posted by Xseven on July 21, 2009, 10:16 am
Please log in for more thread options Jerry Stuckle ha scritto:
show/hide quoted text
> Xseven wrote:
>> Hi to all, today i have istalled PHP 5.2.10, Apache 2.2.11 and MySQL
>> 5.1.36 on Windows2003. It's a tsting enviroment, but when i tried some
>> line of code Apache crashed with this error in the event log of windows:
>> Faulting application httpd.exe, version 2.2.11.0, faulting module
>> php5ts.dll, version 5.2.10.10, fault address 0x0000ac6a.
>> and the code executed is this:
>> <?php
>> $db_url = "127.0.0.1";
>> $db = "dbtest";
>> $db_user = "user";
>> $db_pass = "pass";
>> $connessione = mysql_connect("$db_url","$db_user","$db_pass");
>> $selezione_db = mysql_select_db("$db",$connessione) ||
>> die(mysql_error());
>> Other line of code without mysql function works fine, i tried with IIS
>> but the result is the same, iis crash.
>> Any suggestions? I don't know what to check anymore.. :(
>
> Are you using the MySQL client library which comes with PHP?
>
Yes, I'm using the out-of-the-box php except a few basic changes and
extensions enabled (php_mysql.dll and mysqli)
|
|
Posted by Jerry Stuckle on July 21, 2009, 9:45 pm
Please log in for more thread options Xseven wrote:
show/hide quoted text
> Jerry Stuckle ha scritto:
>> Xseven wrote:
>>> Hi to all, today i have istalled PHP 5.2.10, Apache 2.2.11 and MySQL
>>> 5.1.36 on Windows2003. It's a tsting enviroment, but when i tried
>>> some line of code Apache crashed with this error in the event log of
>>> windows:
>>> Faulting application httpd.exe, version 2.2.11.0, faulting module
>>> php5ts.dll, version 5.2.10.10, fault address 0x0000ac6a.
>>> and the code executed is this:
>>> <?php
>>> $db_url = "127.0.0.1";
>>> $db = "dbtest";
>>> $db_user = "user";
>>> $db_pass = "pass";
>>> $connessione = mysql_connect("$db_url","$db_user","$db_pass");
>>> $selezione_db = mysql_select_db("$db",$connessione) ||
>>> die(mysql_error());
>>> Other line of code without mysql function works fine, i tried with
>>> IIS but the result is the same, iis crash.
>>> Any suggestions? I don't know what to check anymore.. :(
>> Are you using the MySQL client library which comes with PHP?
>
> Yes, I'm using the out-of-the-box php except a few basic changes and
> extensions enabled (php_mysql.dll and mysqli)
That still doesn't answer the question. PHP comes with a mysql client
DLL, but so does MySQL. You need to ensure you are using the one which
comes with PHP.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
|
| Similar Threads | Posted | | Crash in PHP 4.3.11 after an extension function ( gcc 4 on Fedora Core 4) | June 30, 2005, 5:52 pm |
| Crash strtolower($var) = "something" | January 30, 2010, 6:23 am |
| imageCreateFromJPEG() Crash/Freeze/??? | August 25, 2004, 7:55 pm |
| session_start causes Apache to crash (Win32, PHP 5.1.1) | December 20, 2005, 12:20 pm |
| Could eval() error crash other scripts? | December 11, 2006, 1:09 pm |
| Please Reproduce: PHP 5.2 -> 5.3 Windows Apache2.2 crash | March 4, 2010, 12:07 am |
| Server crash -> free PHP source for everyone?! Bug or feature? | September 27, 2004, 3:26 am |
| PHP 5.0.4 with Windows XP - trying to do file zip utility causes Apache 2.0.53 to crash | September 30, 2005, 7:56 am |
| IIS + PHP -- Worker Process alert & w3wp.exe crash? | November 27, 2007, 4:35 pm |
| Tip for crash course litterature to teach PHP basics to someone new to programming. | February 2, 2009, 5:17 am |
|