Skip to content

Commit

Permalink
move install.php usage instructions to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Chelen committed Mar 28, 2011
1 parent be94c50 commit aea8b6c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
23 changes: 23 additions & 0 deletions README
Expand Up @@ -18,4 +18,27 @@ sendmail
*visit the website and sign up for an account


###Installation Script###

This script creates the needed secret.php and config.php files with user supplied values and performs the initial database import.

*Warning: Do not run on existing site

*First create the MySQL database

*Then change to scripts directory
cd scripts

*Run install.php using your desired settings

*Command line options
php install.php --user=USER --pass=PASS --db=DATABASE --host=HOSTNAME --baseurl=URL

*Replace USER and PASS with the MySQL user and password, DATABASE with the name of the MySQL database, and optionally the HOSTNAME of the MySQL server if other than localhost.

For example:
--baseurl=http://www.biotorrents.net

*Visit the website and sign up for an account

*Values will be loaded from secrets.php and config.php they already exist
12 changes: 2 additions & 10 deletions scripts/install.php
@@ -1,18 +1,10 @@
<?php

// first create database
// then run this script

// example usage

// php install.php --user=mysqluser --pass=mysqlpass --db=somemysqldb --host=mysql.example.com --baseurl=example.com

// tries to read existing secrets.php if found

// creates secret.php and config.php with user supplied values and performs initial database import
// see README for usage

print "\n";


// cli options setup
$longopts = array(
// all values optional
Expand Down

0 comments on commit aea8b6c

Please sign in to comment.