aboutsummaryrefslogtreecommitdiff
path: root/install/cli/sample_installer.php
diff options
context:
space:
mode:
Diffstat (limited to 'install/cli/sample_installer.php')
-rw-r--r--install/cli/sample_installer.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/install/cli/sample_installer.php b/install/cli/sample_installer.php
new file mode 100644
index 000000000..10838b562
--- /dev/null
+++ b/install/cli/sample_installer.php
@@ -0,0 +1,29 @@
+<?php
+/**
+ * Sample cli installer script
+ */
+
+require_once(dirname(dirname(__FILE__)) . "/ElggInstaller.php");
+
+$installer = new ElggInstaller();
+
+$params = array(
+ // database parameters
+ 'dbuser' => '',
+ 'dbpassword' => '',
+ 'dbname' => '',
+
+ // site settings
+ 'sitename' => '',
+ 'wwwroot' => '',
+ 'dataroot' => '',
+
+ // admin account
+ 'displayname' => '',
+ 'email' => '',
+ 'username' => '',
+ 'password' => '',
+);
+
+// install and create the .htaccess file
+$installer->batchInstall($params, TRUE);