A practical use of Open Source Code Softwares

As we started the project of our web site, weOpen Source Code database. A matter of marketing
knew that the proprietary software costs would be? Probably.
too high for our financial resources. Our only optionAs for the programming language PHP, we had to
then was to make use of Open Source Codeuse an object oriented application structure. There
softwares.are many PHP application structures being offered
However, within the Open Source Code there arewith Open Source Code license. Object oriented
lots of softwares to choose from, and it´s upapplication is very important, because it makes
to the system analyst/programmer to pick the onesprogramming very easy and scalable up to the point
that best suit the project goals.where the system may grow without many
In our case, we picked Linux as our operatingproblems. Also, it helps to keep PHP code separated
system. However we faced a big question: Whichfrom HTML, with the help of some specific libraries,
Linux distribution ? There are dozens of linuxsuch as Smarty. We make use of Smarty library and
distributions, each one with specific advantages,we believe that it is a very important resource, which
sometimes with or without paid services.can even make web pages faster thru the use of its
We chose linux Slackware because we thought thatcache functions.
it would suit better our needs, in terms of stabilityAlso a very important set of libraries worth
and reliability. Slackware is a conservative distribution,mentioning for PHP systems, is the PEAR libraries. In
meaning that it only offers in its distribution packagePEAR web site, among the many libraries being
kernel versions and third party libraries, once it´soffered, there are the database interface DB and the
been proved to be stable and reliable. As a result,MAIL_QUEUE, which sends emails thru the use of
Slackware is one the most stable Linux operatingdatabase.
system on the market. If the user wishes the mostAs we came to the end of our project, we had to
recent Linux kernel and libraries, we recommend touse some sort of real time database replication. For
look for a different distribution.that we chose the DRBD and Heartbeat libraries. The
Another reason for us picking Slackware, wasuse of database replication is very important and
because of its text interface, which at the beginningshould not be postponed. Just after 3 months our
may become a bit difficult, in the long run however itsystem got into production, our server hard disk
offers a better understanding of the Linuxbecame bad. Thru the use of DRBD/Heartbeat we
environment. This way most of Slackwarewere able to put the system back into production
configurations are done thru text scripts.within seconds, without loosing any data. DRBD
Once it was set the operating system, we pickedHeartbeat replication is done thru the use of a lan
Apache as our web server. Apache is one of thenetwork between the server and slave nodes.
most popular web server in the internet. For serverOur project also makes use of ImageMagick (enlarge
programming language, we chose PHP. Also, a veryand reduce images), Iptables (firewall), Tsearch2(text
popular programming language. Our experience withsearch in portgresql) and Mon (linux monitoring tasks).
Apache/PHP proves that this setup is very reliable,Also a very important library worth mentioning is the
working extremely well in our productionpseudo APC compiler for PHP. Speed is always a
environment. For workstation programming language,critical factor for internet sites.
we chose javascript, which besides of having aOur web site is already in production and based upon
simple syntax, it offers lots of resources.our experience we can say that the Open Source
Apache web server is really a complete web server.Code softwares we picked, proved to be extremely
Also, it can become very complex with manyreliable and stable. Open Source Code softwares can
configuration setups.certainly be an excellent option for developing web
For our database, we picked Postgresql. Thissites.
database has been made available to the public forRoberto Sedycias
more than 15 years, and besides of being wellIT Consultant
debugged, it offers so many resources that it hasThis article is under GNU FDL license and can be
become one of the best database options fromdistributed without any previous authorization from
Open Source Code softwares. Extremely reliable,the author. However the author´s name and all
Postgresql has reported cases where there havethe URL´s (links) mentioned in the article and
been databases in production with over 4 terabytes.biography must be kept.
Besides all of that, Postresql is not the most popular