• Fun with Amazon.com
    • Ganglioneuroma: Rarest and most benign
    • It's done
    • Fun with Yelp...
    • That's no moon...
    • Online classes
    • Insert your getting stoned joke here
    • The new Gmail look and feel...
    • Garmin 60Csx vs Oregon 450
    • Our 2011 Apple Harvest
    • Expense report
    • Hard Drive Destruction
    • It's the small things...
    • Random passwords
    • Cherry Dutch Baby
    • The paperless office needs a paperless toilet
    • Cilantro-pistachio pesto pesto, rice and beans
    • My first iPhone hide
    • Yeast Waffles
    • Seiko battery replacement
    • Nikon D40 won't power up
    • Mapnificent
    • Geocache Queries
    • iPhone 4 travel map
    • I'm Here To Put You Back On Schedule
    • Disruptive technologies
    • Fraud alert
    • Cleaning between the door glass of a Frigidaire oven
    • Snap, Crackle and Pop
    • Dolphin Kick
    Minty Boost Tape Art

    PHP-vil

    By jim On 28 March 2008 · 3 Comments · In Computers, Cool Geek Tricks

    All I wanted to do was migrate my work-related forum to a new host.  Here’s how it should have worked:

    1. Copy stuff over
    2. Edit configuration files
    3. Populate database
    4. rock on

    Here’s how it actually worked:

    1. Copy stuff over
    2. Edit configuration files
    3. Populate database
    4. Software was unable to connect to a database because php5′s developers do not enable mysql by default.  Their claim, “This won’t actually affect that many people.”  Ex-squeeze me?  This is like saying you’re not going to include a fuel system in an automobile, customers can install their own.   Yes, that wouldn’t affect many people, if your definition of “many” is “everyone plus one more.”
    5. For most software, I would expect I could just plop in a runtime library, twiddle a config file, and move on.  Nope.  PHP’s philosophy is you need to rebuild it from scratch.   They don’t make this easy, either.  Just replicating the set of options my runtime non-MySQL-aware version had took several hours over a weekend of iteratively downloading, configuring, installing, cursing, updating, reconfiguring, and recursing.  Thirty packages, much of the time guessing the magic name to feed to “yast” or resolving dependencies when manually compiling from source.

    XAMPP rulesA few weeks after recovery, I was talking with someone else about the wiki site I host and he mentioned using XAMPP on his windows box to test site changes.  Turns out they’ve done all the heavy lifting by pre-packaging all of the open source runtimes into a clean installation.  It’s a pretty complete set for Linux, Windows, Mac and even Solaris.

    So, there is apparently no need to struggle with the insanely stupid decision the PHP team made with PHP5 because the ApacheFriends have taken care of this.

    Props to them! 

    • Share:
    Share →
    Tweet

    3 Responses to PHP-vil

    1. woodstock says:
      30 March 2008 at 9:50

      I’m fascinated by PHP’s attitude toward MySQL. Just what do they think PHP could do without the database to back it up? As near as I can tell, it’s no more functional by itself than [X]HMTL.

      As for the wiki…good for you! I’ve been beating my head against mediawiki for a month and still can’t get it configured right. I just keep reminding myself: I’m an information architect, not a programmer. :)

      Reply
    2. jim says:
      30 March 2008 at 10:00

      It would seem a SQL-less PHP takes the dynamic out of “dynamic web” :) “WTF?!” I mean, seriously, MySQL is the most popular open source database available.

      As for mediawiki, I keep reminding myself I’m a marketing guy, not a techie. :o) Most of the problems I’ve had with setting up MediaWiki are due to their rigid requirements clashing with Dreamhost’s forcing everything to php4 unless specifically done otherwise. The last time I successfully upgraded, I essentially had to do a reinstall, then move the database over.

      Jim

      Reply
    3. st. heave says:
      15 April 2008 at 20:02

      people people people, php 5.0 dropped the mysql specific functionality in favor of a general db adapater. the problem is most likely that you’re older php forum/wiki app used the older mysql specific calls, and needed that adapater. if you’d just re-written it from scratch you would have been fine!

      Reply

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    *

    *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    • Recent Posts

      • Fun with Amazon.com
      • Ganglioneuroma: Rarest and most benign
      • It’s done
      • Fun with Yelp…
      • That’s no moon…
      • Online classes
      • Insert your getting stoned joke here
      • The new Gmail look and feel…
      • Garmin 60Csx vs Oregon 450
      • Our 2011 Apple Harvest
      • Expense report
      • Hard Drive Destruction
      • It’s the small things…
      • Random passwords
      • Cherry Dutch Baby
    • Recent Comments

      • Fun with Amazon.com
        • Kiri: The TWM Raven-parody is priceless. Thanks for sharing all these weird and funky...
      • It’s done
        • Kiri: I was fascinated to get this gown’s-eye-vie w of the hospital and surgery...
        • jim: Thanks, you all. I am feeling much better. @John – When I knew the surgery...
      • Cleaning between the door glass of a Frigidaire oven
        • Lisa Bishop: Thanks so much! This was a great help in cleaning our oven door after a...
        • Tracey: Thanks for your post on how to clean between the door. I can’t stand...
        • Krys: Thanks for the awesome post. Lo and behold found out my door comes out…...
        • winniekate: OK. I’ve got a Kenmore 790 3 ys ago. Got the same drip in my glass...
        • Kate: I say that to my 30-year-old fiance on a fairly regular basis as well. ;)
      • Ganglioneuroma: Rarest and most benign
        • jim: Thanks, guys. @Phil – I am looking forward to our next hike! @John –...
    • Twits

      • @sbrisko kk000ll!!!!!!1111!!1! I can't decide if I want to call it "The Vault" or "Flagship Frodo." 09:34:31 PM February 07, 2012 in reply to sbrisko ReplyRetweetFavorite
      • Writing a letter to cancel a credit card is so much more efficient than calling and having to deal with the retention department. 01:43:45 AM February 07, 2012 ReplyRetweetFavorite
      • @doomnibbler Sounds promising, but needs a #handie hashtag. 12:44:56 AM February 06, 2012 in reply to doomnibbler ReplyRetweetFavorite
      • RT @mightyrosebud: Just read a list of "100 things to do before you die". I'm surprised "yell for help" wasn't one of them." 01:54:18 AM January 30, 2012 ReplyRetweetFavorite
      • @voxkev Let me know if you find an app. I used a python script (http://t.co/tTN5PlRq). For music, Dupin helps identify dupes. 08:41:07 AM January 28, 2012 in reply to voxkev ReplyRetweetFavorite
      @jim_carson
    @sbrisko kk000ll!!!!!!1111!!1! I can't decide if I want to call it "The Vault" or "Flagship Frodo."  — jim_carson
    loading Cancel
    Post was not sent - check your email addresses!
    Email check failed, please try again
    Sorry, your blog cannot share posts by email.