Koozali.org: home of the SME Server

care2x on sme7

Offline veeresh

  • ***
  • 51
  • +0/-0
care2x on sme7
« on: July 21, 2006, 07:04:46 PM »
Hi,

i want to install care2x open source hospital information system, on sme 7.

created an ibay named care2x and extracted the care2x files  to the html folder of the ibay. I get the following error when I try to install

Installer Error: Error parsing config file /home/e-smith/files/ibays/care2x/html/installer/config.php
writable_dir is not writable!

the installation works fine when i install care2x on a regular fedora install when i extract the files to /var/www/html/care2x.

can somebody point out what could be going wrong

Thanks in advance

Veeresh

Janm

care2x on sme7
« Reply #1 on: July 21, 2006, 08:24:00 PM »
Hej use putty and mc
then go to html of the ibay you created then
chmod 755 html
after go in html and
chmod 666 config.php
when you have finished change
chmod 444 config.php
Hope this help
Jan

Offline veeresh

  • ***
  • 51
  • +0/-0
care2x on sme7
« Reply #2 on: July 22, 2006, 08:15:21 AM »
Hi,

thanks Janm,

i have already changed the permissions of the html folder. still it does not go through.

the install.php uses the tmp directory, which also has full write permissions.

anything else to check.

Veeresh

Janm

care2x on sme7
« Reply #3 on: July 22, 2006, 09:52:58 AM »
Try this from server-manager in
Create, modify, or remove i-bays

Information bay name: care2x
Group: Everyone
User access via file sharing or user ftp: write=group, Read=everyone
Public access via web or anonymous ftp: Entire Internet (no password required)
Execution of dynamic content (CGI, PHP, SSI): enabled

after that

/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot

Jan

Offline ldkeen

  • *
  • 403
  • +0/-0
care2x on sme7
« Reply #4 on: July 22, 2006, 11:24:07 AM »
Might be a PHP base_dir restriction, have you tried this?
Code: [Select]
#/sbin/e-smith/db accounts setprop care2x PHPBaseDir /home/e-smith/files/ibays/care2x
#signal-event ibay-modify care2x

Lloyd

Offline veeresh

  • ***
  • 51
  • +0/-0
care2x on sme7
« Reply #5 on: July 24, 2006, 06:04:16 AM »
Hi,

Thanks Janm and ldkeen,

I tried both your solutions but still get the same error.

Any other leads


Veeresh

Offline ldkeen

  • *
  • 403
  • +0/-0
Re: care2x on sme7
« Reply #6 on: July 25, 2006, 11:00:57 PM »
Veeresh
Quote from: "veeresh"
Installer Error: Error parsing config file /home/e-smith/files/ibays/care2x/html/installer/config.php
writable_dir is not writable!
Veeresh

I think you'll have to edit /home/e-smith/files/ibays/care2x/html/installer/config.php and find out exactly where writable_dir is located. Maybe it's set to be /var/www/html/care2s/temp (or similar) when it should be /home/e-smith/files/ibays/care2x/html/temp. You could also try taking the base_dir restrictriction down even further to test if this is the problem.
Code: [Select]
#/sbin/e-smith/db accounts setprop care2x PHPBaseDir /
#signal-event ibay-modify care2x

Lloyd

Offline maykelsoft

  • *
  • 57
  • +0/-0
    • http://www.esi.com.ph
Care2x
« Reply #7 on: July 26, 2006, 10:14:49 PM »
I got this error after installation

Session Replace: Table 'care2x.care_sessions' doesn't exist

I can't figure out what i've missed.

Regards,

Mike

Janm

care2x on sme7
« Reply #8 on: July 27, 2006, 12:23:09 AM »
Maybe you need to go in mysql
and make care2x

ps: is it posibul you could send me the prog
then i could try to install it on a sme 7.0 final
to se the output here local

Jan

Offline maykelsoft

  • *
  • 57
  • +0/-0
    • http://www.esi.com.ph
Care2x
« Reply #9 on: July 27, 2006, 02:16:58 AM »
Hi Jan, thanks for the reply.

I have already created care2x db but i still got the problem.

By the way here is the link to the program:
http://sourceforge.net/project/showfiles.php?group_id=53886&package_id=48463&release_id=272256

Installation Procedure:
http://www.care2x.org/manuals/en_install_auto_2_1.htm

Thanks,

Mike

Offline veeresh

  • ***
  • 51
  • +0/-0
care2x on sme7
« Reply #10 on: July 27, 2006, 06:13:36 AM »
Hi,

hi maykelsoft,

I could not get any further from the above errors. can you just post how you came this far.

Thanks

Veeresh

Offline maykelsoft

  • *
  • 57
  • +0/-0
    • http://www.esi.com.ph
Care2x
« Reply #11 on: July 28, 2006, 07:47:57 PM »
After installation i got this error:
Session Replace: Table 'caredb.care_sessions' doesn't exist

There is no login screen...

Regards,

Mike

Offline maykelsoft

  • *
  • 57
  • +0/-0
    • http://www.esi.com.ph
Care2x
« Reply #12 on: July 31, 2006, 05:06:49 PM »
Hi Veeresh,

This is what I've done:
1. I created an ibay named care2x
2. I unzipped care2x soffware on that director (/home/e-smith/files/ibays/care2x/html
3. chown www:www -R /home/e-smith/files/ibays/care2x/html
4. I go to http://x.x.x.x/care2x/install/install.php

After inputting some values.... i got that error on DB. I don't figure out why? It seems that i followed the procedures well.

Regards,

Mike

Offline maykelsoft

  • *
  • 57
  • +0/-0
    • http://www.esi.com.ph
Care2x
« Reply #13 on: August 11, 2006, 09:39:46 PM »
Any news with these errors?

When I tried to re-do the installation I've now got this error:

Installer Error: Error parsing config file /home/e-smith/files/ibays/care2x/html/installer/config.php
writable_dir is not writable!


I tried this:
chmod 755 config.php --- still the same
chmod 777 config.php --- still the same

Please help.

Regards,

Mike

Offline maykelsoft

  • *
  • 57
  • +0/-0
    • http://www.esi.com.ph
Care2x
« Reply #14 on: August 11, 2006, 11:16:02 PM »
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';