Also, it's important to note that php5 should be installed prior to installing the latest version of OsCommerce.
osCommerce does
not require PHP 5. Release 2.2RC2
did accidentally include one or two PHP 5 functions, but Release 2.2RC2a included a fix for this (define replacement functions for systems not on PHP 5).