My XAMPP on Vista install stopped working: PHP issue?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

My XAMPP on Vista install stopped working: PHP issue?

Postby dfondente » 21. May 2008 01:56

I've had xampp installed on my Vista box for over a year and it has generally worked fine. I added a couple of new virtual hosts and some other tweaks a few days ago, and things were still working fine. Now suddenly I can't get any PHP scripts to load, and I don't see any errors that lead me in the direction of the problem.

More specifically, I'm running Apache 2.2.8 and PHP 5.2.5. When I start Apache and MySQL through the xampp control panel, both start without error. If I point my browser to http://localhost/index.html I can see the static page. But if I go to http://localhost/index.php, I get a Windows dialog box that says "Apache HTTP server has stopped working".

The system Event logs don't reveal anything that I can see. There is an error, but nothing specific about what has gone wrong. The apache error log shows this:

[Tue May 20 17:51:41 2008] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Tue May 20 17:51:42 2008] [notice] Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5 configured -- resuming normal operations
[Tue May 20 17:51:42 2008] [notice] Server built: Jan 18 2008 00:37:19
[Tue May 20 17:51:42 2008] [notice] Parent: Created child process 5220
[Tue May 20 17:51:44 2008] [notice] Child 5220: Child process is running
[Tue May 20 17:51:44 2008] [notice] Child 5220: Acquired the start mutex.
[Tue May 20 17:51:44 2008] [notice] Child 5220: Starting 250 worker threads.
[Tue May 20 17:51:44 2008] [notice] Child 5220: Starting thread to listen on port 80.
[Tue May 20 17:51:44 2008] [notice] Child 5220: Starting thread to listen on port 443.

I've been struggling with this for a bit now and am not sure how to diagnose the problem. Any suggestions? The php.exe seems to run fine from the command line, but PHP scripts all crash Apache when accessed from my browser.
dfondente
 
Posts: 1
Joined: 21. May 2008 01:43

Postby jfreak1978 » 27. August 2008 09:15

hi dfondente

I just read your post. I have a similar problem and I'm wondering if you could figure out the problem in the meantime.

mario
jfreak1978
 
Posts: 1
Joined: 27. August 2008 09:11

Re: My XAMPP on Vista install stopped working: PHP issue?

Postby joes_k » 02. February 2009 02:35

Hi,

I had a very long frustrating time with this issue and found no answer anywhere. Finally I tracked it down to the fact that I had another version of PHP installed on the computer. When I removed PHP, then removed XAMPP, restarted and then re-installed XAMPP everything finally worked. Hope this helps someone.

Cheers,

J
joes_k
 
Posts: 1
Joined: 02. February 2009 02:33

Re: My XAMPP on Vista install stopped working: PHP issue?

Postby Izzy » 02. February 2009 03:06

joes_k wrote:Finally I tracked it down to the fact that I had another version of PHP installed on the computer. When I removed PHP, then removed XAMPP, restarted and then re-installed XAMPP everything finally worked.
Not so much another instance of php that would have caused your issue but another php.ini file in the Windows folder perhaps and/or a path variable pointing to your other instance of php in the Environment Variables or this SetEnv PHPRC "path" System Environment Variable or in a registry entry perhaps.

http://us3.php.net/manual/en/configuration.file.php

Apache in XAMPP uses the php.ini file in the xampp\apache\bin folder by default but will try and load a php.ini file in the Windows folder if it finds one or the path variables dictates otherwise.

But anyway, thanks for posting your 'sledge hammer to crack a nut' solution. :)
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: My XAMPP on Vista install stopped working: PHP issue?

Postby StephenKClark » 24. February 2009 14:47

Having read the threads on this topic, I am unclear whether my issue can be resolved with a specific solution already provided. Your insight will be appreciated.

I have downloaded and copied over the PHP directory, an unzipped binary version of PHP 5.2.8, and have manually replaced the libMySQL.dll from an Eclipse PDT subfolder to the PHP directory in XAMPP.

My problem signature is as follows:

Problem Event Name: APPCRASH
Application Name: php.exe
Application Version: 5.2.8.8
Application Timestamp: 493d760b
Fault Module Name: ntdll.dll
Fault Module Version: 6.0.6001.18000
Fault Module Timestamp: 4791a783
Exception Code: c0000005
Exception Offset: 0002f217
OS Version: 6.0.6001.2.1.0.256.1
Locale ID: 1033
Additional Information 1: fd00
Additional Information 2: ea6f5fe8924aaa756324d57f87834160
Additional Information 3: fd00
Additional Information 4: ea6f5fe8924aaa756324d57f87834160

