./bin/console suitecrm:app:install -u "admin_username" -p "admin_password" -U "db_user" -P "db_password" -H "db_host" -N "db_name" -S "site_url" -d "demo_data"The following documentation is for SuiteCRM Version 8+; to see documentation for Version 7, click here.
This page explains how to use the cli installer for SuiteCRM.
Before going through the steps on this page, please go through the Downloading & Installing guide.
Run command:
Option 1 - Run ./bin/console suitecrm:app:install without any options, the command will ask you for the required options
Option 2 - Run ./bin/console suitecrm:app:install in one line by passing the required options the. See the section below for more detail.
./bin/console suitecrm:app:install -u "admin_username" -p "admin_password" -U "db_user" -P "db_password" -H "db_host" -N "db_name" -S "site_url" -d "demo_data"#Example
./bin/console suitecrm:app:install -u "admin" -p "pass" -U "root" -P "dbpass" -H "mariadb" -N "suitecrm" -S "https://yourcrm.com/" -d "yes"Further Info
To get more information on the supported arguments you can run:  ./bin/console suitecrm:app:install --help. Which should show a list similar to the following:
The following sub-sections provide a brief explanation of each parameter you can set
In the above parameter you should set the url where your SuiteCRM instance is located. A few example:
Tip: you can simply copy the url from you browser’s address bar
In the above parameter you should set the user name for accessing your database.
Ensure that the Database User you specify has the permissions to create and write to the SuiteCRM database.
In the above parameter you should set the password for accessing your database.
In the above parameter you should set the host of your database.
in some systems when using localhost doctrine will try to use socket connection. However, socket connection is not supported at the moment, so in such cases, its maybe best to try with the ip, e.g. 127.0.0.1
In the above parameter you should set the name you want for the databases that will be created on your host during the install process, e.g. suite or suitecrm or another valid db name.
In the above parameter is set to the default port user in mysql and mariadb database engines. You should only change it in case your database host is using a different port.
In the above parameter you can set if, during the install process, you want to pre-populate your database with demo data.
Possible values: 'yes' , 'no'.
In the above parameter you can set the username for your SuiteCRM instance’s administrator user, e.g. admin or any other username you want to give.
In the above parameter you can set the password for your SuiteCRM instance’s administrator user.
Ignoring install warnings
Before running the install process, SuiteCRM is going to check for some system requirements, like max upload file size or memory limit. Some of these checks are optional, meaning that you can install the system without those.
In case you want to proceed with the installation even if there are warnings you can check the Ignore System Check Warnings checkbox
Possible values: 'true' (for ignoring) , 'false' (for not ignoring).
After allowing time for the installation to complete, again set permissions.
If you are using the terminal you can do this by running:
find . -type d -not -perm 2755 -exec chmod 2755 {} \;
find . -type f -not -perm 0644 -exec chmod 0644 {} \;
find . ! -user www-data -exec chown www-data:www-data {} \;
chmod +x bin/consolePlease have in mind that:
The user and group name (in the above example www-data) needs to be replaced by the actual system user and group that your webserver runs under. This varies depending on your
operating system. Common web server users are as follows:
www-data (Ubuntu Linux/Apache)
apache (Linux/Apache)
If the group name differs from the username apache is running with, you may need 0664 instead of 0644, and 2775 instead of 2755
Please double-check that the following configurations are correct
1 - Legacy config in public/legacy/config
site_url:
if you do not have your vhost pointing to the public dir within your SuiteCRM 8 root folder, you should append /public to your current host
e.g. if your address is something like https://your-host/crm/public,
2 - .htaccess in `public/legacy/.htaccess
RewriteBase
If you have your vhost pointing to public dir within the SuiteCRM 8 root folder. Then the correct value is RewriteBase /legacy
Otherwise, you should prepend the path until the public folder.
e.g. if your address is something like https://your-host/crm/public, then the correct value is RewriteBase /crm/public/legacy
You should now be able to access the instance at the https://<your-suite-crm-instance-path>;
Content is available under GNU Free Documentation License 1.3 or later unless otherwise noted.
