aboutsummaryrefslogtreecommitdiff
path: root/install/cli
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-13 11:01:16 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-13 11:01:16 +0000
commitcd33e6a791409bf0898d6d1db5938b09415289fb (patch)
treeec33c1463d8fdff09bdb897ba21f5066c3899fbb /install/cli
parentea320e206be4f99c9a5819306ec1b284b1085ed4 (diff)
downloadelgg-cd33e6a791409bf0898d6d1db5938b09415289fb.tar.gz
elgg-cd33e6a791409bf0898d6d1db5938b09415289fb.tar.bz2
Fixes #2556 - one step install now supported with sample cli script
git-svn-id: http://code.elgg.org/elgg/trunk@7067 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'install/cli')
-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);