OpenEMR and XAMPP on Fedora (linux)

diamondgr wrote on Monday, May 03, 2010:

I tried to install OpenEMR with the help of XAMPP on Fedora.

I followed the instructions to install XAMPP for Linux.
It seems to work. I run the server OK.

I tried now to install OpenEMR using the instructions from the page http://www.openmedsoftware.org/wiki/OpenEMR_3.2_Linux_Installation.

I changed globals.php file to the correct ones (according to the installation on windows I found here http://openemr.blogspot.com/2006/10/how-to-install-openemr-with-xampp-in.html)

When I try to setup (http://localhost/openemr/setup.php) I get the following results.

Notice: Undefined index: state in /opt/lampp/htdocs/openemr/setup.php on line 10
OpenEMR Setup
Notice: Undefined index: server in /opt/lampp/htdocs/openemr/setup.php on line 111
Notice: Undefined index: port in /opt/lampp/htdocs/openemr/setup.php on line 112
Notice: Undefined index: dbname in /opt/lampp/htdocs/openemr/setup.php on line 113
Notice: Undefined index: root in /opt/lampp/htdocs/openemr/setup.php on line 114
Notice: Undefined index: login in /opt/lampp/htdocs/openemr/setup.php on line 115
Notice: Undefined index: pass in /opt/lampp/htdocs/openemr/setup.php on line 116
Notice: Undefined index: loginhost in /opt/lampp/htdocs/openemr/setup.php on line 117
Notice: Undefined index: collate in /opt/lampp/htdocs/openemr/setup.php on line 118
Notice: Undefined index: rootpass in /opt/lampp/htdocs/openemr/setup.php on line 119
Notice: Undefined index: iuser in /opt/lampp/htdocs/openemr/setup.php on line 120
Notice: Undefined index: iuname in /opt/lampp/htdocs/openemr/setup.php on line 121
Notice: Undefined index: igroup in /opt/lampp/htdocs/openemr/setup.php on line 122
Notice: Undefined index: openemrBasePath in /opt/lampp/htdocs/openemr/setup.php on line 123
Notice: Undefined index: openemrWebPath in /opt/lampp/htdocs/openemr/setup.php on line 124
Welcome to OpenEMR. This utility will step you through the installation and configuration of OpenEMR for your practice.
    * Before proceeding, be sure that you have a properly installed and configured MySQL server available, and a PHP configured webserver.
    * Detailed installation instructions can be found in the 'INSTALL' manual file.
    * If you are upgrading from a previous version, do NOT use this script. Please read the 'Upgrading' section found in the 'INSTALL' manual file.
We will now ensure correct file and directory permissions before starting installation:
Ensuring following files are world-writable...
'/opt/lampp/htdocs/openemr/library/sqlconf.php' file is ready.
'/opt/lampp/htdocs/openemr/interface/globals.php' file is ready.
Ensuring following directories have proper permissions...
'/opt/lampp/htdocs/openemr/documents' directory is ready.
'/opt/lampp/htdocs/openemr/edi' directory is ready.
'/opt/lampp/htdocs/openemr/era' directory is ready.
UNABLE to open directory '/opt/lampp/htdocs/openemr/library/freeb' for writing by web server.
(configure directory permissions; see below for further instructions)
UNABLE to open directory '/opt/lampp/htdocs/openemr/custom/letter_templates' for writing by web server.
(configure directory permissions; see below for further instructions)
'/opt/lampp/htdocs/openemr/gacl/admin/templates_c' directory is ready.
'/opt/lampp/htdocs/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/compiled' directory is ready.
'/opt/lampp/htdocs/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/cache' directory is ready.
You can't proceed until all directories are ready.
In linux, recommend changing owners of these directories to the web server. For example, in many linux OS's the web server user is 'apache', 'nobody', or 'www-data'. So if 'apache' were the web server user name, could use the command 'chown -R apache:apache directory_name' command.
Fix above directory permissions and then click the 'Check Again' button to re-check directories.

I’m confused. I’m doctor and not a computer geek. Never needed to install XAMPP etc before.

Thans for your help.

anonymous wrote on Monday, May 03, 2010:

Hello,

In your /etc/php.ini file change: “display_errors = On” to “display_errors = Off”

type in the following at command prompt: chown -R apache:apache /opt/lampp/htdocs/openemr/library/freeb
and this too: chown -R apache:apache /opt/lampp/htdocs/openemr/custom/letter_templates

You should be able to continue the installation after this.

Regards,
Chris
www.ehrlive.com

diamondgr wrote on Monday, May 03, 2010:

The php.ini file is already to off.

I ran the 2 commands too and then started the XAMPP server but still get the same result.

What’s next?

anonymous wrote on Monday, May 03, 2010:

You know what, I just realized that you used xampp on linux for this… i am not sure why… but in either case try this. I have never installed xampp on linux since it’s better to just install the individual packages. But I am going to take a stab and say the php file structure are more or less the same directory structure as the windows xampp

try editing /opt/lampp/php/php.ini and turn display_errors off.

type in the following at command prompt: chown -R www-data:www-data /opt/lampp/htdocs/openemr/library/freeb
and this too: chown -R www-data:www-data /opt/lampp/htdocs/openemr/custom/letter_templates

if this doesn’t work, it is worth the money to pay for a professional support company such as mine to install openemr for you without using xampp as it would be more secure. Xampp is more for development environment and is very vulnerable to security issues.

Regards,
Chris
www.ehrlive.com

diamondgr wrote on Monday, May 03, 2010:

I found the solution.

1. Location of the file php.ini was /opt/lampp/etc/php.ini

2. The chown commands I use were:

chown -R nobody:nobody /opt/lampp/htdocs/openemr/library/freeb
chown -R nobody:nobody /opt/lampp/htdocs/openemr/custom/letter_templates

I wrote HOW TO in Greek here.

My friend, if you can see, I installed it using 2 ways.
First was Fedora’s packages and second was with XAMPP.

Personally I find the first (Fedora) the correct one.
Regards,
Stathis