Difference between revisions of "Env settings.php"

From ARK
Jump to: navigation, search
 
Line 1: Line 1:
This small file contains only settings relating to the specific server environment. This is specifically for the ends of multiple sever environments.
+
This small file contains only settings relating to the specific server environment. This is specifically for the ends of multiple sever environments. There are three settings which you need to think about: the document root of this virtual host, the path to the pear configuration, and the path to the ARK directory.
There are three settings which you need to think about:  
 
  
The document root of this virtual host (as set up in your apache conf)
+
The env_settings.php file will look different depending on your server setup.  An example of each is shown below.
  
$doc_root = 'C:\ms4w\Apache\htdocs';
+
====MS4W====
  
This is ok if you are using the ms4w server package
+
A ms4w (mapserver for windows) is appropriate for projects holding the ARK database on a Windows system (eg. a laptop, a Windows shuttle).  The env_settings.php for an ms4w installation of ARK should look like this:
  
If you are using a mac server you it might be some thing like this
+
<pre>
 +
case ms4w:
 +
// The document root of this virtual host (as set up in your apache conf)
 +
$doc_root = 'C:\ms4w\Apache\htdocs';
 +
// The path to the PEAR installation (windows has ; first)
 +
$pear_path = ";C:\ms4w\Apache\php\PEAR";
 +
// The server path to the ark directory
 +
$ark_server_path = 'C:\ms4w\Apache\htdocs\portus';
 +
</pre>
  
$doc_root = '/Applications/MAMP/htdocs/v2';
+
====Mac====
  
[[category:administrator]]
+
A Mac setup will differ from the above.  For projects holding the ARK database on a Mac system, the env_settings.php should look like this:
 +
 +
<pre>
 +
case mac:
 +
// The document root of this virtual host (as set up in your apache conf)
 +
$doc_root = '/Applications/MAMP/htdocs';
 +
// The path to the PEAR installation (unix has : first)
 +
$pear_path = ':/Applications/MAMP/htdocs/pear/';
 +
// The server path to the ark directory
 +
$ark_server_path = '/Users/user1/Sites/ark/';
 +
</pre>
 +
 
 +
====Linux====
 +
When using a linux system, users will need to use the following env_settings.php configuration:
 +
 
 +
<pre>
 +
case linux:
 +
// The document root of this virtual host (as set up in your apache conf)
 +
$doc_root = '/srv/www/docroot/';
 +
// The path to the PEAR installation (unix has : first)
 +
$pear_path = ':/usr/share/php5/PEAR';
 +
// The server path to the ark directory
 +
$ark_server_path = '/srv/www/htdocs/ark';
 +
</pre>
 +
 
 +
[[category:Administrator]]

Revision as of 17:32, 13 November 2008

This small file contains only settings relating to the specific server environment. This is specifically for the ends of multiple sever environments. There are three settings which you need to think about: the document root of this virtual host, the path to the pear configuration, and the path to the ARK directory.

The env_settings.php file will look different depending on your server setup. An example of each is shown below.

MS4W

A ms4w (mapserver for windows) is appropriate for projects holding the ARK database on a Windows system (eg. a laptop, a Windows shuttle). The env_settings.php for an ms4w installation of ARK should look like this:

	case ms4w:
		// The document root of this virtual host (as set up in your apache conf)
		$doc_root = 'C:\ms4w\Apache\htdocs';
		// The path to the PEAR installation (windows has ; first)
		$pear_path = ";C:\ms4w\Apache\php\PEAR";
		// The server path to the ark directory
		$ark_server_path = 'C:\ms4w\Apache\htdocs\portus';

Mac

A Mac setup will differ from the above. For projects holding the ARK database on a Mac system, the env_settings.php should look like this:

	case mac:
		// The document root of this virtual host (as set up in your apache conf)
		$doc_root = '/Applications/MAMP/htdocs';
		// The path to the PEAR installation (unix has : first)
		$pear_path = ':/Applications/MAMP/htdocs/pear/';
		// The server path to the ark directory
		$ark_server_path = '/Users/user1/Sites/ark/';

Linux

When using a linux system, users will need to use the following env_settings.php configuration:

	case linux:
		// The document root of this virtual host (as set up in your apache conf)
		$doc_root = '/srv/www/docroot/';
		// The path to the PEAR installation (unix has : first)
		$pear_path = ':/usr/share/php5/PEAR';
		// The server path to the ark directory
		$ark_server_path = '/srv/www/htdocs/ark';