Emergency server upgrade - please report any glitches
5 users
1k+ views
You may have seen in the news today that two critical vulnerabilities were just unveiled in software that runs about 70% of Internet sites. This has led to quite a scramble, with portions of the Internet going dark while companies and developers rush to apply patches. The vulnerabilities are about as severe as they can be -- you can read more about them here.
And guess what I just spent the past 7 hours doing (from a hotel room in Switzerland, sigh...)
A lot of the underlying software stack for DCSki is a bit dated -- I've been planning on doing a server hardware upgrade after this ski season, which would be a natural time to bring the whole software stack up to date. But I just had to essentially do a heart transplant on DCSki while it was running. And software isn't simple; there can be a lot of dependencies, so when you try moving one piece of software forward you realize there are 20 other things you have to fix.
Yeah, my brain is fried at this point.
Anyway, to make a long story short, I believe DCSki has been patched so it is not affected by these vulnerabilities, but the new version of the software stack may cause some weird behaviors, bugs, glitches, etc. I've tried testing a lot of the site and think I have caught most of the bugs, but I could use help from all of you too. So if something looks odd or doesn't behave the way you think it should, please post your observations here and I'll investigate.
Saw this posted to the Internet and it seems pretty accurate, ha.

To be fair, PHP is a workhorse and still gets the job done. It's been incredibly robust over the years. AI is going to start finding exploitable vulnerabilities in all kinds of software that would have been nearly impossible for humans to find, so unfortunately this is the new world we'll be living in.
needawax: DCSki runs on a Mac Mini! It's all UNIX-based. Here's the progression of hardware DCSki has used over the years:
- Virtual server on a Sun workstation
- Dedicated Cobalt Raq Server (Linux-based)
- Dedicated Apple XServe (OS X / UNIX-based)
- Dedicated Mac Mini (OS X / UNIX-based)
Since 2012, it's been running on a colocated Mac Mini. I've upgraded to a newer Mac Mini once during that time, and plan to again sometime early next year, if the budget allows, although the current hardware continues to do just fine. The Mac Mini has been a phenomenal hosting environment.
Almost the entire DCSki codebase was written from scratch by me; it's a MAMP-based stack.
perl (-cgi) is dead. (same thing - it isn't in a lot of cases)
needawax wrote:
perl (-cgi) is dead. (same thing - it isn't in a lot of cases)
The very first version of DCSki actually used Perl and cgi-bin and Server Side Includes. I used a flat file as a "database" and dynamically constructed the HTML by executing Perl scripts. It was trickier to get good performance back then, and I remember having to jump through all kinds of hoops to get good page load performance.
If I recall correctly I first used PostgreSQL as a relationship database, but eventually jumped to MySQL once it gained better feature-parity.
There were lots of transitions over the years (adoption of PHP, CSS, JavaScript, AJAX, Bootstrap, etc.), but things have been pretty stable for the past decade or so and I haven't seen any need to jump on any new technological bandwagons. I've never been a fan of chasing every "new" framework fad, and for me the focus has always been on producing the best content and experience for readers. If I'm spending all my time playing with different technologies, that gets in the way of that goal.
LAMP / MAMP stack... heh, that explains the speediness! Keep up the good work! (You're right, though, the proliferation of web technologies have "muddied the waters" so to speak and you need to go with what works and not get sidetracked by that)
Very impressive Saturday in Switzerland. I was an early cgi lib user ~ 1990. Yeah that makes me old. Very impressive your mac mini usage, the website performs wonderfully.
I'm impressed at the amount of work and energy that Scott does for this site. And it's free!
For all of the non-supporting members on this site - consider upgrading to a supporting member. Scott just spent 8 hours of his own time fixing this site.
So, 19 days later, I found a glitch. The new version of PHP presented a compatibility issue with an old version of a library DCSki uses to send e-mails.
Which meant that DCSki hasn't sent any e-mails in the past 19 days.
I'm in the process of fixing that now.
It's not an earth-shattering problem, because DCSki doesn't send all that many e-mails to begin with, but it does mean you might not have received an e-mail notification for subscribed topics, if someone sent you a private message, etc. And new users trying to register for an account didn't receive an activation e-mail -- I'll reach out directly to folks that applied in the past couple weeks to get that taken care of.
Sigh.

