Hello.
I was looking testing suiteCRM, so I tried to install it but faced some issues at last step. I hope you would be able to solve it.
I install it on a VM running latest Lubuntu LTS version.
I downloaded PHP and followed all steps to include modules, I Installed composer as well. I run test verification for PHP and it works.
I unzip suiteCRM in /var/www/html and rename folder as being CRM. So the root of suiteCRM is under /var/www/html/CRM/
I updated rwx rights for user for CRM folder, files and sub repositories.
I updated default apache2.conf file to include suiteCRM folder as follows:
DocumentRoot /var/www/html/CRM/public
<Directory /var/www/html/CRM/public>
AllowOverride All
Order Allow,Deny
Allow from All
Issue is faced when trying to install suiteCRM.
When trying to install it from browser, I can well see the files in http://localhost/CRM.
But when trying to do localhost/CRM/#/install , nothing is happening…
I therefore tries to do install from CLI, I got an error message “An error occurred while checking the Database Host Connection step: check-db-connection | status: failed Could not connect to db”.
Obviously, something is wrong with DB. any idea of what I missed to solve it?
Thanks in advance.
Regards,
If you don’t have at that, the installer might be breaking before it gets a chance to do anything. In which case @maverickws ’ advice is pointing you in the right direction - check ownerships, permissions, etc.
3307 represents the sql server port - default port is 3306
SuiteCRMv8 = database_name
But again, when you fill this on the install page, the web server should create a .env.local file with it.
I would check both the ownership of the files, see what user is running the web server process, and heck take a look at the error_log should have something too.
Ok we progress. I missed that Webserver process was running with user www-data profile.
Therefore, rights for my path /var/www/html/CRM and subdirectories were set on a different users.
I applied change user command and change rights following instructions:
If this is just a development server I would reboot it to see if there is something locking your file. If it’s not that, then it must be permissions issues, you probably still don’t have that quite right…