richardstan Posted August 12, 2009 Share Posted August 12, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/169937-solved-apache-crash-when-running-mysql-command/ Share on other sites More sharing options...
PFMaBiSmAd Posted August 12, 2009 Share Posted August 12, 2009 There are axillary .dll files in the main php folder. You need to add that folder to the Windows PATH statement so that they can be found. Reboot or log off/ log on to get any change made to the Windows PATH statement to take effect. Quote Link to comment https://forums.phpfreaks.com/topic/169937-solved-apache-crash-when-running-mysql-command/#findComment-896460 Share on other sites More sharing options...
richardstan Posted August 12, 2009 Author Share Posted August 12, 2009 I've done this and there is no effect on the running it still crashes Apache. Do you think this could be a bug with the latest release? Richard. Quote Link to comment https://forums.phpfreaks.com/topic/169937-solved-apache-crash-when-running-mysql-command/#findComment-896466 Share on other sites More sharing options...
PFMaBiSmAd Posted August 12, 2009 Share Posted August 12, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/169937-solved-apache-crash-when-running-mysql-command/#findComment-896503 Share on other sites More sharing options...
richardstan Posted August 13, 2009 Author Share Posted August 13, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/169937-solved-apache-crash-when-running-mysql-command/#findComment-897621 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.