Jump to content

[SOLVED] Apache Crash when Running MySQL command.


richardstan

Recommended Posts

Hi.

I have installed Apache 2.2, PHP 5.2.10 and MySQL 5.1 installed on a Vista Home Premium PC.

I have uncommented php_mysql.dll in the php.ini file and set the extension_dir to an absolute path instead of a relative "./ext" because apache was throwing up errors before hand about not being able to load the module.

 

When i try to run a mysql command such as mysql_connect, the web page takes several seconds to load, then comes up with an internet explorer cannot show this page error. Apache then crashes. The apache error log  shows:

Parent: child process exited with status 255 -- Restarting.

 

There is obviously a prolem with the mysql module somewhere in php but i cant figure out what it is

 

Can someone please help me!

Thanks

Richard.

Link to comment
Share on other sites

As long as all the php files are from the same build/version, the extension .dll's are in the extension_dir folder and the aux dll's are in the main php folder and that folder is in the Windows PATH, what you are doing will work.

 

What method did you use to install php, the .msi installer or the .zip package?

Link to comment
Share on other sites

Ok i solved this problem with APACHE CRASHING when calling PHP MySQL functions.

 

Make sure "libmysql.dll" is somewhere that can be seen by Apache. Copy it out of your PHP directory and into the same directory as Apache.

 

Hope this helps anyone that comes across this thread.

Thanks

Richard.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.