Care2x Development Blog

All the news regarding Care2x development

Installing care2x 2.6 alpha

Thanks to Mark Alan for this :

– bare metal pc with 1GHz P4 CPU, 512MB RAM, 320GB HD

– We did a setup from bare metal using, exclusively, Open Source
software to serve the Care2x HIS supporting software package from (a
farm of) Ubuntu 8.04.1 LEMP servers (LEMP = Linux + Nginx WebServer +
– The install procedure included the installation of the supporting
system  (PART A) and the installation of Gjergj’s Care2x 2.6 from the

– The total setup time, from bare metal to fully working Care2x System,
including downloading of software was 36 minutes

Description of the install procedure:

## start of procedure
*PART A) Installing the supporting system*

1. Setup Ubuntu 8.04.1 LTS server

2. Setup Nginx Web server
# We used Nginx not only because it uses far less resources than
Apache, but also because it is more stable, orders of magnitude faster
and is easily scalable to large clusters. We opted for Nginx ver. 0.6.32
from the Debian repositories has fewer bugs and better functionality
than the version in Ubuntu Hardy 8.04 LTS repositories. It consistently
installed without any problems and has been working reliably .
– wget
– sudo gdebi nginx_0.6.32 nginx_0.6.32-3_i386.deb
– sudo /etc/init.d/nginx start
# browse to http://localhost/ and you should get the spartan nginx
welcome screen.

3. Setup PHP and FastCGI
– sudo aptitude install –without-recommends php5-cli php5-cgi
php5-mysql php5-gd php5-sqlite
– sudo sed -i~ -e ‘/^magic_quotes_gpc/ s/=\(.*\)On/= Off/’
# Unlike Apache, Nginx does not have a way to spawn php5-cgi. To serve
PHP code/pages, we needed to setup an independent spawner. We tested
both the scripts from:
and other methods, like borrowing the spawn-fcgi code from lighttpd
1.4.20 project. They are both reliable methods that resisted well our
intentionally started server reboots.

4. Setup MySQL:
– sudo aptitude install –without-recommends mysql-server
– sudo mysql_secure_installation
– sudo /etc/init.d/mysql restart
– sudo aptitude install –without-recommends php5-gd php5-sqlite
– sudo sed -i~ -e ‘/^magic_quotes_gpc/ s/=\(.*\)On/= Off/’
/etc/php5/cgi/php.ini # disable magic quotes

5. Setup phpMyAdmin
– sudo aptitude install –without-recommends phpmyadmin
# press <ENTER> when asked for the “Web server to reconfigure
– sudo ln -sf /usr/share/phpmyadmin /var/www/nginx-default/
– browse to <http://localhost/phpmyadmin&gt; and test it.

*PART B)  Installing Care2x  2.6 from the SVN*

– mkdir /tmp/care2x-svn
– cd /tmp/care2x-svn
– svn co
– sudo mv /tmp/care2x-svn/2.6 /home/care2x
– sudo chown -R www-data.www-data /home/care2x
– sudo ln -sf /home/care2x /var/www/nginx-default/care2x
– browse to: http://localhost/care2x/  and continue the installation
procedure from there.

browse to <http://localhost/care2x/index.php&gt; to use care2x
## end of procedure


Filed under: General

%d bloggers like this: