How to Install SuiteCRM 8 on Fedora

Thank you for this tutorial. I am in the process of trying it and got stuck multiple times. Am a complete newby here. Here are the things I think are relevant info that would be helpful, had it been mentioned:

  1. Configure a root password for your mysql database (mariaDB)

    mysql_secure_installation

    → while the dialogue said I do not need to, as a matter of fact, for me it indeed was necessary to create a root password, otherwise it is possible to get stuck in the next step.

  2. Login to mysql was missing in step 1 of your tutorial:

    use following command right after mysql_secure_installation:

        mysql -u root -p  
    

    → then enter your root password to login into the mysql database. Somehow MariaDB seems to use mysql as backend or something? Anyway…

    the following commands will only work in a logged in state:

    	CREATE DATABASE put-database-name-here;
    	CREATE USER put-username-here@localhost IDENTIFIED BY 'put-password-here';
    	GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, INDEX, DROP, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES
    	ON put-database-name-here.* TO 'put-username-here'@'localhost';
    

    and btw.

    • the echo " and " | mysql are not part of the above command chain!
    • the three commands have to be entered separately. Press enter after every ;, as ; denotes the end of a command within the mysql database.
  3. After Step 3, but before Step 4 do the following (except for the last bullet-point, as it is covered by your step 4!):

    go to https://linuxconfig.org/configure-apache-virtualhost-on-fedora

    • start by creating a new directory which will contain the website’s files. Typically this is somewhere inside the /var/www directory.

        	$ sudo mkdir /var/www/example.net
      
    • Next, place your site files into the directory. Just as an example, we’ll create a simple index.html file for testing.
      After that, we need to give the directory proper permissions.

        	$ sudo echo Hello Web > /var/www/example.net/index.html
        	$ sudo chmod -R 755 /var/www/example.net
        	$ sudo chown -R apache.apache /var/www/example.net
      
    • Now we will need to edit the /etc/httpd/conf/httpd.conf file to configure a virtual host for our new website.
      You can use nano or your favorite text editor and open this file with root permissions.

        	$ sudo nano /etc/httpd/conf/httpd.conf
      
    • (This advise and last step is covered by step 4 in original post already, so probably can be left out, but may be of help to somebody)

      Add the following lines to the bottom of the file, of course replacing the example domain with that of your own.
      There are a lot more options you can put inside the virtual host directive, but these are the essential lines you’ll need.

        	<VirtualHost *:80>
       		 ServerName www.example.net
        	   ServerAlias example.net
        	   DocumentRoot /var/www/example.net
        	$ sudo Other Apache config directives, logs etc.
        	</VirtualHost>
      
  4. After Step 4, but before Step 5, do the following:

    Check for Syntax errors in configuration:

     sudo httpd -S
    

    Then:

     sudo systemctl restart httpd
    

    As long as your fully qualified domain name is already pointing to your server, everything should be good to go. Otherwise, for testing it is also handy to modify the /etc/hosts file. For example if this is done just locally, add the following line:

    sudo -i
    echo 127.0.0.1 www.example.net example.net >> /etc/hosts