Dear @pgr and @Cadej ,
I have the exact same issue. 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 (I already have a Wordpress website running for this subscription, so the SSL certificate is already installed and all http requests are turned into https, just so you know in case this could be an issue).
After doing only the abovementioned, the install.php file loaded up the first step page in the browser (via https), but after trying to begin the installation, it didnât work (as expected) and loaded a blank page. I then executed the sudo commands using the SHH terminal to change the owner to the Apache user www-data and set permissions. 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:
|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â|
I have proceeded as suggested on this thread:
- 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â (which I learned is 755) and the owner is user âwww-dataâ in the group âwww-dataâ. I understand, then, that 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 or is there anything else that I would need to do?
As per the log, I have the feeling that Apache allowed visitors to read the file but when the file started to want to write in the log, a writing error happens. But why?
- Install Composer.
When I install it using the command âcomposer install --no-devâ, 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
Anyway, I later checked and Plesk already comes with Composer v2 installed as an extension. So probably this is not the issue.
Maybe this could be an issue related to my current .htaccess file? Here is what I have in it:
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^(.)$ https://%{HTTP_HOST}/$1 [R=301,L]*
RewriteEngine On
RewriteRule . - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]*
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
ErrorDocument 404 /index.php?error=404
I would really appreciate some help, could you guys help me out please?
Have a good one,
Javier