# AM I Missing or messing something?

**URL:** <https://community.open-emr.org/t/am-i-missing-or-messing-something/2046>\
**Category:** Management and Administration\
**Created:** [September 2, 2007, 12:12pm UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046 "2007-09-02T12:12:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 2, 2007, 12:12pm UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/1 "2007-09-02T12:12:19Z")

</div>

**[dr\_smit](https://sourceforge.net/u/dr_smit/)** wrote on [Sunday, September 02, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119):

After [http://localhost/openemr-2.8.3/setup.php](http://localhost/openemr-2.8.3/setup.php)… I get a dialouge box saying:-

You wish to open: setup.php  
it is a: php script

do you wish to:  
1&nbsp; open with Kwrite / other…  
2&nbsp; save it to the disc

The following is the state of installations that I have done  
Mandriva 2007  
OpenEMR 2.8.3  
and…

apache

[dr\_smit@smitdesk ~]$ rpm -qa | grep apache  
apache-base-2.2.4-6.2mdv2007.1  
apache-conf-2.2.4-4mdv2007.1  
apache-mod\_php-5.2.1-4mdv2007.1  
apache-doc-2.2.4-3mdv2007.1  
apache-modules-2.2.4-6.2mdv2007.1  
apache-source-2.2.4-6mdv2007.1  
apache-mod\_php4-4.4.6-3mdv2007.1  
apache-mpm-prefork-2.2.4-6.2mdv2007.1

PHP

[dr\_smit@smitdesk ~]$ rpm -qa | grep php  
php-recode-5.2.1-1mdv2007.1  
php-clamav-0.12a-8mdv2007.1  
php-xmlrpc-5.2.1-1.1mdv2007.1  
php-openssl-5.2.1-4.2mdv2007.1  
php-ftp-5.2.1-1.1mdv2007.1  
php-gettext-5.2.1-1mdv2007.1  
php-pdo\_sqlite-5.2.1-1mdv2007.1  
php-imap-5.2.1-1mdv2007.1  
libphp4\_common4-4.4.6-3mdv2007.1  
php-sqlite-5.2.1-1mdv2007.1  
php-netools-0.2-3mdv2007.1  
php-pdo\_pgsql-5.2.1-1mdv2007.1  
php-iconv-5.2.1-1mdv2007.1  
php-gd-5.2.1-1.1mdv2007.1  
php-sockets-5.2.1-1mdv2007.1  
php-pspell-5.2.1-1mdv2007.1  
php-ctype-5.2.1-1mdv2007.1  
apache-mod\_php-5.2.1-4mdv2007.1  
libc-client-php0-2006c1-2mdv2007.1  
php-sysvmsg-5.2.1-1mdv2007.1  
php4-tokenizer-4.4.6-1mdv2007.1  
libphp5\_common5-5.2.1-4.2mdv2007.1  
php-pdo\_odbc-5.2.1-1mdv2007.1  
php-suhosin-0.9.18-4mdv2007.1  
php-dbase-5.2.1-1mdv2007.1  
php-ini-5.2.1-2mdv2007.1  
phpmyadmin-2.10.0.2-2mdv2007.1  
php-cli-5.2.1-4.2mdv2007.1  
php-colorer-0.7-7mdv2007.1  
php-sysvshm-5.2.1-1mdv2007.1  
php-pdo\_mysql-5.2.1-1mdv2007.1  
php-devel-5.2.1-4.2mdv2007.1  
php-sysvsem-5.2.1-1mdv2007.1  
php-manual-en-5.2.1-1mdv2007.1  
php-mssql-5.2.1-1mdv2007.1  
php-mysql-5.2.1-1mdv2007.1  
php-dba-5.2.1-1mdv2007.1  
php-xmlreader-5.2.1-1mdv2007.1  
php-odbc-5.2.1-1mdv2007.1  
php-xsl-5.2.1-1mdv2007.1  
php-exif-5.2.1-1mdv2007.1  
php-curl-5.2.1-1mdv2007.1  
php-tokenizer-5.2.1-1mdv2007.1  
php-filepro-5.1.6-4mdv2007.1  
php4-ini-4.4.6-1mdv2007.1  
php-session-5.2.1-1mdv2007.1  
php-mbstring-5.2.1-1.1mdv2007.1  
php-pcntl-5.2.1-1mdv2007.1  
php-mcrypt-5.2.1-1mdv2007.1  
php-gmp-5.2.1-1mdv2007.1  
php-filter-5.2.1-0.1mdv2007.1  
php-calendar-5.2.1-1mdv2007.1  
php-shmop-5.2.1-1mdv2007.1  
php-simplexml-5.2.1-1mdv2007.1  
php-mysqli-5.2.1-1mdv2007.1  
apache-mod\_php4-4.4.6-3mdv2007.1  
php-cups-1.2.10-2mdv2007.1  
php-pgsql-5.2.1-1mdv2007.1  
php5-jpgraph-doc-2.1.2-1mdv2007.0  
php-xmlwriter-5.2.1-1mdv2007.1  
php-zlib-5.2.1-4.2mdv2007.1  
php-mcal-0.6-13mdv2007.1  
php-dom-5.2.1-1mdv2007.1  
php-readline-5.2.1-1mdv2007.1  
php-xml-5.2.1-1mdv2007.1  
php-hash-5.2.1-1mdv2007.1  
php-pdo\_dblib-5.2.1-1mdv2007.1  
php-bz2-5.2.1-1mdv2007.1  
php-tidy-5.2.1-1mdv2007.1  
php-timezonedb-2007.3-1mdv2007.1  
php-ldap-5.2.1-1mdv2007.1  
php-posix-5.2.1-1mdv2007.1  
php-pdo-5.2.1-1mdv2007.1  
php-soap-5.2.1-1.1mdv2007.1  
php5-test-5.1.6-1mdv2007.0  
php-mhash-5.2.1-1mdv2007.1  
php-snmp-5.2.1-1mdv2007.1  
php4-suhosin-0.9.18-2mdv2007.1  
php-json-1.2.1-3mdv2007.1

MySQL  
[dr\_smit@smitdesk ~]$ rpm -qa | grep mysql  
libmysql15-5.0.37-2.1mdv2007.1  
perl-DBD-mysql-3.0006-2mdv2007.0  
libmysql12-4.0.27-1mdk  
php-pdo\_mysql-5.2.1-1mdv2007.1  
php-mysql-5.2.1-1mdv2007.1  
php-mysqli-5.2.1-1mdv2007.1  
[dr\_smit@smitdesk ~]$

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 2, 2007, 6:09pm UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/2 "2007-09-02T18:09:30Z")

</div>

**[rpl122](https://sourceforge.net/u/rpl122/)** wrote on [Sunday, September 02, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/8d52):

The response you get suggests that the file is not being interpreted as php content. It is likely that your apache web server does not have php functionality.&nbsp; Here is a way to test it:

Create a file called test.php and put it in the same directory wherer openemr-2.8.3 is located.&nbsp; For Debian, it is likely to be /var/www.&nbsp; This file should contain this text:

\<?php  
phpinfo();  
?\>

If you get a long diagnostic screen with the PHP logo at the top, php is working.&nbsp; If you get this text content with a message similar to what you got with setup.php, then your php is not integrated to apache.&nbsp; My hunch is that you will get the same error both places.

You can take a look at the debianinstall section of the installation instructions at [http://www.oemr.org](http://www.oemr.org) to see if you are missing any Debian packages.

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 3, 2007, 1:34pm UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/3 "2007-09-03T13:34:50Z")

</div>

**[dr\_smit](https://sourceforge.net/u/dr_smit/)** wrote on [Monday, September 03, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/4c27):

You were right I got the same message for test.php  
the remedy?

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 3, 2007, 4:01pm UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/4 "2007-09-03T16:01:13Z")

</div>

**[rpl122](https://sourceforge.net/u/rpl122/)** wrote on [Monday, September 03, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/6d04):

Brady Miller gives a detailed set of instructions on installing OpenEMR on a Mandriva system.&nbsp; I think his instructions are for an older version of Mandriva, but you can probably figure what is preventing the php portion of your "LAMP server" from working by looking at his list of required packages and configuration instructions.

See:

[http://www.bradymd.com/appliance/manual2/#0.Instructions%20for%20Building%20the%20OpenEMR%20Appliance|outline](http://www.bradymd.com/appliance/manual2/#0.Instructions%20for%20Building%20the%20OpenEMR%20Appliance%7Coutline)

Ronald Leemhuis MD

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 4, 2007, 2:50am UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/5 "2007-09-04T02:50:47Z")

</div>

**[dr\_smit](https://sourceforge.net/u/dr_smit/)** wrote on [Tuesday, September 04, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/edde):

As suggested in appliance/manual2/#0.Instructions%20for%20Building%20the%20OpenEMR%20Appliance|outline  
I removed php5 and install php4 and it worked  
I got beyond the continue button and a screen for password and local host server setup after setting firewall…

but the next screen is stuck at:

Synitech OpenEMR Setup

Step 3

Connecting to MySQL Server… OK.  
Creating database…  
Fatal error: Call to undefined function: mysql\_create\_db() in /var/www/html/openemr/setup.php on line 129

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 4, 2007, 12:15pm UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/6 "2007-09-04T12:15:34Z")

</div>

**[rpl122](https://sourceforge.net/u/rpl122/)** wrote on [Tuesday, September 04, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/73ec):

Since you got "OK" from MySQL server, it is probably working OK.

However, you will want to be sure that the web root directory and data location are properly specified in the ./openemr/interface/globals.php

Typically, you will name the data directory "openemr."&nbsp; So, if you have it named openemr-2.8.3 you will want to rename it to openemr thus.

Go into the directory where openemr-2.8.3 is and type

mv openemr-2.8.3 openemr

Then in ./openemr/interface/globals.php specify $web\_root and $webserver\_root to match the name.

(If you decide to keep the openemr-2.8.3 name for OpenEMR data, you could make the appropriate changes in globals.php)

Ronald Leemhuis MD

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 4, 2007, 2:52pm UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/7 "2007-09-04T14:52:19Z")

</div>

**[dr\_smit](https://sourceforge.net/u/dr_smit/)** wrote on [Tuesday, September 04, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/0fba):

$webserver\_root = "/var/www/html/openemr";

$web\_root = "/openemr";

this is the reading from globals.php

I have two folders in /var/www/html/…

one is /openemr  
second is /openemr-2.8.3

both moved their by me as I got openemr-2.8.3 yesterday

but I have directed to http:/localhost/openemr/setup.php and not openemr-2.8.3/setup.php

I have not followed what you have posted in your post

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 4, 2007, 2:54pm UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/8 "2007-09-04T14:54:47Z")

</div>

**[dr\_smit](https://sourceforge.net/u/dr_smit/)** wrote on [Tuesday, September 04, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/bbc8):

$webserver\_root = "/var/www/html/openemr-2.8.3";

$web\_root = "/openemr-2.8.3";

this is the latest reading from globals.php after I have changed and saved it

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 4, 2007, 2:57pm UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/9 "2007-09-04T14:57:05Z")

</div>

**[dr\_smit](https://sourceforge.net/u/dr_smit/)** wrote on [Tuesday, September 04, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/5d55):

on doing [http://localhost/openemr-2.8.3/setup.php](http://localhost/openemr-2.8.3/setup.php), I get:-

OpenEMR Setup

It appears that you have register\_globals enabled in your php.ini configuration file. This causes unacceptable security risks. You must turn it off before continuing with installation.

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 6, 2007, 12:30pm UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/10 "2007-09-06T12:30:58Z")

</div>

**[drbowen](https://sourceforge.net/u/drbowen/)** wrote on [Thursday, September 06, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/f8e1):

Dear Dr. Smit:  
\> thank you for your help…  
\>  
\> I do not know how to know the versions of php, apache, mysql  
\>  
\> i have both openemr 1.7.1 and openemr-2.8.3 as openemr/setup.php & openemr- 2.8.3/setup.php respectively in /var/www/html/  
OpenEMR 1.7.1 is at least 4 years old and predates my first installed version of 2.0 in October of 2004.&nbsp; I would stick with the current version of 2.8.3.  
\>  
\> & from Package Manager these are shown as installed (not entire list but these are ones I think can help you know my installs)  
\> php4\*  
\> MySQL-5.0.37-2.1mdv2007.1  
\> php4-mysql-4.4.6-1mdv2007.1  
\> apache-2.2.4\*  
\> apache-mod\_php4-4.4.6-3mdv2007.1  
This means you are running:

Apache 2.2.4  
MySQL 5.0.37  
PHP 4.4.6-3  
\>  
\> Part 2:  
\> my php4.ini islocated in /etc/ and has register\_globals =on… I tried…  
\>  
You need to change this file so that register globals is off.  
\>&nbsp; It worked… but now on login Iget the following errors:  
\>  
\> Warning: main(/mnt/htdocs/openemr/library/classes/Filtreatment\_class.php) [function.main]: failed to open stream: No such file or directory in /var/www/html/openemr-2.8.3/interface/login/login\_frame.php on line 4  
\>  
\> Warning: main() [function.include]: Failed opening ‘/mnt/htdocs/openemr/library/classes/Filtreatment\_class.php’ for inclusion (include\_path=’.:/usr/lib/php4/:/usr/share/pear/’) in /var/www/html/openemr-2.8.3/interface/login/login\_frame.php on line 4  
\>  
\> Fatal error: Cannot instantiate non-existent class: filtreatment in /var/www/html/openemr-2.8.3/interface/login/login\_frame.php on line 12  
\>  
\> Do I need to edit php?  
\>  
No. Not for this problem.&nbsp; Apache is not able to find the files inside of OpenEMR.&nbsp; This has to do with the globals.php file inside of openemr. Currently it looks like you have directed Apache to look for the files in /var/www/html/openemr-2.8.3/ but the files are really in /mnt/htdocs/openemr/.

Check for where you have the openemr directory.&nbsp; I think from your statements above your web root is

/mnt/htdocs/

This is where Apache would have installed all of its default index files.

Assuming that /mnt/htdocs/ is your web root then you would need to open the following file

/mnt/htdocs/openemr/interface/globals.php

with a plain text editor.

Change line 8 from the default value to:

$webserver\_root = "/var/www/html/openemr";

to

$webserver\_root = "/mnt/htdocs/openemr";

Line 14

$web\_root = "/openemr";

Should be left as is unless you change the name of the openemr folder from the default of openemr to something else (such as openemr-2.8.3).&nbsp; To do this you have to have all of the openemr files in:

/mnt/htdocs/openemr-2.8.3/

Line 8 would then be:

/mnt/htdocs/openemr-2.8.3/interface/globals.php

and line 14:

$web\_root = "/openemr-2.8.3";

Dr. Smit, this is great question for the forums at SourceForge.&nbsp; There is a large community of users there that are trying to help each other out.&nbsp; I personally monitor the SourceForge lists several times a day as does most of the developers.&nbsp; They are friendly guys who want to be helpful.

Sincerely,

Sam Bowen, MD

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 10, 2007, 2:20pm UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/11 "2007-09-10T14:20:43Z")

</div>

**[dr\_smit](https://sourceforge.net/u/dr_smit/)** wrote on [Monday, September 10, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/73e7):

The global.php at /var/www/html/openemr/interface/globals.php

–is this the one that we need?

it reads:  
\<?php  
/\* $Id: globals.php,v 1.50 2007/08/17 21:27:52 sunsetsystems Exp $ \*/  
//&nbsp; ------------------------------------------------------------------------ //  
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OpenEMR Electronic Medical Records System&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Copyright (c) 2005 [oemr.org](http://oemr.org)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \< [http://www.oemr.org/](http://www.oemr.org/)\>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp; ------------------------------------------------------------------------ //  
//&nbsp; This program is free software; you can redistribute it and/or modify&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp; it under the terms of the GNU General Public License as published by&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp; the Free Software Foundation; either version 2 of the License, or&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp; (at your option) any later version.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp; You may not change or alter any portion of this comment or credits&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp; of supporting developers from this source code or any supporting&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp; source code which is considered copyrighted (c) material of the&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp; original comment or credit authors.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp; This program is distributed in the hope that it will be useful,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp; but WITHOUT ANY WARRANTY; without even the implied warranty of&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&nbsp; See the&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp; GNU General Public License for more details.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp; You should have received a copy of the GNU General Public License&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp; along with this program; if not, write to the Free Software&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //  
//&nbsp; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA&nbsp; 02111-1307 USA //  
//&nbsp; ------------------------------------------------------------------------ //

// Emulates register\_globals = On.&nbsp; Moved to here from the bottom of this file  
// to address security issues.&nbsp; Need to change everything requiring this!  
$ps = strpos($\_SERVER[‘REQUEST\_URI’],“myadmin”);  
if ($ps === false) {  
&nbsp; extract($\_GET);  
&nbsp; extract($\_POST);  
}

require\_once(dirname(\_\_FILE\_\_) . "/…/includes/config.php");  
// Global variable file in which colors and paths are set for the interface.  
///////////////////////////////////////////////////////////////////  
// THESE VALUES MUST BE SET BEFORE OPENEMR WILL FUNCTION:  
///////////////////////////////////////////////////////////////////  
// Set this to the full absolute directory path for openemr:  
$webserver\_root = "/mnt/htdocs/openemr";

// Set this to the relative html path, ie. what you would type into the web  
// browser after the server address to get to OpenEMR.&nbsp; For example, if you  
// type "[http://127.0.0.1/clinic/openemr/](http://127.0.0.1/clinic/openemr/)"&nbsp; to load OpenEMR, set $web\_root  
// to "/clinic/openemr" without the trailing slash.  
$web\_root = "/openemr";

///////////////////////////////////////////////////////////////////

// This is the return mail address used when sending prescriptions by email:  
$GLOBALS[‘practice\_return\_email\_path’] = "prescription\_mail@example.com";

// Root directory, relative to the webserver root:  
$GLOBALS[‘rootdir’] = “$web\_root/interface”;  
// Absolute path to the source code include and headers file directory (Full path):  
$GLOBALS[‘srcdir’] = “$webserver\_root/library”;  
// Absolute path to the location of documentroot directory for use with include statements:  
$GLOBALS[‘fileroot’] = “$webserver\_root”;  
// Absolute path to the location of interface directory for use with include statements:  
$include\_root = “$webserver\_root/interface”;  
// Absolute path to the location of documentroot directory for use with include statements:  
$GLOBALS[‘webroot’] = $web\_root;

$GLOBALS[‘template\_dir’] = $GLOBALS[‘fileroot’] . “/templates/”;  
$GLOBALS[‘incdir’] = $include\_root;  
// Location of the login screen file  
$GLOBALS[‘login\_screen’] = “$rootdir/login\_screen.php”;

// Language Control Section (will add toggling)  
// English:1, Swedish:2, Spanish:3, German:4, Dutch:5, Hebrew:6  
define (‘LANGUAGE’,1);  
include\_once (dirname(\_\_FILE\_\_) . “/…/library/translation.inc.php”);

include\_once (dirname(\_\_FILE\_\_) . "/…/library/date\_functions.php");

// Default category for find\_patient screen  
$GLOBALS[‘default\_category’] = 5;  
$GLOBALS[‘default\_event\_title’] = ‘Office Visit’;

// The session name appears in cookies stored in the browser.&nbsp; If you have  
// multiple OpenEMR installations running on the same server, you should  
// customize this name so they cannot interfere with each other.  
session\_name("OpenEMR");

session\_start();

// Set this to true to activate support for the new frame layout.  
//  
$GLOBALS[‘concurrent\_layout’] = true;

// If \>0 this will enforce a separate PHP session for each top-level  
// browser window.&nbsp; You must log in separately for each.&nbsp; This is not  
// thoroughly tested yet and some browsers might have trouble with it,  
// so make it 0 if you must.&nbsp; Alternatively, you can set it to 2 to be  
// notified when the session ID changes.  
$GLOBALS[‘restore\_sessions’] = 1; // 0=no, 1=yes, 2=yes+debug

// used in Add new event for multiple providers  
$GLOBALS[‘select\_multi\_providers’] = false;

// Theme definition:  
if ($GLOBALS[‘concurrent\_layout’]) {  
$top\_bg\_line = ’ bgcolor="#dddddd" ';  
$GLOBALS[‘style’][‘BGCOLOR2’] = “#dddddd”;  
$bottom\_bg\_line = $top\_bg\_line;  
$title\_bg\_line = ’ bgcolor="#bbbbbb" ';  
$nav\_bg\_line = ’ bgcolor="#94d6e7" ‘;  
} else {  
$top\_bg\_line = ’ bgcolor="#94d6e7" ‘;  
$GLOBALS[‘style’][‘BGCOLOR2’] = “#94d6e7”;  
$bottom\_bg\_line = ’ background="’.$rootdir.’/pic/aquabg.gif" ';  
$title\_bg\_line = ’ bgcolor="#aaffff" ‘;  
$nav\_bg\_line = ’ bgcolor="#94d6e7" ‘;  
}  
$login\_filler\_line = ’ bgcolor="#f7f0d5" ‘;  
$login\_body\_line = ’ background="’.$rootdir.’/pic/aquabg.gif" ‘;  
$css\_header = “$rootdir/themes/style\_sky\_blue.css”;  
$logocode="\<img src=’$rootdir/pic/logo\_sky.gif’\>";  
$linepic = “$rootdir/pic/repeat\_vline9.gif”;  
$table\_bg = ’ bgcolor="#cccccc" ';  
$GLOBALS[‘style’][‘BGCOLOR1’] = “#cccccc”;  
$GLOBALS[‘style’][‘TEXTCOLOR11’] = “#222222”;  
$GLOBALS[‘style’][‘HIGHLIGHTCOLOR’] = “#dddddd”;  
$GLOBALS[‘style’][‘BOTTOM\_BG\_LINE’] = $bottom\_bg\_line;

// The height in pixels of the Logo bar at the top of the login page:  
$GLOBALS[‘logoBarHeight’] = 110;  
// The height in pixels of the Navigation bar:  
$GLOBALS[‘navBarHeight’] = 22;  
// The height in pixels of the Title bar:  
$GLOBALS[‘titleBarHeight’] = 20;

// The assistant word, MORE printed next to titles that can be clicked:  
$tmore = "(More)";  
// The assistant word, BACK printed next to titles that return to previous screens:  
$tback = "(Back)";

// This is the idle logout function:  
// if a page has not been refreshed within this many seconds, the interface  
// will return to the login page  
if (!empty($special\_timeout)) {  
&nbsp;&nbsp;&nbsp; $timeout = intval($special\_timeout);  
}  
else {  
&nbsp;&nbsp;&nbsp; // Max Idle Time in seconds before logout.&nbsp; Default 7200 (2 hours):  
&nbsp;&nbsp;&nbsp; $timeout = 7200;  
}

//Version tags

$v\_major = ‘2’;  
$v\_minor = ‘8’;  
$v\_patch = ‘3’;  
$tag = ‘’; // release candidate, e.g. ‘-rc1’

// This name appears on the login page and in the title bar of most windows.  
// It’s nice to customize this to be the name of your clinic.  
$openemr\_name = ‘OpenEMR’;

$openemr\_version = "$v\_major.$v\_minor.$v\_patch".$tag;&nbsp;&nbsp;&nbsp; // Version tag used by program

$rootdir = $GLOBALS[‘rootdir’];  
$srcdir = $GLOBALS[‘srcdir’];  
$login\_screen = $GLOBALS[‘login\_screen’];  
$GLOBALS[‘css\_header’] = $css\_header;  
$GLOBALS[‘backpic’] = $backpic;  
$GLOBALS[‘rootdir’] = $rootdir;

// change these to reflect when the daily view should start to display times  
// as well as it should end. ex schedule\_start = 9 schedule\_end = 17  
// start end times in hours  
$GLOBALS[‘schedule\_start’] = 8;  
$GLOBALS[‘schedule\_end’] = 17;

// This is the time granularity of the calendar and the smallest interval  
// in minutes for an appointment slot:  
$GLOBALS[‘calendar\_interval’] = 15;

// Include the authentication module code here, but the rule is  
// if the file has the word “login” in the source code file name,  
// don’t include the authentication module - we do this to avoid  
// include loops.

if (!$ignoreAuth) {  
&nbsp;&nbsp;&nbsp; include\_once("$srcdir/auth.inc");  
}

// If you do not want your accounting system to have a customer added to it  
// for each insurance company, then set this to true.&nbsp; SQL-Ledger currently  
// (2005-03-21) does nothing useful with insurance companies as customers.  
$GLOBALS[‘insurance\_companies\_are\_not\_customers’] = true;

// If OpenEMR is being used by an athletic team rather than in a traditional  
// clinical setting, set this to true.  
$GLOBALS[‘athletic\_team’] = false;

// True if this is a weight loss clinic:  
$GLOBALS[‘weight\_loss\_clinic’] = false;

// The telephone country code of this installation.&nbsp; 1 = USA.  
// See [http://www.wtng.info/](http://www.wtng.info/) for a list.  
$GLOBALS[‘phone\_country\_code’] = ‘1’;

// This determines how appointments display on the calendar:  
// 1 = lastname; 2 = last,first; 3 = last,first(title);  
// 4 = last,first(title: description)  
$GLOBALS[‘calendar\_appt\_style’] = 2;

// Make this true if you want providers to see all appointments by default  
// and not just their own.  
$GLOBALS[‘docs\_see\_entire\_calendar’] = false;

// Set this to true if you want the drug database and support for in-house  
// prescription dispensing.  
$GLOBALS[‘inhouse\_pharmacy’] = false;

// True to omit insurance and some other things from the demographics form:  
$GLOBALS[‘simplified\_demographics’] = false;

// True to omit form, route and interval which then become part of dosage:  
$GLOBALS[‘simplified\_prescriptions’] = false;

// True to omit method of payment from the copay panel:  
$GLOBALS[‘simplified\_copay’] = false;

// You may put text here as the default complaint in the New Patient form:  
$GLOBALS[‘default\_chief\_complaint’] = ‘’;

// This was added for sports teams needing to fill out injury forms, but might  
// have other applications.  
$GLOBALS[‘default\_new\_encounter\_form’] = ‘’;

// If you want a new encounter to be automatically created when appointment  
// status is set to “@” (arrived), then make this true.  
$GLOBALS[‘auto\_create\_new\_encounters’] = true;

// If you don’t want employer information, country, title in patient demographics.  
$GLOBALS[‘omit\_employers’] = false;

// You can set this to the category name of a document to link to from the  
// patient summary page.&nbsp; Normally this is the category for insurance cards.  
// This lets you click on the patient’s name to see their ID card.  
$GLOBALS[‘patient\_id\_category\_name’] = ‘’;

// If you want Hylafax support then uncomment and customize the following  
// statements, and also customize custom/faxcover.txt:  
//  
// $GLOBALS[‘hylafax\_server’]&nbsp;&nbsp; = ‘localhost’;  
// $GLOBALS[‘hylafax\_basedir’]&nbsp; = ‘/var/spool/fax’;  
// $GLOBALS[‘hylafax\_enscript’] = ‘enscript -M Letter -B -e^ --margins=36:36:36:36’;

// For scanner support, uncomment and customize the following.&nbsp; This is  
// the directory in which scanned-in documents may be found, and may for  
// example be a smbfs-mounted share from the PC supporting the scanner:  
//  
// $GLOBALS[‘scanner\_output\_directory’] = ‘/mnt/scan\_docs’;

// Customize these if you are using SQL-Ledger with OpenEMR.  
$sl\_cash\_acc&nbsp;&nbsp;&nbsp; = ‘1060’;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // sql-ledger account number for checking account  
$sl\_ar\_acc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ‘1200’;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // sql-ledger account number for accounts receivable  
$sl\_income\_acc&nbsp; = ‘4320’;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // sql-ledger account number for medical services income  
$sl\_services\_id = ‘MS’;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // sql-ledger parts table id for medical services  
$sl\_dbname&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ‘sql-ledger’; // sql-ledger database name  
$sl\_dbuser&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ‘sql-ledger’; // sql-ledger database login name  
$sl\_dbpass&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ‘secret’;&nbsp;&nbsp;&nbsp;&nbsp; // sql-ledger database login password

// Don’t change anything below this line. ////////////////////////////

$encounter = empty($\_SESSION[‘encounter’]) ? 0 : $\_SESSION[‘encounter’];

if (!empty($\_GET[‘pid’]) && empty($\_SESSION[‘pid’])) {  
&nbsp;&nbsp;&nbsp; $\_SESSION[‘pid’] = $\_GET[‘pid’];  
}  
elseif (!empty($\_POST[‘pid’]) && empty($\_SESSION[‘pid’])) {  
&nbsp;&nbsp;&nbsp; $\_SESSION[‘pid’] = $\_POST[‘pid’];  
}  
$pid = empty($\_SESSION[‘pid’]) ? 0 : $\_SESSION[‘pid’];  
$userauthorized = empty($\_SESSION[‘userauthorized’]) ? 0 : $\_SESSION[‘userauthorized’];  
$groupname = empty($\_SESSION[‘authProvider’]) ? 0 : $\_SESSION[‘authProvider’];

// global interface function to format text length using ellipses  
function strterm($string,$length) {  
&nbsp;&nbsp;&nbsp; if (strlen($string) \>= ($length-3)) {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return substr($string,0,$length-3) . "…";  
&nbsp;&nbsp;&nbsp; } else {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return $string;  
&nbsp;&nbsp;&nbsp; }  
}

// turn off PHP compatibility warnings  
ini\_set("session.bug\_compat\_warn","off");  
?\>

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 11, 2007, 12:18pm UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/12 "2007-09-11T12:18:55Z")

</div>

**[dr\_smit](https://sourceforge.net/u/dr_smit/)** wrote on [Tuesday, September 11, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/dd8b):

is this a result of my installing openemr-1.7 then pointing with openemr2.8.3???

plz help…

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 11, 2007, 1:58pm UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/13 "2007-09-11T13:58:33Z")

</div>

**[drbowen](https://sourceforge.net/u/drbowen/)** wrote on [Tuesday, September 11, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/2784):

Dr. Smit,

No.&nbsp; Changing openemr-1.7 to openemr2.8.3 doesn’t matter.

Where is your openemr directory located and what is it called?

The directory path to openemr needs to be specified in globals.php.&nbsp; You seem to have a mismatch between where your openemr directory is and the where Apache thinks is is.

Apache is looking in what is referred to as the DocumentRoot.&nbsp; OpenEMR calls this the $webserver\_root = "/mnt/htdocs/openemr";

Can you find a line in your http.conf file that looks like this:

DocumentRoot /var/www/html

I can answer your question better if you can tell us the value of your "DocumentRoot"

http.conf is usually in /etc/apache/

This varies between Linux distributions and I don’t know the Mandriva default.

Sam Bowen, MD

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 12, 2007, 2:49am UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/14 "2007-09-12T02:49:08Z")

</div>

**[dr\_smit](https://sourceforge.net/u/dr_smit/)** wrote on [Wednesday, September 12, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/4c13):

Where is your openemr directory located and what is it called?

file:///var/www/html/openemr

it has:

File: COPYING&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 18 KB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 03/10/2005&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 01:27:10 AM  
File: CREDITS&nbsp;&nbsp;&nbsp;&nbsp; 1 KB&nbsp;&nbsp;&nbsp;&nbsp; 03/10/2005&nbsp;&nbsp;&nbsp;&nbsp; 01:27:08 AM  
File: CategoryTreeMenu.js&nbsp;&nbsp;&nbsp;&nbsp; 22 KB&nbsp;&nbsp;&nbsp;&nbsp; 06/23/2005&nbsp;&nbsp;&nbsp;&nbsp; 10:50:59 AM  
File: ChangeLog&nbsp;&nbsp;&nbsp;&nbsp; 63 KB&nbsp;&nbsp;&nbsp;&nbsp; 06/06/2007&nbsp;&nbsp;&nbsp;&nbsp; 12:28:59 AM  
File: ChangeLog.old.cvs&nbsp;&nbsp;&nbsp;&nbsp; 79 KB&nbsp;&nbsp;&nbsp;&nbsp; 03/10/2005&nbsp;&nbsp;&nbsp;&nbsp; 01:27:10 AM  
File: DocumentTreeMenu.js&nbsp;&nbsp;&nbsp;&nbsp; 23 KB&nbsp;&nbsp;&nbsp;&nbsp; 06/23/2005&nbsp;&nbsp;&nbsp;&nbsp; 10:51:01 AM  
Directory: Documentation&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 08/22/2007&nbsp;&nbsp;&nbsp;&nbsp; 10:34:04 AM  
File: GnuGPL.html&nbsp;&nbsp;&nbsp;&nbsp; 23 KB&nbsp;&nbsp;&nbsp;&nbsp; 03/28/2005&nbsp;&nbsp;&nbsp;&nbsp; 06:40:41 AM  
File: INSTALL&nbsp;&nbsp;&nbsp;&nbsp; 9 KB&nbsp;&nbsp;&nbsp;&nbsp; 09/23/2006&nbsp;&nbsp;&nbsp;&nbsp; 06:16:31 PM  
Directory: accounting&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 08/22/2007&nbsp;&nbsp;&nbsp;&nbsp; 10:34:04 AM  
File: acl\_setup.php&nbsp;&nbsp;&nbsp;&nbsp; 8 KB&nbsp;&nbsp;&nbsp;&nbsp; 10/25/2006&nbsp;&nbsp;&nbsp;&nbsp; 10:43:49 AM  
Directory: contrib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 08/22/2007&nbsp;&nbsp;&nbsp;&nbsp; 10:34:04 AM  
File: controller.php&nbsp;&nbsp;&nbsp;&nbsp; 1 KB&nbsp;&nbsp;&nbsp;&nbsp; 03/10/2005&nbsp;&nbsp;&nbsp;&nbsp; 01:27:10 AM  
Directory: controllers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 08/22/2007&nbsp;&nbsp;&nbsp;&nbsp; 10:34:04 AM  
File: copyright\_notice.html&nbsp;&nbsp;&nbsp;&nbsp; 2 KB&nbsp;&nbsp;&nbsp;&nbsp; 03/28/2005&nbsp;&nbsp;&nbsp;&nbsp; 06:40:41 AM  
File: copyright\_notice\_long.html&nbsp;&nbsp;&nbsp;&nbsp; 3 KB&nbsp;&nbsp;&nbsp;&nbsp; 03/28/2005&nbsp;&nbsp;&nbsp;&nbsp; 06:40:41 AM  
File: copyright\_notice\_short.html&nbsp;&nbsp;&nbsp;&nbsp; 2 KB&nbsp;&nbsp;&nbsp;&nbsp; 03/28/2005&nbsp;&nbsp;&nbsp;&nbsp; 06:40:41 AM  
Directory: custom&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 08/22/2007&nbsp;&nbsp;&nbsp;&nbsp; 10:34:04 AM  
Directory: documents&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 08/22/2007&nbsp;&nbsp;&nbsp;&nbsp; 10:34:04 AM  
Directory: edi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 08/22/2007&nbsp;&nbsp;&nbsp;&nbsp; 10:34:04 AM  
Directory: era&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 08/22/2007&nbsp;&nbsp;&nbsp;&nbsp; 10:34:04 AM  
Directory: images&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 08/22/2007&nbsp;&nbsp;&nbsp;&nbsp; 10:34:04 AM  
Directory: includes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 08/22/2007&nbsp;&nbsp;&nbsp;&nbsp; 10:34:04 AM  
File: index.php&nbsp;&nbsp;&nbsp;&nbsp; 2 KB&nbsp;&nbsp;&nbsp;&nbsp; 04/03/2007&nbsp;&nbsp;&nbsp;&nbsp; 11:16:42 AM  
Directory: interface&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 08/22/2007&nbsp;&nbsp;&nbsp;&nbsp; 10:34:04 AM  
Directory: library&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 08/22/2007&nbsp;&nbsp;&nbsp;&nbsp; 10:34:04 AM  
File: login.php&nbsp;&nbsp;&nbsp;&nbsp; 2 KB&nbsp;&nbsp;&nbsp;&nbsp; 03/03/2006&nbsp;&nbsp;&nbsp;&nbsp; 10:21:13 PM  
File: setup.php&nbsp;&nbsp;&nbsp;&nbsp; 15 KB&nbsp;&nbsp;&nbsp;&nbsp; 02/07/2007&nbsp;&nbsp;&nbsp;&nbsp; 01:57:55 AM  
Directory: sql&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 08/22/2007&nbsp;&nbsp;&nbsp;&nbsp; 10:34:04 AM  
Directory: templates

file:///mnt has only:

Directory: cdrom&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 08/02/2007&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10:35:19 PM  
Directory: floppy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 09/12/2007&nbsp;&nbsp;&nbsp;&nbsp; 07:54:29 AM  
Directory: win\_c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 01/01/1970&nbsp;&nbsp;&nbsp;&nbsp; 05:30:00 AM  
Directory: win\_d&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 01/01/1970&nbsp;&nbsp;&nbsp;&nbsp; 05:30:00 AM

it doesn’t show /mnt/htdocs/openemr

no flie called ‘/etc/apache/’ exists…

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 12, 2007, 2:53am UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/15 "2007-09-12T02:53:41Z")

</div>

**[dr\_smit](https://sourceforge.net/u/dr_smit/)** wrote on [Wednesday, September 12, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/c83a):

is /etc/apache same as–

file:///etc/httpd/conf/httpd.conf&nbsp; ?

I have this one!!

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 12, 2007, 2:56am UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/16 "2007-09-12T02:56:30Z")

</div>

**[dr\_smit](https://sourceforge.net/u/dr_smit/)** wrote on [Wednesday, September 12, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/bd8f):

file:///etc/httpd/conf/httpd.conf&nbsp;&nbsp; has the following too:

DocumentRoot: The directory out of which you will serve your  
# documents. By default, all requests are taken from this directory, but  
# symbolic links and aliases may be used to point to other locations.  
#  
DocumentRoot "/var/www/html"

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 12, 2007, 2:59am UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/17 "2007-09-12T02:59:25Z")

</div>

**[dr\_smit](https://sourceforge.net/u/dr_smit/)** wrote on [Wednesday, September 12, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/9a33):

this may help you to help me

file:///etc/httpd/conf/httpd.conf has the following coding:—

#  
# Based upon the NCSA server configuration files originally by Rob McCool.  
#  
# This is the main Apache server configuration file.&nbsp; It contains the  
# configuration directives that give the server its instructions.  
# See \<URL:[http://httpd.apache.org/docs-2.0/](http://httpd.apache.org/docs-2.0/)\> for detailed information about  
# the directives.  
#  
# Do NOT simply read the instructions in here without understanding  
# what they do.&nbsp; They’re here only as hints or reminders.&nbsp; If you are unsure  
# consult the online docs. You have been warned.&nbsp;  
#  
# The configuration directives are grouped into three basic sections:  
#&nbsp; 1. Directives that control the operation of the Apache server process as a  
#&nbsp;&nbsp;&nbsp;&nbsp; whole (the ‘global environment’).  
#&nbsp; 2. Directives that define the parameters of the ‘main’ or ‘default’ server,  
#&nbsp;&nbsp;&nbsp;&nbsp; which responds to requests that aren’t handled by a virtual host.  
#&nbsp;&nbsp;&nbsp;&nbsp; These directives also provide default values for the settings  
#&nbsp;&nbsp;&nbsp;&nbsp; of all virtual hosts.  
#&nbsp; 3. Settings for virtual hosts, which allow Web requests to be sent to  
#&nbsp;&nbsp;&nbsp;&nbsp; different IP addresses or hostnames and have them handled by the  
#&nbsp;&nbsp;&nbsp;&nbsp; same Apache server process.  
#  
# Configuration and logfile names: If the filenames you specify for many  
# of the server’s control files begin with “/” (or “drive:/” for Win32), the  
# server will use that explicit path.&nbsp; If the filenames do \*not\* begin  
# with “/”, the value of ServerRoot is prepended – so “/var/log/httpd/foo.log”  
# with ServerRoot set to “/etc/httpd” will be interpreted by the  
# server as “/etc/httpd/logs/httpd/foo.log”.  
#

### Section 1: Global Environment  
#  
# The directives in this section affect the overall operation of Apache,  
# such as the number of concurrent requests it can handle or where it  
# can find its configuration files.  
#

#  
# ServerRoot: The top of the directory tree under which the server’s  
# configuration, error, and log files are kept.  
#  
# NOTE!&nbsp; If you intend to place this on an NFS (or otherwise network)  
# mounted filesystem then please read the LockFile documentation (available  
# at \<URL:[http://httpd.apache.org/docs-2.0/mod/mpm\_common.html#lockfile](http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile)\>);  
# you will save yourself a lot of trouble.  
#  
# Do NOT add a slash at the end of the directory path.  
#  
ServerRoot “/etc/httpd”

# GracefulShutDownTimeout: Specify a timeout after which a gracefully shutdown server will exit.  
GracefulShutDownTimeout 120

##  
## Server-Pool Size Regulation (MPM specific)  
##

# AcceptMutex:&nbsp; Method that Apache uses to serialize multiple children accepting requests  
# on network sockets. fcntl is default on Mandriva Linux  
# CoreDumpDirectory: Directory where Apache attempts to switch before dumping core  
# EnableExceptionHook: Enables a hook that runs exception handlers after a crash  
# ListenBackLog: Maximum length of the queue of pending connections  
# LockFile: Location of the accept serialization lock file  
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.  
# MaxClients: Maximum number of child processes that will be created to serve requests  
# MaxMemFree: Maximum amount of memory that the main allocator is allowed to hold without calling free()  
# MaxRequestsPerChild: Limit on the number of requests that an individual child server will handle during its life  
# PidFile: File where the server records the process ID of the daemon  
# ReceiveBufferSize: TCP receive buffer size  
# ScoreBoardFile: Location of the file used to store coordination data for the child processes  
# SendBufferSize: TCP buffer size  
# ServerLimit: Upper limit on configurable number of processes  
# StartServers: Number of child server processes created at startup  
# MinSpareServers: Minimum number of idle children, to handle request spikes  
# MaxSpareServers: Maximum number of idle children

# prefork MPM [THIS IS THE DEFAULT]  
\<IfModule mpm\_prefork\_module\>  
&nbsp;&nbsp;&nbsp; AcceptMutex fcntl  
&nbsp;&nbsp;&nbsp; CoreDumpDirectory /tmp  
&nbsp;&nbsp;&nbsp; EnableExceptionHook Off  
&nbsp;&nbsp;&nbsp; ListenBacklog 511  
&nbsp;&nbsp;&nbsp; LockFile logs/accept.lock  
&nbsp;&nbsp;&nbsp; MaxClients 256  
&nbsp;&nbsp;&nbsp; MaxMemFree 0  
&nbsp;&nbsp;&nbsp; MaxRequestsPerChild 4000  
&nbsp;&nbsp;&nbsp; PidFile /var/run/httpd.pid  
&nbsp;&nbsp;&nbsp; ReceiveBufferSize 0  
#&nbsp;&nbsp;&nbsp; ScoreBoardFile logs/apache\_runtime\_status  
&nbsp;&nbsp;&nbsp; SendBufferSize 0  
&nbsp;&nbsp;&nbsp; ServerLimit 256  
&nbsp;&nbsp;&nbsp; StartServers 8  
&nbsp;&nbsp;&nbsp; MinSpareServers 5  
&nbsp;&nbsp;&nbsp; MaxSpareServers 20  
\</IfModule\>

# worker MPM  
# MaxSpareThreads: Maximum number of idle threads  
# MinSpareThreads: Minimum number of idle threads available to handle request spikes  
# ThreadLimit: Sets the upper limit on the configurable number of threads per child process  
# ThreadsPerChild: Number of threads created by each child process  
# ThreadStackSize: The size in bytes of the stack used by threads handling client connections  
\<IfModule mpm\_worker\_module\>  
&nbsp;&nbsp;&nbsp; AcceptMutex fcntl  
&nbsp;&nbsp;&nbsp; CoreDumpDirectory /tmp  
&nbsp;&nbsp;&nbsp; EnableExceptionHook Off  
&nbsp;&nbsp;&nbsp; ListenBacklog 511  
&nbsp;&nbsp;&nbsp; LockFile logs/accept.lock  
&nbsp;&nbsp;&nbsp; MaxClients 150  
&nbsp;&nbsp;&nbsp; MaxMemFree 0  
&nbsp;&nbsp;&nbsp; MaxRequestsPerChild 0  
&nbsp;&nbsp;&nbsp; MaxSpareThreads 75  
&nbsp;&nbsp;&nbsp; MinSpareThreads 25  
&nbsp;&nbsp;&nbsp; PidFile /var/run/httpd.pid  
&nbsp;&nbsp;&nbsp; ReceiveBufferSize 0  
#&nbsp;&nbsp;&nbsp; ScoreBoardFile logs/apache\_runtime\_status  
&nbsp;&nbsp;&nbsp; SendBufferSize 0  
&nbsp;&nbsp;&nbsp; ServerLimit 256  
&nbsp;&nbsp;&nbsp; StartServers 2  
&nbsp;&nbsp;&nbsp; ThreadLimit 64  
&nbsp;&nbsp;&nbsp; ThreadsPerChild 25  
&nbsp;&nbsp;&nbsp; ThreadStackSize 32768  
\</IfModule\>

# event MPM  
\<IfModule mpm\_event\_module\>  
&nbsp;&nbsp;&nbsp; AcceptMutex fcntl  
&nbsp;&nbsp;&nbsp; CoreDumpDirectory /tmp  
&nbsp;&nbsp;&nbsp; EnableExceptionHook Off  
&nbsp;&nbsp;&nbsp; ListenBacklog 511  
&nbsp;&nbsp;&nbsp; LockFile logs/accept.lock  
&nbsp;&nbsp;&nbsp; MaxClients 150  
&nbsp;&nbsp;&nbsp; MaxMemFree 0  
&nbsp;&nbsp;&nbsp; MaxRequestsPerChild 0  
&nbsp;&nbsp;&nbsp; MaxSpareThreads 75  
&nbsp;&nbsp;&nbsp; MinSpareThreads 25  
&nbsp;&nbsp;&nbsp; PidFile /var/run/httpd.pid  
&nbsp;&nbsp;&nbsp; ReceiveBufferSize 0  
#&nbsp;&nbsp;&nbsp; ScoreBoardFile logs/apache\_runtime\_status  
&nbsp;&nbsp;&nbsp; SendBufferSize 0  
&nbsp;&nbsp;&nbsp; ServerLimit 256  
&nbsp;&nbsp;&nbsp; StartServers 2  
&nbsp;&nbsp;&nbsp; ThreadLimit 64  
&nbsp;&nbsp;&nbsp; ThreadsPerChild 25  
&nbsp;&nbsp;&nbsp; ThreadStackSize 32768  
\</IfModule\>

#  
# Listen: Allows you to bind Apache to specific IP addresses and/or  
# ports, instead of the default. See also the \<VirtualHost\>  
# directive.  
#  
# Change this to Listen on specific IP addresses as shown below to  
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)  
#  
#Listen 12.34.56.78:80  
Listen 0.0.0.0:80

#  
# Dynamic Shared Object (DSO) Support  
#  
# To be able to use the functionality of a module which was built as a DSO you  
# have to place corresponding `LoadModule’ lines at this location so the  
# directives contained in it are actually available \_before\_ they are used.  
# Statically compiled modules (those listed by `httpd -l’) do not need  
# to be loaded here.  
#  
# Example:  
# LoadModule foo\_module modules/mod\_foo.so  
#  
LoadModule authn\_file\_module modules/mod\_authn\_file.so  
#LoadModule authn\_dbm\_module modules/mod\_authn\_dbm.so  
LoadModule authn\_anon\_module modules/mod\_authn\_anon.so  
## LoadModule authn\_dbd\_module modules/mod\_authn\_dbd.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_authn\_dbd package  
LoadModule authn\_default\_module modules/mod\_authn\_default.so  
LoadModule authn\_alias\_module modules/mod\_authn\_alias.so  
LoadModule authz\_host\_module modules/mod\_authz\_host.so  
LoadModule authz\_groupfile\_module modules/mod\_authz\_groupfile.so  
LoadModule authz\_user\_module modules/mod\_authz\_user.so  
LoadModule authz\_dbm\_module modules/mod\_authz\_dbm.so  
LoadModule authz\_owner\_module modules/mod\_authz\_owner.so  
## LoadModule authnz\_ldap\_module modules/mod\_authnz\_ldap.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_ldap package  
LoadModule authz\_default\_module modules/mod\_authz\_default.so  
LoadModule auth\_basic\_module modules/mod\_auth\_basic.so  
LoadModule auth\_digest\_module modules/mod\_auth\_digest.so  
## LoadModule cache\_module modules/mod\_cache.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_cache package  
## LoadModule disk\_cache\_module modules/mod\_disk\_cache.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_disk\_cache package  
## LoadModule mem\_cache\_module modules/mod\_mem\_cache.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_mem\_cache package  
## LoadModule dbd\_module modules/mod\_dbd.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_dbd package  
## LoadModule bucketeer\_module modules/mod\_bucketeer.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \<- only used for tests and debugging  
## LoadModule dumpio\_module modules/mod\_dumpio.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \<- only used for tests and debugging  
#LoadModule echo\_module modules/mod\_echo.so  
#LoadModule example\_module modules/mod\_example.so  
#LoadModule case\_filter\_module modules/mod\_case\_filter.so  
#LoadModule case\_filter\_in\_module modules/mod\_case\_filter\_in.so  
#LoadModule ext\_filter\_module modules/mod\_ext\_filter.so  
LoadModule include\_module modules/mod\_include.so  
LoadModule filter\_module modules/mod\_filter.so  
#LoadModule charset\_lite\_module modules/mod\_charset\_lite.so  
## LoadModule deflate\_module modules/mod\_deflate.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_deflate package  
## LoadModule ldap\_module modules/mod\_ldap.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_ldap package  
LoadModule log\_config\_module modules/mod\_log\_config.so  
#LoadModule log\_forensic\_module modules/mod\_log\_forensic.so  
#LoadModule logio\_module modules/mod\_logio.so  
LoadModule env\_module modules/mod\_env.so  
LoadModule mime\_magic\_module modules/mod\_mime\_magic.so  
#LoadModule cern\_meta\_module modules/mod\_cern\_meta.so  
LoadModule expires\_module modules/mod\_expires.so  
LoadModule headers\_module modules/mod\_headers.so  
#LoadModule ident\_module modules/mod\_ident.so  
LoadModule usertrack\_module modules/mod\_usertrack.so  
LoadModule unique\_id\_module modules/mod\_unique\_id.so  
LoadModule setenvif\_module modules/mod\_setenvif.so  
LoadModule version\_module modules/mod\_version.so  
## LoadModule proxy\_module modules/mod\_proxy.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_proxy package  
## LoadModule proxy\_connect\_module modules/mod\_proxy\_connect.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_proxy package  
## LoadModule proxy\_ftp\_module modules/mod\_proxy\_ftp.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_proxy package  
## LoadModule proxy\_http\_module modules/mod\_proxy\_http.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_proxy package  
## LoadModule proxy\_ajp\_module modules/mod\_proxy\_ajp.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_proxy\_ajp package  
## LoadModule proxy\_balancer\_module modules/mod\_proxy\_balancer.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_proxy package  
## LoadModule ssl\_module modules/mod\_ssl.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_ssl package  
## LoadModule optional\_hook\_export\_module modules/mod\_optional\_hook\_export.so&nbsp;&nbsp;&nbsp; \<- only used for tests  
## LoadModule optional\_hook\_import\_module modules/mod\_optional\_hook\_import.so&nbsp;&nbsp;&nbsp; \<- only used for tests  
## LoadModule optional\_fn\_import\_module modules/mod\_optional\_fn\_import.so&nbsp;&nbsp;&nbsp; \<- only used for tests  
## LoadModule optional\_fn\_export\_module modules/mod\_optional\_fn\_export.so&nbsp;&nbsp;&nbsp; \<- only used for tests  
LoadModule mime\_module modules/mod\_mime.so  
## LoadModule dav\_module modules/mod\_dav.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_dav package  
LoadModule status\_module modules/mod\_status.so  
LoadModule autoindex\_module modules/mod\_autoindex.so  
#LoadModule asis\_module modules/mod\_asis.so  
LoadModule info\_module modules/mod\_info.so  
## LoadModule suexec\_module modules/mod\_suexec.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_suexec package  
LoadModule cgi\_module modules/mod\_cgi.so  
#LoadModule cgid\_module modules/mod\_cgid.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \<- use this with the worker MPM  
## LoadModule dav\_fs\_module modules/mod\_dav\_fs.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_dav package  
## LoadModule dav\_lock\_module modules/mod\_dav\_lock.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_dav package  
LoadModule vhost\_alias\_module modules/mod\_vhost\_alias.so  
LoadModule negotiation\_module modules/mod\_negotiation.so  
LoadModule dir\_module modules/mod\_dir.so  
LoadModule imagemap\_module modules/mod\_imagemap.so  
LoadModule actions\_module modules/mod\_actions.so  
#LoadModule speling\_module modules/mod\_speling.so  
## LoadModule userdir\_module modules/mod\_userdir.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -\> available in the apache-mod\_userdir package  
LoadModule alias\_module modules/mod\_alias.so  
LoadModule rewrite\_module modules/mod\_rewrite.so

# Bring in additional module-specific configurations  
#  
Include modules.d/\*.conf

# include legacy conf.d during a transition period  
Include conf.d/\*.conf

### Section 2: ‘Main’ server configuration  
#  
# The directives in this section set up the values used by the ‘main’  
# server, which responds to any requests that aren’t handled by a  
# \<VirtualHost\> definition.&nbsp; These values also provide defaults for  
# any \<VirtualHost\> containers you may define later in the file.  
#  
# All of these directives may appear inside \<VirtualHost\> containers,  
# in which case these default settings will be overridden for the  
# virtual host being defined.  
#

#  
# If you wish httpd to run as a different user or group, you must run  
# httpd as root initially and it will switch.&nbsp;  
#  
# User/Group: The name (or #number) of the user/group to run httpd as.  
#&nbsp; . On SCO (ODT 3) use “User nouser” and “Group nogroup”.  
#&nbsp; . On HPUX you may not be able to use shared memory as nobody, and the  
#&nbsp;&nbsp;&nbsp; suggested workaround is to create a user www and use that user.  
#&nbsp; NOTE that some kernels refuse to setgid(Group) or semctl(IPC\_SET)  
#&nbsp; when the value of (unsigned)Group is above 60000;  
#&nbsp; don’t use Group #-1 on these systems!  
#  
User apache  
Group apache

#  
# ServerAdmin: Your address, where problems with the server should be  
# e-mailed.&nbsp; This address appears on some server-generated pages, such  
# as error documents.&nbsp; e.g. [admin@your-domain.com](mailto:admin@your-domain.com)  
#  
ServerAdmin root@localhost

#  
# ServerName gives the name and port that the server uses to identify itself.  
# This can often be determined automatically, but we recommend you specify  
# it explicitly to prevent problems during startup.  
#  
# If this is not set to valid DNS name for your host, server-generated  
# redirections will not work.&nbsp; See also the UseCanonicalName directive.  
#  
# If your host doesn’t have a registered DNS name, enter its IP address here.  
# You will have to access it by its address anyway, and this will make  
# redirections work in a sensible way.  
#  
#ServerName [www.example.com:80](http://www.example.com:80)

#  
# Timeout: The number of seconds before receives and sends time out.  
#  
Timeout 300

#  
# KeepAlive: Whether or not to allow persistent connections (more than  
# one request per connection). Set to "Off" to deactivate.  
#  
KeepAlive On

#  
# MaxKeepAliveRequests: The maximum number of requests to allow  
# during a persistent connection. Set to 0 to allow an unlimited amount.  
# We recommend you leave this number high, for maximum performance.  
#  
MaxKeepAliveRequests 100

#  
# KeepAliveTimeout: Number of seconds to wait for the next request from the  
# same client on the same connection.  
#  
KeepAliveTimeout 5

#  
# UseCanonicalName: Determines how Apache constructs self-referencing  
# URLs and the SERVER\_NAME and SERVER\_PORT variables.  
# When set "Off", Apache will use the Hostname and Port supplied  
# by the client.&nbsp; When set "On", Apache will use the value of the  
# ServerName directive.  
#  
UseCanonicalName Off

#  
# ServerTokens  
# This directive configures what you return as the Server HTTP response  
# Header. The default is ‘Full’ which sends information about the OS-Type  
# and compiled in modules.  
# Set to one of:&nbsp; Full | OS | Minor | Minimal | Major | Prod  
# where Full conveys the most information, and Prod the least.  
#  
ServerTokens OS

#  
# Optionally add a line containing the server version and virtual host  
# name to server-generated pages (internal error documents, FTP directory  
# listings, mod\_status and mod\_info output etc., but not CGI generated  
# documents or custom error documents).  
# Set to "EMail" to also include a mailto: link to the ServerAdmin.  
# Set to one of:&nbsp; On | Off | EMail  
#  
ServerSignature On

#  
# HostnameLookups: Log the names of clients or just their IP addresses  
# e.g., [www.apache.org](http://www.apache.org) (on) or 204.62.129.132 (off).  
# The default is off because it’d be overall better for the net if people  
# had to knowingly turn this feature on, since enabling it means that  
# each client request will result in AT LEAST one lookup request to the  
# nameserver.  
#  
HostnameLookups Off

#  
# DocumentRoot: The directory out of which you will serve your  
# documents. By default, all requests are taken from this directory, but  
# symbolic links and aliases may be used to point to other locations.  
#  
DocumentRoot "/var/www/html"

#  
# Each directory to which Apache has access can be configured with respect  
# to which services and features are allowed and/or disabled in that  
# directory (and its subdirectories).  
#  
# First, we configure the "default" to be a very restrictive set of  
# features.&nbsp;  
#

\<Directory /\>  
&nbsp;&nbsp;&nbsp; Options -All -Multiviews  
&nbsp;&nbsp;&nbsp; AllowOverride None  
&nbsp;&nbsp;&nbsp; Order deny,allow  
&nbsp;&nbsp;&nbsp; Deny from all  
\</Directory\>

#  
# Note that from this point forward you must specifically allow  
# particular features to be enabled - so if something’s not working as  
# you might expect, make sure that you have specifically enabled it  
# below.  
#

#  
# This should be changed to whatever you set DocumentRoot to.  
#  
\<Directory "/var/www/html"\>

# Possible values for the Options directive are “None”, “All”,  
# or any combination of:  
#&nbsp;&nbsp; Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews  
# Note that “MultiViews” must be named \*explicitly\* — “Options All”  
# doesn’t give it to you.  
# The Options directive is both complicated and important.&nbsp; Please see  
# [http://httpd.apache.org/docs-2.0/mod/core.html#options](http://httpd.apache.org/docs-2.0/mod/core.html#options)  
# for more information.

&nbsp;&nbsp;&nbsp; Options -Indexes FollowSymLinks MultiViews

#  
# AllowOverride controls what directives may be placed in .htaccess files.  
# It can be "All", "None", or any combination of the keywords:  
#&nbsp;&nbsp; Options FileInfo AuthConfig Limit Indexes

&nbsp;&nbsp;&nbsp; AllowOverride None

# Controls who can get stuff from this server.  
&nbsp;&nbsp;&nbsp; Order allow,deny  
&nbsp;&nbsp;&nbsp; Allow from all

\</Directory\>

#  
# DirectoryIndex: sets the file that Apache will serve if a directory  
# is requested.  
#  
# The index.html.var file (a type-map) is used to deliver content-  
# negotiated documents.&nbsp; The MultiViews Option can be used for the  
# same purpose, but it is much slower.  
#

\<IfModule mod\_include.c\>  
&nbsp;&nbsp;&nbsp; \<IfModule mod\_dir.c\>  
&nbsp;&nbsp;&nbsp; DirectoryIndex index.shtml  
&nbsp;&nbsp;&nbsp; \</IfModule\>  
\</IfModule\>

\<IfModule mod\_dir.c\>  
&nbsp;&nbsp;&nbsp; DirectoryIndex index.html index.html.var index.cgi index.pl index.htm Default.htm default.htm index.xml  
\</IfModule\>

#  
# AccessFileName: The name of the file to look for in each directory  
# for additional configuration directives.&nbsp; See also the AllowOverride  
# directive.  
#  
AccessFileName .htaccess

#  
# The following lines prevent .htaccess and .htpasswd files from being  
# viewed by Web clients.  
#  
\<IfModule mod\_authz\_host.c\>  
&nbsp;&nbsp;&nbsp; \<FilesMatch "^\.ht"\>  
&nbsp;&nbsp;&nbsp; Order allow,deny  
&nbsp;&nbsp;&nbsp; Deny from all  
&nbsp;&nbsp;&nbsp; \</FilesMatch\>  
\</IfModule\>

#  
# TypesConfig describes where the mime.types file (or equivalent) is  
# to be found.  
#  
\<IfModule mod\_mime.c\>  
&nbsp;&nbsp;&nbsp; TypesConfig conf/mime.types  
\</IfModule\>

#  
# DefaultType is the default MIME type the server will use for a document  
# if it cannot otherwise determine one, such as from filename extensions.  
# If your server contains mostly text or HTML documents, "text/plain" is  
# a good value.&nbsp; If most of your content is binary, such as applications  
# or images, you may want to use "application/octet-stream" instead to  
# keep browsers from trying to display binary files as though they are  
# text.  
#  
DefaultType text/plain

#  
# The mod\_mime\_magic module allows the server to use various hints from the  
# contents of the file itself to determine its type.&nbsp; The MIMEMagicFile  
# directive tells the module where the hint definitions are located.  
#  
\<IfModule mod\_mime\_magic.c\>  
&nbsp;&nbsp;&nbsp; MIMEMagicFile conf/magic  
\</IfModule\>

#  
# EnableMMAP: Control whether memory-mapping is used to deliver  
# files (assuming that the underlying OS supports it).  
# The default is on; turn this off if you serve from NFS-mounted  
# filesystems.&nbsp; On some systems, turning it off (regardless of  
# filesystem) can improve performance; for details, please see  
# [http://httpd.apache.org/docs-2.0/mod/core.html#enablemmap](http://httpd.apache.org/docs-2.0/mod/core.html#enablemmap)  
#  
#EnableMMAP off

#  
# EnableSendfile: Control whether the sendfile kernel support is  
# used&nbsp; to deliver files (assuming that the OS supports it).  
# The default is on; turn this off if you serve from NFS-mounted  
# filesystems.&nbsp; Please see  
# [http://httpd.apache.org/docs-2.0/mod/core.html#enablesendfile](http://httpd.apache.org/docs-2.0/mod/core.html#enablesendfile)  
#  
#EnableSendfile off

#  
# ErrorLog: The location of the error log file.  
# If you do not specify an ErrorLog directive within a \<VirtualHost\>  
# container, error messages relating to that virtual host will be  
# logged here.&nbsp; If you \*do\* define an error logfile for a \<VirtualHost\>  
# container, that host’s errors will be logged there and not here.  
#  
ErrorLog logs/error\_log

#  
# LogLevel: Control the number of messages logged to the error\_log.  
# Possible values include: debug, info, notice, warn, error, crit,  
# alert, emerg.  
#  
LogLevel warn

#  
# The following directives define some format nicknames for use with  
# a CustomLog directive (see below).  
#  
\<IfModule mod\_log\_config.c\>  
&nbsp;&nbsp;&nbsp; LogFormat "%h %l %u %t &quot;%r&quot; %\>s %b &quot;%{Referer}i&quot; &quot;%{User-Agent}i&quot;" combined  
&nbsp;&nbsp;&nbsp; LogFormat "%h %l %u %t &quot;%r&quot; %\>s %b" common  
&nbsp;&nbsp;&nbsp; LogFormat "%{Referer}i -\> %U" referer  
&nbsp;&nbsp;&nbsp; LogFormat "%{User-agent}i" agent  
&nbsp;&nbsp;&nbsp; LogFormat "%v %h %l %u %t &quot;%r&quot; %\>s %b &quot;%{Referer}i&quot; &quot;%{User-Agent}i&quot; VLOG=%{VLOG}e" vhost

&nbsp;&nbsp;&nbsp; \<IfModule mod\_logio.c\>  
&nbsp;&nbsp;&nbsp; # You need to enable mod\_logio.c to use %I and %O  
&nbsp;&nbsp;&nbsp; #LogFormat "%h %l %u %t &quot;%r&quot; %\>s %b &quot;%{Referer}i&quot; &quot;%{User-Agent}i&quot; %I %O" combinedio  
&nbsp;&nbsp;&nbsp; \</IfModule\>

&nbsp;&nbsp;&nbsp; #  
&nbsp;&nbsp;&nbsp; # The location and format of the access logfile (Common Logfile Format).  
&nbsp;&nbsp;&nbsp; # If you do not define any access logfiles within a \<VirtualHost\>  
&nbsp;&nbsp;&nbsp; # container, they will be logged here.&nbsp; Contrariwise, if you \*do\*  
&nbsp;&nbsp;&nbsp; # define per-\<VirtualHost\> access logfiles, transactions will be  
&nbsp;&nbsp;&nbsp; # logged therein and \*not\* in this file.  
&nbsp;&nbsp;&nbsp; #  
&nbsp;&nbsp;&nbsp; #CustomLog logs/access\_log common

&nbsp;&nbsp;&nbsp; #  
&nbsp;&nbsp;&nbsp; # If you would like to have agent and referer logfiles, uncomment the  
&nbsp;&nbsp;&nbsp; # following directives.  
&nbsp;&nbsp;&nbsp; #  
&nbsp;&nbsp;&nbsp; #CustomLog logs/referer\_log referer  
&nbsp;&nbsp;&nbsp; #CustomLog logs/agent\_log agent

&nbsp;&nbsp;&nbsp; #  
&nbsp;&nbsp;&nbsp; # If you prefer a single logfile with access, agent, and referer information  
&nbsp;&nbsp;&nbsp; # (Combined Logfile Format) you can use the following directive.  
&nbsp;&nbsp;&nbsp; #  
&nbsp;&nbsp;&nbsp; CustomLog logs/access\_log combined

&nbsp;&nbsp;&nbsp; #Single logfile with access, agent and referer information  
&nbsp;&nbsp;&nbsp; #This is the default, if vlogs are not defined for the main server  
&nbsp;&nbsp;&nbsp; #CustomLog logs/access\_log combined env=!VLOG  
&nbsp;&nbsp;&nbsp; #If VLOG is defined in a conf/vhosts.d/\*.conf, we use this entry  
&nbsp;&nbsp;&nbsp; #CustomLog "|/usr/sbin/advxsplitlogfile-DIET" vhost env=VLOG

\</IfModule\>

#  
# Aliases: Add here as many aliases as you need (with no limit). The format is  
# Alias fakename realname  
#  
\<IfModule mod\_alias.c\>  
&nbsp;&nbsp;&nbsp; # Note that if you include a trailing / on fakename then the server will  
&nbsp;&nbsp;&nbsp; # require it to be present in the URL.&nbsp; So “/icons” isn’t aliased in this  
&nbsp;&nbsp;&nbsp; # example, only “/icons/”.&nbsp; If the fakename is slash-terminated, then the  
&nbsp;&nbsp;&nbsp; # realname must also be slash terminated, and if the fakename omits the  
&nbsp;&nbsp;&nbsp; # trailing slash, the realname must also omit it.  
&nbsp;&nbsp;&nbsp; # We include the /icons/ alias for FancyIndexed directory listings.&nbsp; If you  
&nbsp;&nbsp;&nbsp; # do not use FancyIndexing, you may comment this out.  
&nbsp;&nbsp;&nbsp; Alias /icons/ “/var/www/icons/”  
&nbsp;&nbsp;&nbsp; Alias /error/ “/var/www/error/”

&nbsp;&nbsp;&nbsp; # ScriptAlias: This controls which directories contain server scripts.  
&nbsp;&nbsp;&nbsp; # ScriptAliases are essentially the same as Aliases, except that  
&nbsp;&nbsp;&nbsp; # documents in the realname directory are treated as applications and  
&nbsp;&nbsp;&nbsp; # run by the server when requested rather than as documents sent to the client.  
&nbsp;&nbsp;&nbsp; # The same rules about trailing "/" apply to ScriptAlias directives as to  
&nbsp;&nbsp;&nbsp; # Alias.  
&nbsp;&nbsp;&nbsp; ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"  
&nbsp;&nbsp;&nbsp; ScriptAlias /protected-cgi-bin/ "/var/www/protected-cgi-bin/"  
\</IfModule\>

\<Directory "/var/www/icons"\>  
&nbsp;&nbsp;&nbsp; Options -Indexes MultiViews  
&nbsp;&nbsp;&nbsp; AllowOverride None  
&nbsp;&nbsp;&nbsp; Order allow,deny  
&nbsp;&nbsp;&nbsp; Allow from all  
\</Directory\>

\<IfModule mod\_cgid.c\>  
&nbsp;&nbsp;&nbsp; # Additional to mod\_cgid.c settings, mod\_cgid has Scriptsock \<path\>  
&nbsp;&nbsp;&nbsp; # for setting UNIX socket for communicating with cgid.  
&nbsp;&nbsp;&nbsp; #Scriptsock&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /var/run/cgisock  
\</IfModule\>

#  
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased  
# CGI directory exists, if you have that configured.  
#  
\<Directory "/var/www/cgi-bin"\>  
&nbsp;&nbsp;&nbsp; AllowOverride All  
&nbsp;&nbsp;&nbsp; Options ExecCGI  
&nbsp;&nbsp;&nbsp; Order allow,deny  
&nbsp;&nbsp;&nbsp; Allow from all  
\</Directory\>

\<Directory "/var/www/protected-cgi-bin"\>  
&nbsp;&nbsp;&nbsp; AllowOverride All  
&nbsp;&nbsp;&nbsp; Options ExecCGI  
&nbsp;&nbsp;&nbsp; Order deny,allow  
&nbsp;&nbsp;&nbsp; Deny from all  
&nbsp;&nbsp;&nbsp; Allow from 127.0.0.1  
&nbsp;&nbsp;&nbsp; #allow from .your\_domain.com  
\</Directory\>

#  
# Redirect allows you to tell clients about documents which used to exist in  
# your server’s namespace, but do not anymore. This allows you to tell the  
# clients where to look for the relocated document.  
# Example:  
# Redirect permanent /foo [http://www.example.com/bar](http://www.example.com/bar)

#  
# Directives controlling the display of server-generated directory listings.  
#  
#  
# IndexOptions: Controls the appearance of server-generated directory  
# listings.  
#  
\<IfModule mod\_autoindex.c\>  
&nbsp;&nbsp;&nbsp; # FancyIndexing is whether you want fancy directory indexing or standard  
&nbsp;&nbsp;&nbsp; IndexOptions FancyIndexing VersionSort NameWidth=\* HTMLTable

&nbsp;&nbsp;&nbsp; # AddIcon\* directives tell the server which icon to show for different  
&nbsp;&nbsp;&nbsp; # files or filename extensions.&nbsp; These are only displayed for  
&nbsp;&nbsp;&nbsp; # FancyIndexed directories.  
&nbsp;&nbsp;&nbsp; AddIconByEncoding (CMP,/icons/compressed.png) x-compress x-gzip

&nbsp;&nbsp;&nbsp; AddIconByType (TXT,/icons/text.png) text/\*  
&nbsp;&nbsp;&nbsp; AddIconByType (IMG,/icons/image2.png) image/\*  
&nbsp;&nbsp;&nbsp; AddIconByType (SND,/icons/sound2.png) audio/\*  
&nbsp;&nbsp;&nbsp; AddIconByType (VID,/icons/movie.png) video/\*

&nbsp;&nbsp;&nbsp; AddIcon /icons/binary.png .bin .exe  
&nbsp;&nbsp;&nbsp; AddIcon /icons/binhex.png .hqx  
&nbsp;&nbsp;&nbsp; AddIcon /icons/tar.png .tar  
&nbsp;&nbsp;&nbsp; AddIcon /icons/world2.png .wrl .wrl.gz .vrml .vrm .iv  
&nbsp;&nbsp;&nbsp; AddIcon /icons/compressed.png .Z .z .tgz .gz .zip  
&nbsp;&nbsp;&nbsp; AddIcon /icons/a.png .ps .ai .eps  
&nbsp;&nbsp;&nbsp; AddIcon /icons/layout.png .html .shtml .htm .pdf  
&nbsp;&nbsp;&nbsp; AddIcon /icons/text.png .txt  
&nbsp;&nbsp;&nbsp; AddIcon /icons/c.png .c  
&nbsp;&nbsp;&nbsp; AddIcon /icons/p.png .pl .py  
&nbsp;&nbsp;&nbsp; AddIcon /icons/f.png .for  
&nbsp;&nbsp;&nbsp; AddIcon /icons/dvi.png .dvi  
&nbsp;&nbsp;&nbsp; AddIcon /icons/uuencoded.png .uu  
&nbsp;&nbsp;&nbsp; AddIcon /icons/script.png .conf .sh .shar .csh .ksh .tcl  
&nbsp;&nbsp;&nbsp; AddIcon /icons/tex.png .tex  
&nbsp;&nbsp;&nbsp; AddIcon /icons/bomb.png core

&nbsp;&nbsp;&nbsp; AddIcon /icons/back.png …  
&nbsp;&nbsp;&nbsp; AddIcon /icons/hand.right.png README  
&nbsp;&nbsp;&nbsp; AddIcon /icons/folder.png ^^DIRECTORY^^  
&nbsp;&nbsp;&nbsp; AddIcon /icons/blank.png ^^BLANKICON^^

&nbsp;&nbsp;&nbsp; # DefaultIcon is which icon to show for files which do not have an icon  
&nbsp;&nbsp;&nbsp; # explicitly set.  
&nbsp;&nbsp;&nbsp; DefaultIcon /icons/unknown.png

&nbsp;&nbsp;&nbsp; # AddDescription allows you to place a short description after a file in  
&nbsp;&nbsp;&nbsp; # server-generated indexes.&nbsp; These are only displayed for FancyIndexed  
&nbsp;&nbsp;&nbsp; # directories.  
&nbsp;&nbsp;&nbsp; # Format: AddDescription "description" filename  
&nbsp;&nbsp;&nbsp; #AddDescription "GZIP compressed document" .gz  
&nbsp;&nbsp;&nbsp; #AddDescription "tar archive" .tar  
&nbsp;&nbsp;&nbsp; #AddDescription "GZIP compressed tar archive" .tgz

&nbsp;&nbsp;&nbsp; # ReadmeName is the name of the README file the server will look for by  
&nbsp;&nbsp;&nbsp; # default, and append to directory listings.  
&nbsp;&nbsp;&nbsp; # HeaderName is the name of a file which should be prepended to  
&nbsp;&nbsp;&nbsp; # directory indexes.  
&nbsp;&nbsp;&nbsp; ReadmeName README.html  
&nbsp;&nbsp;&nbsp; HeaderName HEADER.html

&nbsp;&nbsp;&nbsp; # IndexIgnore is a set of filenames which directory indexing should ignore  
&nbsp;&nbsp;&nbsp; # and not include in the listing.&nbsp; Shell-style wildcarding is permitted.  
&nbsp;&nbsp;&nbsp; IndexIgnore .??\* \*~ \*# HEADER\* README\* RCS CVS \*,v \*,t  
\</IfModule\>  
# End of indexing directives.

#  
# DefaultLanguage and AddLanguage allows you to specify the language of  
# a document. You can then use content negotiation to give a browser a  
# file in a language the user can understand.  
#  
# Specify a default language. This means that all data  
# going out without a specific language tag (see below) will  
# be marked with this one. You probably do NOT want to set  
# this unless you are sure it is correct for all cases.  
#  
# \* It is generally better to not mark a page as  
# \* being a certain language than marking it with the wrong  
# \* language!  
#  
# DefaultLanguage nl  
#  
# Note 1: The suffix does not have to be the same as the language  
# keyword — those with documents in Polish (whose net-standard  
# language code is pl) may wish to use “AddLanguage pl .po” to  
# avoid the ambiguity with the common suffix for perl scripts.  
#  
# Note 2: The example entries below illustrate that in some cases  
# the two character ‘Language’ abbreviation is not identical to  
# the two character ‘Country’ code for its country,  
# E.g. ‘Danmark/dk’ versus ‘Danish/da’.  
#  
# Note 3: In the case of ‘ltz’ we violate the RFC by using a three char  
# specifier. There is ‘work in progress’ to fix this and get  
# the reference data for rfc1766 cleaned up.  
#  
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)  
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)  
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)  
# Korean (ko) - Luxembourgeois\* (ltz) - Norwegian Nynorsk (nn)  
# Norwegian (no) - Polish (pl) - Portugese (pt)  
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)  
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)  
#

\<IfModule mod\_mime.c\>  
&nbsp;&nbsp;&nbsp; AddLanguage ca .ca  
&nbsp;&nbsp;&nbsp; AddLanguage cs .cz .cs  
&nbsp;&nbsp;&nbsp; AddLanguage da .dk  
&nbsp;&nbsp;&nbsp; AddLanguage de .de  
&nbsp;&nbsp;&nbsp; AddLanguage el .el  
&nbsp;&nbsp;&nbsp; AddLanguage en .en  
&nbsp;&nbsp;&nbsp; AddLanguage eo .eo  
&nbsp;&nbsp;&nbsp; AddLanguage es .es  
&nbsp;&nbsp;&nbsp; AddLanguage et .et  
&nbsp;&nbsp;&nbsp; AddLanguage fr .fr  
&nbsp;&nbsp;&nbsp; AddLanguage he .he  
&nbsp;&nbsp;&nbsp; AddLanguage hr .hr  
&nbsp;&nbsp;&nbsp; AddLanguage it .it  
&nbsp;&nbsp;&nbsp; AddLanguage ja .ja  
&nbsp;&nbsp;&nbsp; AddLanguage ko .ko  
&nbsp;&nbsp;&nbsp; AddLanguage ltz .ltz  
&nbsp;&nbsp;&nbsp; AddLanguage nl .nl  
&nbsp;&nbsp;&nbsp; AddLanguage nn .nn  
&nbsp;&nbsp;&nbsp; AddLanguage no .no  
&nbsp;&nbsp;&nbsp; AddLanguage pl .po  
&nbsp;&nbsp;&nbsp; AddLanguage pt .pt  
&nbsp;&nbsp;&nbsp; AddLanguage pt-BR .pt-br  
&nbsp;&nbsp;&nbsp; AddLanguage ru .ru  
&nbsp;&nbsp;&nbsp; AddLanguage sv .sv  
&nbsp;&nbsp;&nbsp; AddLanguage zh-CN .zh-cn  
&nbsp;&nbsp;&nbsp; AddLanguage zh-TW .zh-tw

&nbsp;&nbsp;&nbsp; # LanguagePriority allows you to give precedence to some languages  
&nbsp;&nbsp;&nbsp; # in case of a tie during content negotiation.  
&nbsp;&nbsp;&nbsp; # Just list the languages in decreasing order of preference. We have  
&nbsp;&nbsp;&nbsp; # more or less alphabetized them here. You probably want to change this.  
&nbsp;&nbsp;&nbsp; \<IfModule mod\_negotiation.c\>  
&nbsp;&nbsp;&nbsp; LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW  
&nbsp;&nbsp;&nbsp; \</IfModule\>

&nbsp;&nbsp;&nbsp; # ForceLanguagePriority allows you to serve a result page rather than  
&nbsp;&nbsp;&nbsp; # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)  
&nbsp;&nbsp;&nbsp; # [in case no accepted languages matched the available variants]  
&nbsp;&nbsp;&nbsp; \<IfModule mod\_negotiation.c\>  
&nbsp;&nbsp;&nbsp; ForceLanguagePriority Prefer Fallback  
&nbsp;&nbsp;&nbsp; \</IfModule\>

&nbsp;&nbsp;&nbsp; # Commonly used filename extensions to character sets. You probably  
&nbsp;&nbsp;&nbsp; # want to avoid clashes with the language extensions, unless you  
&nbsp;&nbsp;&nbsp; # are good at carefully testing your setup after each change.  
&nbsp;&nbsp;&nbsp; # See [http://www.iana.org/assignments/character-sets](http://www.iana.org/assignments/character-sets) for the  
&nbsp;&nbsp;&nbsp; # official list of charset names and their respective RFCs.  
&nbsp;&nbsp;&nbsp; AddCharset us-ascii.ascii .us-ascii  
&nbsp;&nbsp;&nbsp; AddCharset ISO-8859-1&nbsp; .iso8859-1&nbsp; .latin1  
&nbsp;&nbsp;&nbsp; AddCharset ISO-8859-2&nbsp; .iso8859-2&nbsp; .latin2 .cen  
&nbsp;&nbsp;&nbsp; AddCharset ISO-8859-3&nbsp; .iso8859-3&nbsp; .latin3  
&nbsp;&nbsp;&nbsp; AddCharset ISO-8859-4&nbsp; .iso8859-4&nbsp; .latin4  
&nbsp;&nbsp;&nbsp; AddCharset ISO-8859-5&nbsp; .iso8859-5&nbsp; .latin5 .cyr .iso-ru  
&nbsp;&nbsp;&nbsp; AddCharset ISO-8859-6&nbsp; .iso8859-6&nbsp; .latin6 .arb  
&nbsp;&nbsp;&nbsp; AddCharset ISO-8859-7&nbsp; .iso8859-7&nbsp; .latin7 .grk  
&nbsp;&nbsp;&nbsp; AddCharset ISO-8859-8&nbsp; .iso8859-8&nbsp; .latin8 .heb  
&nbsp;&nbsp;&nbsp; AddCharset ISO-8859-9&nbsp; .iso8859-9&nbsp; .latin9 .trk  
&nbsp;&nbsp;&nbsp; AddCharset ISO-8859-10 .iso8859-10 .latin6  
&nbsp;&nbsp;&nbsp; AddCharset ISO-8859-13 .iso8859-13  
&nbsp;&nbsp;&nbsp; AddCharset ISO-8859-14 .iso8859-14 .latin8  
&nbsp;&nbsp;&nbsp; AddCharset ISO-8859-15 .iso8859-15 .latin9  
&nbsp;&nbsp;&nbsp; AddCharset ISO-8859-16 .iso8859-16 .latin10  
&nbsp;&nbsp;&nbsp; AddCharset ISO-2022-JP .iso2022-jp .jis  
&nbsp;&nbsp;&nbsp; AddCharset ISO-2022-KR .iso2022-kr .kis  
&nbsp;&nbsp;&nbsp; AddCharset ISO-2022-CN .iso2022-cn .cis  
&nbsp;&nbsp;&nbsp; AddCharset Big5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Big5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .big5

&nbsp;&nbsp;&nbsp; # For russian, more than one charset is used (depends on client, mostly):  
&nbsp;&nbsp;&nbsp; AddCharset WINDOWS-1251 .cp-1251&nbsp;&nbsp; .win-1251  
&nbsp;&nbsp;&nbsp; AddCharset CP866&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .cp866  
&nbsp;&nbsp;&nbsp; AddCharset KOI8 .koi8  
&nbsp;&nbsp;&nbsp; AddCharset KOI8-E .koi8-e  
&nbsp;&nbsp;&nbsp; AddCharset KOI8-r .koi8-r .koi8-ru  
&nbsp;&nbsp;&nbsp; AddCharset KOI8-U .koi8-u  
&nbsp;&nbsp;&nbsp; AddCharset KOI8-ru .koi8-uk .ua  
&nbsp;&nbsp;&nbsp; AddCharset ISO-10646-UCS-2 .ucs2  
&nbsp;&nbsp;&nbsp; AddCharset ISO-10646-UCS-4 .ucs4  
&nbsp;&nbsp;&nbsp; AddCharset UTF-7 .utf7  
&nbsp;&nbsp;&nbsp; AddCharset UTF-8 .utf8  
&nbsp;&nbsp;&nbsp; AddCharset UTF-16 .utf16  
&nbsp;&nbsp;&nbsp; AddCharset UTF-16BE .utf16be  
&nbsp;&nbsp;&nbsp; AddCharset UTF-16LE .utf16le  
&nbsp;&nbsp;&nbsp; AddCharset UTF-32 .utf32  
&nbsp;&nbsp;&nbsp; AddCharset UTF-32BE .utf32be  
&nbsp;&nbsp;&nbsp; AddCharset UTF-32LE .utf32le

&nbsp;&nbsp;&nbsp; # The set below does not map to a specific (iso) standard  
&nbsp;&nbsp;&nbsp; # but works on a fairly wide range of browsers. Note that  
&nbsp;&nbsp;&nbsp; # capitalization actually matters (it should not, but it  
&nbsp;&nbsp;&nbsp; # does for some browsers).  
&nbsp;&nbsp;&nbsp; #  
&nbsp;&nbsp;&nbsp; # See [http://www.iana.org/assignments/character-sets](http://www.iana.org/assignments/character-sets)  
&nbsp;&nbsp;&nbsp; # for a list of sorts. But browsers support few.  
&nbsp;&nbsp;&nbsp; AddCharset GB2312&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .gb2312 .gb  
&nbsp;&nbsp;&nbsp; AddCharset utf-7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .utf7  
&nbsp;&nbsp;&nbsp; AddCharset utf-8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .utf8  
&nbsp;&nbsp;&nbsp; AddCharset big5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .big5 .b5  
&nbsp;&nbsp;&nbsp; AddCharset EUC-TW&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .euc-tw  
&nbsp;&nbsp;&nbsp; AddCharset EUC-JP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .euc-jp  
&nbsp;&nbsp;&nbsp; AddCharset EUC-KR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .euc-kr  
&nbsp;&nbsp;&nbsp; AddCharset shift\_jis&nbsp;&nbsp; .sjis

&nbsp;&nbsp;&nbsp; # Specify a default charset for all pages sent out. This is  
&nbsp;&nbsp;&nbsp; # always a good idea and opens the door for future internationalisation  
&nbsp;&nbsp;&nbsp; # of your web site, should you ever want it. Specifying it as  
&nbsp;&nbsp;&nbsp; # a default does little harm; as the standard dictates that a page  
&nbsp;&nbsp;&nbsp; # is in iso-8859-1 (latin1) unless specified otherwise i.e. you  
&nbsp;&nbsp;&nbsp; # are merely stating the obvious. There are also some security  
&nbsp;&nbsp;&nbsp; # reasons in browsers, related to javascript and URL parsing  
&nbsp;&nbsp;&nbsp; # which encourage you to always set a default char set.  
&nbsp;&nbsp;&nbsp; #AddDefaultCharset ISO-8859-1  
&nbsp;&nbsp;&nbsp; # JMD 2003/09/15 Change to off, since it overrides the META tags  
&nbsp;&nbsp;&nbsp; AddDefaultCharset Off

&nbsp;&nbsp;&nbsp; # AddType allows you to add to or override the MIME configuration  
&nbsp;&nbsp;&nbsp; # file mime.types for specific file types.  
&nbsp;&nbsp;&nbsp; #AddType application/x-tar .tgz

&nbsp;&nbsp;&nbsp; # AddEncoding allows you to have certain browsers uncompress  
&nbsp;&nbsp;&nbsp; # information on the fly. Note: Not all browsers support this.  
&nbsp;&nbsp;&nbsp; # Despite the name similarity, the following Add\* directives have nothing  
&nbsp;&nbsp;&nbsp; # to do with the FancyIndexing customization directives above.  
&nbsp;&nbsp;&nbsp; #AddEncoding x-compress .Z  
&nbsp;&nbsp;&nbsp; #AddEncoding x-gzip .gz .tgz  
&nbsp;&nbsp;&nbsp; # If the AddEncoding directives above are commented-out, then you  
&nbsp;&nbsp;&nbsp; # probably should define those extensions to indicate media types:  
&nbsp;&nbsp;&nbsp; AddType application/x-compress .Z  
&nbsp;&nbsp;&nbsp; AddType application/x-gzip .gz .tgz  
&nbsp;&nbsp;&nbsp; AddType image/x-icon .ico

&nbsp;&nbsp;&nbsp; # AddHandler allows you to map certain file extensions to "handlers":  
&nbsp;&nbsp;&nbsp; # actions unrelated to filetype. These can be either built into the server  
&nbsp;&nbsp;&nbsp; # or added with the Action directive (see below)  
&nbsp;&nbsp;&nbsp; # To use CGI scripts outside of ScriptAliased directories:  
&nbsp;&nbsp;&nbsp; # (You will also need to add "ExecCGI" to the "Options" directive.)  
&nbsp;&nbsp;&nbsp; AddHandler cgi-script .cgi

&nbsp;&nbsp;&nbsp; # For files that include their own HTTP headers:  
&nbsp;&nbsp;&nbsp; #AddHandler send-as-is asis

&nbsp;&nbsp;&nbsp; # For server-parsed imagemap files:  
&nbsp;&nbsp;&nbsp; AddHandler imap-file map

&nbsp;&nbsp;&nbsp; # For type maps (negotiated resources):  
&nbsp;&nbsp;&nbsp; # (This is enabled by default to allow the Apache "It Worked" page  
&nbsp;&nbsp;&nbsp; #&nbsp; to be distributed in multiple languages.)  
&nbsp;&nbsp;&nbsp; AddHandler type-map var

&nbsp;&nbsp;&nbsp; # Filters allow you to process content before it is sent to the client.  
&nbsp;&nbsp;&nbsp; # To parse .shtml files for server-side includes (SSI):  
&nbsp;&nbsp;&nbsp; # (You will also need to add "Includes" to the "Options" directive.)  
&nbsp;&nbsp;&nbsp; \<IfModule mod\_include.c\>  
&nbsp;&nbsp;&nbsp; AddType text/html .shtml  
&nbsp;&nbsp;&nbsp; AddOutputFilter INCLUDES .shtml  
&nbsp;&nbsp;&nbsp; \</IfModule\>  
\</IfModule\>

#  
# Action lets you define media types that will execute a script whenever  
# a matching file is called. This eliminates the need for repeated URL  
# pathnames for oft-used CGI file processors.  
# Format: Action media/type /cgi-script/location  
# Format: Action handler-name /cgi-script/location  
#

#  
# Customizable error responses come in three flavors:  
# 1) plain text 2) local redirects 3) external redirects  
#  
# Some examples:  
#ErrorDocument 500 "The server made a boo boo."  
#ErrorDocument 404 /missing.html  
#ErrorDocument 404 "/cgi-bin/missing\_handler.pl"  
#ErrorDocument 402 [http://www.example.com/subscription\_info.html](http://www.example.com/subscription_info.html)  
#

#  
# Putting this all together, we can internationalize error responses.  
#  
# We use Alias to redirect any /error/HTTP\_\<error\>.html.var response to  
# our collection of by-error message multi-language collections.&nbsp; We use  
# includes to substitute the appropriate text.  
#  
# You can modify the messages’ appearance without changing any of the  
# default HTTP\_\<error\>.html.var files by adding the line:  
#  
#&nbsp;&nbsp; Alias /error/include/ “/your/include/path/”  
#  
# which allows you to create your own set of files by starting with the  
# /var/www/error/include/ files and copying them to /your/include/path/,  
# even on a per-VirtualHost basis.&nbsp; The default include files will display  
# your Apache version number and your ServerAdmin email address regardless  
# of the setting of ServerSignature.  
#  
# The internationalized error documents require mod\_alias, mod\_include  
# and mod\_negotiation.&nbsp; To activate them, uncomment the following 30 lines.

\<IfModule mod\_negotiation.c\>  
&nbsp;&nbsp;&nbsp; \<IfModule mod\_include.c\>

&nbsp;&nbsp;&nbsp; \<Directory "/var/www/error"\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AllowOverride None  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Options IncludesNoExec  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AddOutputFilter Includes html  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AddHandler type-map var  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Order allow,deny  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow from all  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ForceLanguagePriority Prefer Fallback  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \</Directory\>  
&nbsp;&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrorDocument 400 /error/HTTP\_BAD\_REQUEST.html.var  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrorDocument 401 /error/HTTP\_UNAUTHORIZED.html.var  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrorDocument 403 /error/HTTP\_FORBIDDEN.html.var  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrorDocument 404 /error/HTTP\_NOT\_FOUND.html.var  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrorDocument 405 /error/HTTP\_METHOD\_NOT\_ALLOWED.html.var  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrorDocument 408 /error/HTTP\_REQUEST\_TIME\_OUT.html.var  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrorDocument 410 /error/HTTP\_GONE.html.var  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrorDocument 411 /error/HTTP\_LENGTH\_REQUIRED.html.var  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrorDocument 412 /error/HTTP\_PRECONDITION\_FAILED.html.var  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrorDocument 413 /error/HTTP\_REQUEST\_ENTITY\_TOO\_LARGE.html.var  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrorDocument 414 /error/HTTP\_REQUEST\_URI\_TOO\_LARGE.html.var  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrorDocument 415 /error/HTTP\_UNSUPPORTED\_MEDIA\_TYPE.html.var  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrorDocument 500 /error/HTTP\_INTERNAL\_SERVER\_ERROR.html.var  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrorDocument 501 /error/HTTP\_NOT\_IMPLEMENTED.html.var  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrorDocument 502 /error/HTTP\_BAD\_GATEWAY.html.var  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrorDocument 503 /error/HTTP\_SERVICE\_UNAVAILABLE.html.var  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ErrorDocument 506 /error/HTTP\_VARIANT\_ALSO\_VARIES.html.var

&nbsp;&nbsp;&nbsp; \</IfModule\>  
\</IfModule\>

\<IfModule mod\_setenvif.c\>  
&nbsp;&nbsp;&nbsp; # The following directives modify normal HTTP response behavior to  
&nbsp;&nbsp;&nbsp; # handle known problems with browser implementations.  
&nbsp;&nbsp;&nbsp; BrowserMatch "Mozilla/2" nokeepalive  
&nbsp;&nbsp;&nbsp; BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0  
&nbsp;&nbsp;&nbsp; BrowserMatch "RealPlayer 4\.0" force-response-1.0  
&nbsp;&nbsp;&nbsp; BrowserMatch "Java/1\.0" force-response-1.0  
&nbsp;&nbsp;&nbsp; BrowserMatch "JDK/1\.0" force-response-1.0

&nbsp;&nbsp;&nbsp; # The following directive disables redirects on non-GET requests for  
&nbsp;&nbsp;&nbsp; # a directory that does not include the trailing slash.&nbsp; This fixes a  
&nbsp;&nbsp;&nbsp; # problem with Microsoft WebFolders which does not appropriately handle  
&nbsp;&nbsp;&nbsp; # redirects for folders with DAV methods.  
&nbsp;&nbsp;&nbsp; # Same deal with Apple’s DAV filesystem and Gnome VFS support for DAV.  
&nbsp;&nbsp;&nbsp; BrowserMatch “Microsoft Data Access Internet Publishing Provider” redirect-carefully  
&nbsp;&nbsp;&nbsp; BrowserMatch “MS FrontPage” redirect-carefully  
&nbsp;&nbsp;&nbsp; BrowserMatch “^WebDrive” redirect-carefully  
&nbsp;&nbsp;&nbsp; BrowserMatch “^WebDAVFS/1.[0123]” redirect-carefully  
&nbsp;&nbsp;&nbsp; BrowserMatch “^gnome-vfs” redirect-carefully  
&nbsp;&nbsp;&nbsp; BrowserMatch “^XML Spy” redirect-carefully  
&nbsp;&nbsp;&nbsp; BrowserMatch “^Dreamweaver-WebDAV-SCM1” redirect-carefully  
\</IfModule\>  
&nbsp;&nbsp;&nbsp;  
#  
# Get information about the requests being processed by the server  
# and the configuration of the server.  
#  
# Required modules: mod\_status (for the server-status handler),  
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mod\_info (for the server-info handler)

#  
# Allow server status reports generated by mod\_status,  
# with the URL of [http://servername/server-status](http://servername/server-status)  
# Change the ".example.com" to match your domain to enable.  
\<IfModule mod\_status.c\>  
&nbsp;&nbsp;&nbsp; \<Location /server-status\>  
&nbsp;&nbsp;&nbsp; SetHandler server-status  
&nbsp;&nbsp;&nbsp; Order deny,allow  
&nbsp;&nbsp;&nbsp; Deny from all  
&nbsp;&nbsp;&nbsp; allow from 127.0.0.1  
&nbsp;&nbsp;&nbsp; #Allow from .your\_domain.com  
&nbsp;&nbsp;&nbsp; \</Location\>

&nbsp;&nbsp;&nbsp; # ExtendedStatus controls whether Apache will generate "full" status  
&nbsp;&nbsp;&nbsp; # information (ExtendedStatus On) or just basic information (ExtendedStatus  
&nbsp;&nbsp;&nbsp; # Off) when the "server-status" handler is called. The default is Off.  
&nbsp;&nbsp;&nbsp; ExtendedStatus On  
\</IfModule\>

#  
# Allow remote server configuration reports, with the URL of  
#&nbsp; [http://servername/server-info](http://servername/server-info) (requires that mod\_info.c be loaded).  
# Change the ".example.com" to match your domain to enable.  
#  
\<IfModule mod\_info.c\>  
&nbsp;&nbsp;&nbsp; \<Location /server-info\>  
&nbsp;&nbsp;&nbsp; SetHandler server-info  
&nbsp;&nbsp;&nbsp; Order deny,allow  
&nbsp;&nbsp;&nbsp; Deny from all  
&nbsp;&nbsp;&nbsp; allow from 127.0.0.1  
&nbsp;&nbsp;&nbsp; #Allow from .your\_domain.com  
&nbsp;&nbsp;&nbsp; \</Location\>  
\</IfModule\>

\<IfModule mod\_usertrack.c\>  
&nbsp;&nbsp;&nbsp; # This is the default.  
&nbsp;&nbsp;&nbsp; CookieName Apache  
\</IfModule\>

\<Directory /var/www/html/addon-modules\>  
&nbsp;&nbsp;&nbsp; Options Indexes FollowSymLinks  
\</Directory\>

\<Location /index.shtml\>  
&nbsp;&nbsp;&nbsp; Options +Includes  
\</Location\>

\<IfModule mod\_speling.c\>  
&nbsp;&nbsp;&nbsp; CheckSpelling On  
&nbsp;&nbsp;&nbsp; AcceptPathInfo On  
\</IfModule\>

Include conf/fileprotector.conf

# webapps configuration section  
# Web applications should be activated \_after\_ apache has been  
# configured properly.  
Include conf/webapps.d/\*.conf

### Section 3: Virtual Hosts  
#  
# VirtualHost: If you want to maintain multiple domains/hostnames on your  
# machine you can setup VirtualHost containers for them. Most configurations  
# use only name-based virtual hosts so the server doesn’t need to worry about  
# IP addresses. This is indicated by the asterisks in the directives below.  
#  
# Please see the documentation at  
# \<URL:[http://httpd.apache.org/docs-2.0/vhosts/](http://httpd.apache.org/docs-2.0/vhosts/)\>  
# for further details before you try to setup virtual hosts.  
#  
# You may use the command line option ‘-S’ to verify your virtual host  
# configuration.

#  
# Use name-based virtual hosting.  
#  
#NameVirtualHost \*:80  
#Setenv VLOG

#  
# VirtualHost example:  
# Almost any Apache directive may go into a VirtualHost container.  
# The first VirtualHost section is used for requests without a known  
# server name.  
#  
#\<VirtualHost \*:80\>  
#&nbsp;&nbsp;&nbsp; ServerAdmin [webmaster@dummy-host.example.com](mailto:webmaster@dummy-host.example.com)  
#&nbsp;&nbsp;&nbsp; DocumentRoot /www/docs/dummy-host.example.com  
#&nbsp;&nbsp;&nbsp; ServerName [dummy-host.example.com](http://dummy-host.example.com)  
#&nbsp;&nbsp;&nbsp; ErrorLog /var/log/httpd/dummy-host.example.com-error\_log  
#&nbsp;&nbsp;&nbsp; CustomLog /var/log/httpd/dummy-host.example.com-access\_log common  
#\</VirtualHost\>

################################################################################  
# virtual hosts configuration section  
# Include virtual hosts, if any  
Include conf/vhosts.d/\*.conf

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 14, 2007, 1:33pm UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/18 "2007-09-14T13:33:25Z")

</div>

**[dr\_smit](https://sourceforge.net/u/dr_smit/)** wrote on [Friday, September 14, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/81fa):

please help…

is&nbsp; there anything else needed???

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 14, 2007, 1:50pm UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/19 "2007-09-14T13:50:37Z")

</div>

**[drbowen](https://sourceforge.net/u/drbowen/)** wrote on [Friday, September 14, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/88b4):

In:

/var/www/html/openemr/interface/globals.php

$webserver\_root = "/mnt/htdocs/openemr";

Should be changed to

$webserver\_root = "/var/www/html/openemr";

$web\_root = "/openemr";

Should be unchanged.

What kind of output do get with these changes?

Sam Bowen, MD

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [September 15, 2007, 2:26am UTC](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046/20 "2007-09-15T02:26:09Z")

</div>

**[dr\_smit](https://sourceforge.net/u/dr_smit/)** wrote on [Saturday, September 15, 2007](https://sourceforge.net/p/openemr/discussion/202505/thread/d891ee9c/#b119/1845):

it worked!!!!

some errors about calender on logging, I will try to solve it, would get back to you if I need your expertise…

Thank you, You are wonderful!!!!

[Next page](https://community.open-emr.org/t/am-i-missing-or-messing-something/2046.md?page=2)
