Question

How to host SuiteCRM with digitalocean?

I have tried hosting SuiteCRM by creating a droplet and then uploading the SuiteCRM zipped and mysql files, but when I started the process of installing the suitecrm from my domain name everything was stuck and when I clicked on reload it says ‘Database Failure’. A helping hand is appreciated, Thanks.


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

alexdo
Site Moderator
Site Moderator badge
July 30, 2024

Heya,

Which is the MariaDB version on your droplet and also can you share the steps you’ve taken to create the database? You can check the installation guide in SuiteCRM’s docs:

https://docs.suitecrm.com/admin/installation-guide/downloading-installing/

Regards

Bobby Iliev
Site Moderator
Site Moderator badge
July 27, 2024

Hi there,

The error that you are getting indicates that your database credentials are wrong. You need to update the main SuiteCRM config file with correct information like the database settings and the current SuiteCRM version:

https://docs.suitecrm.com/developer/config/

Alternatively, you could give this another try with a new Droplet, based on their official documentation here, you should be able to get this working with the 1-Click LAMP installation:

https://marketplace.digitalocean.com/apps/lamp

So what you should be able to do is:

  1. Create a Droplet:

    • Use the 1-Click LAMP application from the DigitalOcean Marketplace: 1-Click LAMP.
    • Choose the appropriate configuration for your needs and create the Droplet.
  2. Download SuiteCRM:

    • Download the latest SuiteCRM installer as described here: Downloading and Installing SuiteCRM.
    • Unzip the downloaded file and move it to your web server’s root directory (usually /var/www/html for Apache).
  3. Set Permissions:

    • Set the required permissions for the SuiteCRM files:
      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/console
      
  4. Create your database and user:

    • Access the MySQL service and create your database user and password:
      CREATE DATABASE suitecrm_db;
      CREATE USER 'suitecrm_user'@'localhost' IDENTIFIED BY 'your_password';
      GRANT ALL PRIVILEGES ON suitecrm_db.* TO 'suitecrm_user'@'localhost';
      FLUSH PRIVILEGES;
      EXIT;
      

    Make sure to use a secure password!

  5. Run the Installer:

    • Rather than running the installer via your browser, you can use the CLI installer by running the following command in your SuiteCRM directory:
      ./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"
      
      Adjust the database details accordingly!

Let me know how it goes!

- Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.