Comments on How to Install SuiteCRM with Apache and free Let's Encrypt SSL on Debian 11

SuiteCTM is an open-source Customer Relationship Management solution written in PHP. It is a fully-featured and highly-extensible CRM application that runs on any operating system. In this post, we will show you how to install SuiteCRM with Apache and Let's Encrypt SSL on Debian 11.

1 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Javier

Dear Hitesh,

I am trying to install SuiteCRM 7.12.6 from the official site. My server has Plesk Obsidian v18.0.45 running over Ubuntu 20.04.4 LTS, with Apache version 2.4.41 and PHP version 8.0.21.

I am following the instructions provided on the official site. I uploaded the installation files to a folder within the file system for one of the Plesk subscriptions. After doing so, the install.php file loaded up in the browser, but the installation didn’t work, as expected. I then executed the sudo commands using the SHH terminal and, after that, the install.php file will load just a blank page.

I then go to the log and I can see a 500 error reading the following:

|2022-07-27 03:41:21|Error|XX-XXX-XX-XX||AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in ~/suitecrm/install/install_utils.php:723\nStack trace:\n#0 ~/suitecrm/install/install_utils.php(723): fwrite()\n#1 ~/suitecrm/install/install_utils.php(64): installLog()\n#2 ~/suitecrm/install.php(826): installerHook()\n#3 {main}\n thrown in ~/install/install_utils.php on line 723’|

So I did the following as suggested on different forums:

Check ownership and permissions to ensure my web server has access to write to ‘install.log’:

I am completely new to Linux, but I checked the permissions for this file as shown in the file manager in Plesk and with the ‘ls -l’ command (since the ‘ll’ command does not work), and these are ‘rwx r-x r-x’ and the owner is user ‘www-data’ in the group ‘www-data’, which is 755, and this is what we would expect after using the previous sudo command for all the files in the folder, right? So, considering this, can we be sure that the web server can write into the file?

Install Composer.

When I install it following the instructions, I get:

Installing dependencies from lock file Verifying lock file contents can be installed on current platform. Nothing to install, update or remove

In JsonFile.php line 181:

file_put_contents ~/suitecrm/vendor/composer/installed.json: Failed to open stream: Permission denied

So, not really sure if Composer was already installed as it says ‘Nothing to install’ or it could not be installed because of that ‘Permission denied’ (that ‘installed.json’ file also has permissions 755 and the owner is www-data.

I would really appreciate your help, could you give me a hand, please?

Have a good one,

Javier