\apex\app\sysinstaller

Handles the initial installation of Apex after it is downloaded. This runs through the wizard, sets up the mySQL database and redis, etc.

Summary

Methods
Properties
Constants
run_wizard()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
get_redis_info()
get_rabbitmq_info()
get_mysql_info()
install_checks()
handle_quick_install()
quick_checks()
handle_standard_install()
complete_install()
install_error()
getvar()
grant_privs()
get_priv_sql()
$has_mysql
$server_type
$enable_admin
$enable_javascript
$redis_host
$redis_port
$redis_pass
$redis_dbindex
$rabbitmq_host
$rabbitmq_port
$rabbitmq_user
$rabbitmq_pass
N/A

Properties

$has_mysql

$has_mysql :

Type

$server_type

$server_type :

Type

$enable_admin

$enable_admin :

Type

$enable_javascript

$enable_javascript :

Type

$redis_host

$redis_host :

Type

$redis_port

$redis_port :

Type

$redis_pass

$redis_pass :

Type

$redis_dbindex

$redis_dbindex :

Type

$rabbitmq_host

$rabbitmq_host :

Type

$rabbitmq_port

$rabbitmq_port :

Type

$rabbitmq_user

$rabbitmq_user :

Type

$rabbitmq_pass

$rabbitmq_pass :

Type

Methods

run_wizard()

run_wizard()

Run installation wizard.

Runs the installation wizard, and is automatically executed from the the src/app.php script upon initialization if the software is not installed, and begins a standard installation of Apex.

get_redis_info()

get_redis_info()

Get redis connection info

get_rabbitmq_info()

get_rabbitmq_info()

Get RabbitMQ info

get_mysql_info()

get_mysql_info()

Get mySQL connection info

install_checks()

install_checks()

Installation Checks

Performs the necessary installation checks, and returns an array of any errors found. Automatically run during initialization of the installation wizard.

handle_quick_install()

handle_quick_install()

Complete quick installation

quick_checks()

quick_checks()

Quick Installation checks (database, etc.)

handle_standard_install()

handle_standard_install()

Handle a standard installation

complete_install()

complete_install()

Completes the installation, Creates the mySQL database, write the /etc/config.php file, and more.

install_error()

install_error(string  $message)

Give off an installation error

Parameters

string $message

The error message.

getvar()

getvar(string  $label,string  $default_value = '')

Get a variable from the readline prompt.

Parameters

string $label

The label of the variable.

string $default_value

The default value if user does not specify a value.

grant_privs()

grant_privs()

Grants the necessary privilegs to the mySQL database, assuming we have a root password and connection.

get_priv_sql()

get_priv_sql()

Returns the SQL statements to grant necessary privileges, and used when taking advantage of the read-only mySQL user.