Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. In a shell, cd to the directory you uploaded the contents of blesta.
  2. The CLI installer can be run in interactive mode, or non-interactive mode by passing parameters.
    1. For interactive mode run 

      Code Block
      php ./index.php install


      Info
      titleRoot Web Directory Setting

      If Blesta is not installed in the document root on your web server, it is important to note that the "Root Web Directory" setting will be inaccurate unless you install Blesta while your current working directory is set to the document root:

      Code Block
      titleInstalling from the web server's document root
      cd /to/your/web/server/document/root/
      php ./path/to/blesta/index.php install



    2. For automatic mode run

      Code Block
      php ./index.php install -dbhost DATABASE_HOST -dbport DATABASE_PORT -dbname DATABASE_NAME -dbuser DATABASE_USER -dbpass DATABASE_PASS -hostname WEBSITE_HOSTNAME -docroot DOCUMENT_ROOT_PATH
      
      With staff user creation (Fully Scripted) v5.10+:
      php ./index.php install -dbhost DATABASE_HOST -dbport DATABASE_PORT -dbname DATABASE_NAME -dbuser DATABASE_USER -dbpass DATABASE_PASS -hostname WEBSITE_HOSTNAME -docroot DOCUMENT_ROOT_PATH -domain DOMAIN -licensekey LICENSE_KEY -firstname FIRST_NAME -lastname LAST_NAME -email EMAIL -username USERNAME -password PASSWORD


      The website hostname. For be accurate unless the current working directory is the document root.This value can be changed from within Blesta, after installation, under Settings > System > General > "Root Web Directory".
      ParameterDescriptionVersion Added
      -dbhostThe database hostname (usually localhost)3.0
      -dbportThe database port (usually 3306)3.0
      -dbnameThe database name3.0
      -dbuserThe database user3.0
      -dbpassThe database password3.0
      -hostnameThe website hostname. For
      ParameterDescription
      -dbhostThe database hostname (usually localhost)
      -dbnameThe database name
      -dbuserThe database user
      -dbpassThe database password
      -hostname example, billing.domain.com. The is the hostname where Blesta will be accessed from. If not set, will attempt to detect the hostname from server configuration, which in many cases will not be accurate.3.0
      -docroot

      The full absolute path to the web server's document root (e.g. /var/www/html/). This should not be set to Blesta's installed directory unless Blesta is installed in document root. If this value is not set, it will be set based on your current working directory, which will not

      Info
      titleOption added in v4.6.0

      be accurate unless the current working directory is the document root.

      Info

      This value can be changed from within Blesta, after installation, under Settings > System > General > "Root Web Directory".


      4.6

      -domain

      (Optional) The domain to be used in template email addresses.

      Info

      This value is used to determine email addresses for templates and can be changed under Settings > Company > Emails.


      5.10

      -licensekey

      (Optional) The license key for Blesta. If none is provided, a trial license will befetched.

      5.10

      -firstname

      The First Name of the first Staff user.

      5.10

      -lastname

      The Last Name of the first Staff user.

      5.10

      -email

      The email address for the first Staff user.

      5.10

      -username

      The username for the first Staff user.

      5.10

      -password

      The password for the first Staff user.

      5.10


  3. Once installation completes, direct your web browser to https://yourdomain.com/path_to_blesta/admin/ to create your administrator user and enter your license key or start a free trial.

...