PHP / Win annoyances with setup
Posted on 25 April 2009
If you’re a bit like me when you install a program, you try to install as much as possible. With some programs, installing everything, can cause conflicts, because not always everything works well together.
In the PHP world they’ve thought of something else. For a while (years, not months) they have a setup that gives you very neatly very many options. One such options is about tons of libraries that you can install together with your PHP installation. And if you’re a bit like me, you say “yes” I want them all, better safe then sorry.
But, if you are indeed a bit like me, you should also get some warning signs, like a bit a cold shiver going through your back, or an aching left big toe.
And not much later, if you are like me, you want to try out your new tool. Happy as you are you go to the command-line and try to start the program.
Error!
Another error!
Yet another error!
And if you’re like me, you would leave it to that. Really? No, you’d fix it, wouldn’t you? It won’t take you long to find out that it pops with errors saying that something is missing: the lib of ms_sql, the lib of oci8, the lib of ntwdblib.dll and so on and so on. The beauty of the errors is that the pop-up-error gives another error message than the startup warning. Which is just “unable to load dynamic library…. xxx.dll”:
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:\Program Files\PHP\PHP5.2\ext\php_mssql.dll’ – The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:\Program Files\PHP\PHP5.2\ext\php_oci8.dll’ – The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:\Program Files\PHP\PHP5.2\ext\php_pdo_mssql.dll’ – The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:\Program Files\PHP\PHP5.2\ext\php_pdo_oci.dll’ – The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:\Program Files\PHP\PHP5.2\ext\php_pdo_oci8.dll’ – The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘C:\Program Files\PHP\PHP5.2\ext\php_pdo_pgsql.dll’ – The specified module could not be found.
in Unknown on line 0
After ten, twenty, clicks, if you’re like me you won’t make it even to ten, you kill the application. Great! Prepare for a night of long annoying downloads.
I’ll be back on this tomorrow, as duty calls and the bed is waiting. But the bottom line is: the windows installation is not complete and you need to manually transfer a couple of zillions of files to get the command-line PHP working.
It’s beyond me why the PHP apache module works without warnings, but maybe I’m mistaken and I should check an overburdened log.
Congratulations, PHP, with this new version of annoyances. Go on like this and you even beat Microsoft some day!
Don’t follow the advised on the TechNet, MS Connect and MSDN forums, they are time-consuming and don’t work if you have a newer version of .NET installed like .NET 4.0. Instead, read this and easily fix this hard-to-resolve error by simply changing one registry value. read article
Ever tried to shrink a volume? Ever wondered why you cannot shrink a volume smaller than half its size? Ever wondered what $MFTMirr is all about and what it’s doing in the middle of your drive? Or do you just want to get the biggest available free space and shrink your drive? Then this article is for you — read article
Have you ever received this error using Windows System Backup and Restore Center? Never managed to get rid of it or it mysteriously keeps coming back? Here’s a lightweight and easy solution — read article
No responses yet. You could be the first!
Leave a Response
Additional comments powered by BackType