Web Design and Development

March 24, 2008

PHP Versions at Modwest

We've had a few requests recently about upgrading PHP on the Modwest shared system. We specialize in PHP hosting -- we have substantial expertise in this arena -- but as of March 2008, we're not running the latest stable release of PHP on our shared system. We're running 4.4.6 as the default PHP version for new accounts, and the PHP development team currently recommends version 5.2.5.

There are a few technical barriers to upgrading the shared system, some of which I've hinted at in previous posts. The Modwest shared system is a centralized SAN-attached storage architecture, and in its current incarnation, there is only one technical server environment possible for all customers. This environment, despite periodic security and stability updates, is in many ways the same as it was in 2001 when we built it.  That is going to change in 2008.

In the meantime, here are the options available to customers on the shared system who would like to (or need to) utilize a more recent version of PHP.

  • You can switch a site to PHP 5.0.4 in OnSite under 'PHP Configuration'.
  • PHP 5.2.0 is also available on the shared system, but it's incomplete. Some new extensions simply cannot be installed in our current environment. More info about these first two options is in the FAQ.
  • Both VPS plans and managed servers provide PHP 5.2.

But the long term solution is to offer our customers on the shared system an array of choices with regards to their hosting environment. That's what we have planned. Customers whose web applications require the latest PHP version, extensions, and libraries, will eventually be able to configure their accounts to accommodate these requirements. Customers whose web apps are running just fine as is won't need to change a thing.

We intend to continue being an excellent hosting choice for PHP developers. We may be slightly behind the curve currently, but we've got some great things in the works. If you'd like to beta-test the new environment this summer, just let us know by writing to feedback at modwest dot com.

-JM







May 11, 2007

Carbon Calculator

First, an introduction: I'm Jody Tate, the web production manager for Modwest. That's a long title that means, in short, that I'm generally your first point of contact at Modwest when you'd like us to build a website from scratch or if you just need a phone number updated on your current site.

I wanted to write today about the Carbon Calculator recently launched by one of our development clients, Friends of the Forest, a program of the National Forest Foundation, also one of our clients.

Carboncalc_3

We developed the calculator for them over the last several months, but I hesitate to say we. I watched as Colin McCann and Dustin York, two of our developers who specialize in making PHP and MySQL sing in harmony, pulled off the programming. Cole Moeller, another member of our team, designed the calculator logo.

You can read a bit more about our development team and peek at some of our other projects on our design site. The Carbon Calculator is a great example of the sort of work we do in the web design and development department, but it's just one of a ton of projects we have in the works. I'll be posting more about those soon, so check back for updates.

-Jody

May 04, 2007

MIVA Misadventures at Modwest

Modwest has offered MIVA as our e-commerce solution for several years. Despite some administrative complexity (both on the server and client side), we've found it to be the most feature-complete shopping cart application on the market. Recently, though, it's presented some new challenges, some of which have affected a minority of our customers' hosted stores.

Over the last week or two, with about 15% of our hosted stores, we've seen intermittent lock-ups that cause the store to become completely inaccessible. Since there is no good way for us to know immediately upon a store malfunction, sometimes the store owner notices first and notifies us, and sometimes our server administration team notices first. After a great deal of research, we've determined a workaround which frees the store up and allows it to continue functioning, at least temporarily. What we haven't found yet is a way to prevent it from happening in the first place.

While we don't anticipate it'll permanently fix the problem,  we will be upgrading MIVA Empresa on Sunday, just in case it helps (as recently announced in OnSite).

Because our confidence in our ability to reliably provide MIVA software has dipped, at least temporarily, we're suspending installation of new stores until we're confident the situation is resolved appropriately.

Technical analysis of the problem:

Modwest runs a load-balanced cluster of web servers which all attach to a central SAN-attached file server using NFS. There's a concept of 'advisory locking' of files over NFS, which means a file which is locked should probably not be accessed/overwritten by other process, but this is not enforced in the protocol. MIVA, unfortunately, seems to ignore this nuance, and assumes that file locking over NFS is authoritative. MIVA does quite a bit of reading and writing to database files during normal operation, and (as we've now learned) can get itself into a situation in which it believes a file is locked, and waits around for the lock to be freed... forever. This results in a store that never loads for visitors.

Our workaround for digging MIVA stores out of this state isn't pretty, and there's some chance it could cause file corruption and/or data loss, but it does seem to get a store back up and running. Basically we make a copy of /mivadata, remove the original, and then move the copy back into place. i.e.,

# cp -a mivadata mivadata.new && mv mivadata mivadata.old && mv mivadata.new mivadata && rm -rf mivadata.old

It's our hope that MIVA can fix this issue, but we're also working on a Linux kernel module which, if we can do it, might help avoid this situation in the future. In the meantime though, we won't be installing new MIVA stores. We'll post a followup as soon as we have more information.

-JM


Powered by TypePad

June 2008

Sun Mon Tue Wed Thu Fri Sat
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 30