None of these steps appear to have helped, as the popup still pops up.

Thanks in advance for your insight
StephenKClark
 
Posts: 5
Joined: 24. February 2009 14:32

Re: My XAMPP on Vista install stopped working: PHP issue?

Postby Wiedmann » 24. February 2009 15:09

I have downloaded and copied over the PHP directory, an unzipped binary version of PHP 5.2.8, and have manually replaced the libMySQL.dll from an Eclipse PDT subfolder to the PHP directory in XAMPP.

Why have you done this?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: My XAMPP on Vista install stopped working: PHP issue?

Postby StephenKClark » 24. February 2009 18:03

I had read in prior posts that there may be inconsistencies between the versions of some of the files in 5.2.2 or older PHP and the version of files Vista expects.

This was one of the posts I read: http://web2.0entrepreneur.com/31/cli-ha ... vista.html

Regards and thanks for your help,

Stephen
StephenKClark
 
Posts: 5
Joined: 24. February 2009 14:32

Re: My XAMPP on Vista install stopped working: PHP issue?

Postby Wiedmann » 24. February 2009 18:21

This was one of the posts I read: http://web2.0entrepreneur.com/31/cli-ha ... vista.html

I don't think this server is one from the ApacheFriends team ;-)

Well, help is only available with an unaltered XAMPP...

and have manually replaced the libMySQL.dll from an Eclipse PDT subfolder to the PHP directory in XAMPP.

That's really a bug in 1.7.0 (and not only Vista related). Rename/copy the file "libmysql_5.1.31.dll" to "libmysql.dll" in "\xampp\apache\bin" and "\xampp\php".
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: My XAMPP on Vista install stopped working: PHP issue?

Postby StephenKClark » 24. February 2009 18:34

Thank you for the help, despite the 'out-of-band,' reference to non-ApacheFriends insight.

I am uninstalling everything and then going to reinstall plus make the rename suggestion you provide.

I will report results afterwards.

Regards,

Stephen
StephenKClark
 
Posts: 5
Joined: 24. February 2009 14:32

Re: My XAMPP on Vista install stopped working: PHP issue?

Postby StephenKClark » 24. February 2009 19:17

After uninstalling XAMPP and reinstalling it (xampp-win32-1.7.0-installer.exe) and applying the xampp-patch2-win32-1.7.0-installer, I still have the problem of the PHP CLI closing and throwing the pop-up dialog.

I was able to find the following files in the c:\xampp\apache\bin and c:\xampp\php directories. Both of these files already existed; libmysql_5.0.51a.dll and an existing copy of libmysql.dll. So, in order to rename the longer one 'mysql.dll,' I had to first delete the existing file by that name and then rename the longer one. This did not solve the problem after restarting the services and trying the Windows CMD line again.

Thoughts?

Stephen
StephenKClark
 
Posts: 5
Joined: 24. February 2009 14:32

Re: My XAMPP on Vista install stopped working: PHP issue?

Postby Wiedmann » 24. February 2009 19:43

I still have the problem of the PHP CLI closing and throwing the pop-up dialog.

One (or more) moment(s) please... Don't have a 1.7.0 on Vista yet.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: My XAMPP on Vista install stopped working: PHP issue?

Postby Wiedmann » 24. February 2009 22:49

OK, you must also copy "php_mysql_5.0.51a.dll" to "php_mysql.dll" and "php_mysqli_5.0.51a.dll" to "php_mysqli.dll" in "\xampp\php\ext".
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: My XAMPP on Vista install stopped working: PHP issue?

Postby StephenKClark » 25. February 2009 00:36

:D :D
You sir, are The Man! Nicely done. Thank you for the perseverance. With the last changes, I am good to go, and looking forward to putting this robust stack to good work.
With regards and appreciation,
Stephen
StephenKClark
 
Posts: 5
Joined: 24. February 2009 14:32

Re: My XAMPP on Vista install stopped working: PHP issue?

Postby admin » 07. April 2009 19:20

Wiedmann wrote:OK, you must also copy "php_mysql_5.0.51a.dll" to "php_mysql.dll" and "php_mysqli_5.0.51a.dll" to "php_mysqli.dll" in "\xampp\php\ext".


Not a real solution, only works for PDO MySQL. Will crash normal MySQL in return.
admin
 
Posts: 3
Joined: 07. April 2009 19:12


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 94 guests