I have apache+PHP installed on a server 2003 machine. I have 2 versions of MySQL running on the machine, 4.1 (which runs on port 3306) and 5.1 (which runs on port 3307). Now I'm trying to connect to the 5.1 server with the PHP but it will not allow me to start apache when I have 'extension=php_mysqli.dll' un-commented in the php.ini file. I've done some research and from what I've found the problem is caused by multiple installations of MySQL, but I need the 4.1 as I have multiple databases that cannot be converted yet. Does anyone know how I can get around this problem without having to convert my 4.1 databases?

Thanks for any suggestions.

  • Do the apache error logs show any output when you have that option enabled? Jan 18 '12 at 4:44
  • No, nothing is written in the error log except saying the previous shutdown was unclean Jan 18 '12 at 14:37

My recommendation would be to have one version of MySQL on that server to connect to and then have a VM (Virtual machine) within that server hosting the other MySQL version. This way the server can hold both but they wont necessarily see each other. You can set up most VMs to allow access through a bridged network interface card.

  • I wanted to avoid doing this but I guess its my only choice Jan 19 '12 at 22:14

For anyone who has this problem I fixed it by upgrading to the latest PHP and it started working.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.