{"id":7,"date":"2008-06-07T15:15:04","date_gmt":"2008-06-07T07:15:04","guid":{"rendered":"http:\/\/blog.lolyco.com\/sean\/?p=7"},"modified":"2008-06-08T17:24:26","modified_gmt":"2008-06-08T09:24:26","slug":"oscommerce-22rc2a","status":"publish","type":"post","link":"https:\/\/blog.lolyco.com\/sean\/2008\/06\/07\/oscommerce-22rc2a\/","title":{"rendered":"osCommerce-2.2rc2a"},"content":{"rendered":"<p>Installed the latest stable <a title=\"osCommerce website\" href=\"http:\/\/www.oscommerce.com\" target=\"_blank\">osCommerce<\/a> distribution today, on a new domain. It&#8217;s a slightly newer version than the one that&#8217;s providing the <a title=\"Lolyco.com\" href=\"http:\/\/lolyco.com\" target=\"_blank\">Lolyco.com<\/a> shop. The installer is a breeze. There&#8217;s a chance I overlooked some of the installer&#8217;s complaints last time. On the front page of the installer there&#8217;s a &#8216;Server capabilities&#8217; box:<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2008\/06\/oscommerceservercapbox.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-8\" title=\"osCommerce install Server Capabilities Box\" src=\"http:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2008\/06\/oscommerceservercapbox.jpeg\" alt=\"osCommerce install Server Capabilities Box\" width=\"204\" height=\"300\" \/><\/a><\/p>\n<p>I use cURL and OpenSSL almost daily, so I know the core software is installed for those two. The &#8216;slackpkg&#8217; command tells me I also have GD installed. PHP is installed from source on this server, and a quick check of &#8216;.\/configure &#8211;help&#8217; tells me there are command line arguments to switch on support for these extensions that I didn&#8217;t previously use.<\/p>\n<p>I usually keep a text file hidden away somewhere that I use to make notes of all the substantial changes I make to my servers, to refer to in cases like this. That text file can be vital in a catastrophe too &#8211; if you can&#8217;t get an image of the server software running on a replacement machine, it can be useful to know how to rebuild the server software from scratch. If you don&#8217;t keep notes, but you don&#8217;t delete your source trees after you build them, you can often find a copy of the configure arguments you last used in a file called &#8216;config.log&#8217;.<\/p>\n<p>To add the support for the missing extensions, all that needs to be done is to reconfigure the makefiles by adding<\/p>\n<pre>--with-gd --with-openssl --with-curl<\/pre>\n<p>to the configure arguments. To see the effect of the changes, complete the PHP make and install process, and restart your webserver (I forgot this last bit for a few heart-stopping, dizzying moments when all the sites on this server stopped working. Remember kids, don&#8217;t work on production servers!).<\/p>\n<p>Once the osCommerce install page was refreshed, all those red crosses had turned to ticks. After setting up a MySQL database for the osCommerce shop, and filling in the database credentials and location on the installation page, you&#8217;re finished &#8211; osCommerce is installed and ready to go!<\/p>\n<p>Installation really couldn&#8217;t be made much simpler, in my mind. Which is why the first view of your new online shop is such a shock &#8211; it&#8217;s UGLY! Unlike many other open source projects that support you in changing the look of your website, osCommerce provides no built-in help at all for changing the theme of your sites. There are lots of very cool open source themes you can use though, just visit the <a title=\"Templates and Themes\" href=\"http:\/\/addons.oscommerce.com\/category\/Templates_and_Themes\" target=\"_blank\">osCommerce Templates and Themes<\/a> collection. I&#8217;ve got to confess to giving up with this option &#8211; the first theme I saw that I liked required the complete replacement of all the PHP code in the whole project. If you&#8217;re at all bothered about the security of open-source projects, that&#8217;s exactly the sort of thing you should avoid like the plague.<\/p>\n<p>I resorted to copying and modifying the theme from Lolyco.com &#8211; maybe this can be a little time-consuming, but this is what makes open-source great, in my mind. I can take something I&#8217;ve used before, modify it to fit a new need, maybe even improve both sites while I&#8217;m at it. Once I&#8217;ve setup the look of the site, I just need to copy across some shipping and payment methods, setup the products and the static content of the site (terms and conditions, about us &#8211; that kind of thing) and I&#8217;ll be ready to sell! Stay tuned for part 2.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installed the latest stable osCommerce distribution today, on a new domain. It&#8217;s a slightly newer version than the one that&#8217;s providing the Lolyco.com shop. The installer is a breeze. There&#8217;s a chance I overlooked some of the installer&#8217;s complaints last time. On the front page of the installer there&#8217;s a &#8216;Server capabilities&#8217; box: I use [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[21,9,8,10,18,22,105],"class_list":["post-7","post","type-post","status-publish","format-standard","hentry","category-fixed","tag-e-commerce","tag-open-source","tag-oscommerce","tag-php","tag-server","tag-slackware","tag-software"],"_links":{"self":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":0,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/7\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/media?parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/categories?post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/tags?post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}