It's working now...
Version: 2.2
I followed this instructions:
1. Make sure that the server can write in the following directories and files. NOTE: In most servers, file access permission is highly restrictive. Make sure that the following directories and files are system writeable. The easiest way to do this is to CHMOD 777 the following:
/cache/barcodes/
/counter/hits/
/counter/hitcount.txt
/fotos/encounter/
/fotos/news/
/fotos/registration/
/logs/ (and all its subdirectories)
/med_depot/img/
/pharma/img/
/radiology/dicom_img/
/gui/img/logos_dept/
/gui/smarty_template/templates_c/
A safer way to change the file permissions is to use the CHOWN command. Note: this functions only in *nix/Linux servers.
For windows users, right click on the file, select "properties" and remove any write protection.
2. Use an editor and open the file "inc_init_main.php" inside the directory "/include" .
• Enter the proper host, username, and password information for your mySQL database. If your mySQL resides on the same machine and uses the same IP address as the Apache web server you can use the default settings.
The defaults are:
$dbhost = 'localhost'
$dbusername = 'httpd'
$dbpassword = '' (empty string)
Alternative defaults are:
$dbhost = 'localhost'
$dbusername = 'root'
$dbpassword = '' (empty string)
• Enter the database name. You must remember this name since you need it in creating the database in later steps.
For example: $dbname = "caredb";
• Change the following three secret keys with unique keys of your choice.
$key : The secret key for the first level script lock.
$key_2level : The secret key for the second level script lock.
$ley_login : The secret key for the third level script lock.
• Enter the domain or ip addresses and hosts information.
For the main domain, enter the domain or host name without the http:// or https:// part and without a trailing slash as value of the $main_domain variable:
For example: $main_domain =
www.st-john-hospital.org ;
Note: If the web server is within a network, enter specifically the IP adresses for the hosts. Never use "localhost".
If you are running Care2x in an SSL server, make sure that the $httprotocol variable in this script is set to "https".
For example: $httprotocol='https';