Difference between revisions of "Env settings.php"

From ARK
Jump to: navigation, search
(MS4W)
Line 15: Line 15:
 
$pear_path = ";C:\ms4w\Apache\php\PEAR";
 
$pear_path = ";C:\ms4w\Apache\php\PEAR";
 
// The server path to the ark directory
 
// The server path to the ark directory
$ark_server_path = 'C:\ms4w\Apache\htdocs\portus';
+
$ark_server_path = 'C:\ms4w\Apache\htdocs\ark';
 
</pre>
 
</pre>
  

Revision as of 15:12, 14 November 2008

Contents

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:

		// 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\ark';

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:

		// 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:

		// 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';