[1+1=2]

OneAndOneIs2

« UpdatesHealthy debate »

Fri, Aug 14, 2009

[Icon][Icon]Progress: The Windows way

• Post categories: Omni, Rant, Technology

So, being quite busy on the web developing front these days, I have a WAMP stack installed on my desktop machine.

(On my laptop as well, but that's not important at this point.)

So that's Windows XP, Apache 2.2.13, MySql 5.something and PHP 5.2.10 - all fairly stable, established releases.

But I started having little problems here and there. A website that worked fine on its host was broken locally. Weird little glitches. that I couldn't quite fix.

But hey, different hosts, different software versions, they can all make these things happen. I didn't worry much.

Then I got this book on PHP that I'm trying to work through. Unlike the stuff I've been using so far, it doesn't use mysql_ commands - it uses the next-gen mysqli_ ones. And they didn't work when I tried them here - PHP didn't understand mysqli

Which was odd, because it had the dll...

Long story short, I looked into apache's logs and saw some error messages. Five dll's weren't loading, one of them being the mysqli one.

PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_mysqli.dll' - The specified procedure could not be found.\r\n in Unknown on line 0

Problem identified.

But they were in the same extension directory as over 40 other dll files, all of which were found and working flawlessly. The half-dozen files that it was apparently unable to find were sitting right there, alongside dozens of others that it was loading without complaint.

I tried everything. Google. Forums. Reinstalls of PHP and Apache. Tinkering with the config files. Frequently my attempts to fix things broke them so badly that I had to spend hours undoing the effects of the fix just so I could get things back to their original broken-but-mostly-working state.

It was doing my head in. There was no reason for it. It was looking in the right place for files that were there. And failing to find them. Even telling Apache directly to load the dll itself just error'd out.

Finally, however, I have found the problem!

I came across a helpful bit of software called Dependency Walker and pointed *it* at the files in question.

And what do you know... the dll's that were causing all the trouble depended on *other* dll's that weren't there.

Or were present but broken. Registry issues.

...did I ever mention that somebody else was using this PC before me, and installed a *mountain* of crap on it? In the course of clearing up the damn thing when I started using it, not only did I uninstall more than half the applications on board, but I cleared sixteen gigs of files out of the download folder, dating back several years.

So I finally had the solution. Broken registry and missing dlls were preventing the dll's I had from running, so Apache was unable to load them, so was throwing up error messages.

So I downloaded the missing dll files and ran a few registry cleans and rebooted a few times, and now, at last, after all my hard work...

...Windows is so badly broken that it can't get online and throws up error messages even on bootup.

So I've plugged in my USB hard drive and backed up all the files I need, and I'm thinking that tomorrow, I'll see about installing a clean copy of XP. Then I'll reinstall the rest of the WAMP stack and all my other files, and at THAT point, I should at last have a fully-working machine again.

This is progress, dammit!!!

4 comments

Yoshanuikabundi
Comment from: Yoshanuikabundi [Visitor]
http://xkcd.com/349/

Had to be said.
14/08/09 @ 01:55
Dad
Comment from: Dad [Visitor]
Don't have IE 8 on there do you?!
(see [Icon][Icon]They outdid themselves)
14/08/09 @ 09:26
Kaotik4266
Comment from: Kaotik4266 [Visitor]
@Yoshanuikabundi: At least the sharks haven't attacked yet!

...
Why didn't you reformat it when you first got it if there was that much crap on there?! o.O
14/08/09 @ 10:13
oneandoneis2
Comment from: oneandoneis2 [Member] · http://geekblog.oneandoneis2.org/
@Yosh: Heh :o)

@Dad: Oddly enough, no...

@Kaotic: I was hoping I wouldn't need to.. apart from anything else, there's no optical drive..
14/08/09 @ 19:07

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)
 

[Links][icon] My links

[Icon][Icon] http://t.co/9VG31Knw
01/02/12

[Icon][Icon] Facebook Syndication Error
03/02/12

[Icon][Icon] I last listened to:
Johann Pachelbel - Canon in D major

[Icon][Icon] Most recent photo:
Submersible houseboat

[Icon][Icon]About Me

[Icon][Icon]About this blog

[Icon][Icon]My LQ profile

[Icon][Icon]My /. profile

[Icon][Icon]My Wishlist

[Icon]MyCommerce

[FSF Associate Member]


February 2012
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29        

Search

User tools

XML Feeds

eXTReMe Tracker

Valid XHTML 1.0 Transitional

Valid CSS!

[Valid RSS feed]

blog tool