Hi everyone,
I’m trying to install SuiteCRM version 8.4 on my Ubuntu server (22.04)
After installing, at the manage page I have a problem: no top bar which often show account logged in, link to Administration v.v…
[Sun Oct 01 04:28:02.449371 2023] [php:error] [pid 31105] [client 10.0.30.199:64996] PHP Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /var/www/html/suitecrm/public/legacy/install/install_utils.php:732\nStack trace:\n#0 /var/www/html/suitecrm/public/legacy/install/install_utils.php(732): fwrite()\n#1 /var/www/html/suitecrm/public/legacy/install/install_utils.php(64): installLog()\n#2 /var/www/html/suitecrm/public/legacy/install.php(849): installerHook()\n#3 {main}\n thrown in /var/www/html/suitecrm/public/legacy/install/install_utils.php on line 732
I follow these steps installed at:
Could anyone explain what happen I what should I do to fix this? Thank you!
Hi,
Thank you for replying me soon.
I already change permission for files and directories as you said:
cd /var/www/html/suitecrm
find . -type d -exec chmod 755 {} ;
find . -type f -exec chmod 644 {} ;
Then move to cd /var/www/html/suitecrm**/public/legacy** to make change chmod 600 config.php . Is it correct if config.php stay in /public/legacy? I don’t see this file in /var/www/html/suitecrm
I also change upload_max_file_size to 512MB.
After all, I reboot the server, but don’t see any effect…Still don’t see top bar
Here is error.log
[Sun Oct 01 08:43:53.340478 2023] [mpm_prefork:notice] [pid 31101] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Oct 01 08:43:53.548955 2023] [mpm_prefork:notice] [pid 66718] AH00163: Apache/2.4.55 (Ubuntu) configured – resuming normal operations
[Sun Oct 01 08:43:53.549058 2023] [core:notice] [pid 66718] AH00094: Command line: ‘/usr/sbin/apache2’
[Sun Oct 01 08:44:31.705270 2023] [php:warn] [pid 66723] [client 10.0.30.199:52521] PHP Warning: Trying to access array offset on value of type bool in /var/www/html/suitecrm/public/legacy/modules/Users/User.php on line 1293, referer: http://10.0.19.46/suitecrm/public/legacy/index.php?action=Login&module=Users&login_module=Home&login_action=index
[Sun Oct 01 08:44:43.339697 2023] [php:warn] [pid 66722] [client 10.0.30.199:52522] PHP Warning: Trying to access array offset on value of type bool in /var/www/html/suitecrm/public/legacy/modules/Users/User.php on line 1293, referer: http://10.0.19.46/suitecrm/public/legacy/index.php?module=Users&action=Login&login_module=Home&login_action=index
[Sun Oct 01 08:45:13.637394 2023] [php:notice] [pid 66720] [client 10.0.30.199:52527] PHP Notice: session_start(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) in /var/www/html/suitecrm/public/legacy/include/MVC/SugarApplication.php on line 623
[Sun Oct 01 08:45:21.982503 2023] [php:warn] [pid 66725] [client 10.0.30.199:52533] PHP Warning: Trying to access array offset on value of type bool in /var/www/html/suitecrm/public/legacy/modules/Users/User.php on line 1293, referer: http://10.0.19.46/suitecrm/public/legacy/index.php?action=Login&module=Users&login_module=Home&login_action=index
[Sun Oct 01 08:45:33.654138 2023] [php:notice] [pid 66720] [client 10.0.30.199:52539] PHP Notice: session_start(): ps_files_cleanup_dir: opendir(/var/lib/php/sessions) failed: Permission denied (13) in /var/www/html/suitecrm/public/legacy/include/MVC/SugarApplication.php on line 623, referer: http://10.0.19.46/suitecrm/public/legacy/index.php?module=Users&action=Login&login_module=Home&login_action=index
[Sun Oct 01 08:45:55.103854 2023] [mpm_prefork:notice] [pid 66718] AH00170: caught SIGWINCH, shutting down gracefully
[Sun Oct 01 08:46:40.089255 2023] [mpm_prefork:notice] [pid 1153] AH00163: Apache/2.4.55 (Ubuntu) configured – resuming normal operations
[Sun Oct 01 08:46:40.089992 2023] [core:notice] [pid 1153] AH00094: Command line: ‘/usr/sbin/apache2’
I’m glad it’s solved, but just for the record, this problem of not seeing the top bar is a redirect problem.
It happens when Apache rewrites are not working, and you end trying to point your browser to public/legacy directories, instead of just pointing to the root and having the framework do any redirects for you.
You should make sure your Apache web root is the “public” directory.
You should aim your browser at the top of your webroot (e.g. https://www.mydomain.com/), not at any subdomain or sub directory.
If that fails to launch SuiteCRM properly, with all top menus, you should check that your apache has mod_rewrite set up and enabled, and check the rewrite directives in the configuration files.
If any of that is not clear enough for you, please look for answers online, I am not an expert in this and there’s too much variation from one system to another…
Morning pgr,
Thanks for your advice, from that I found the file /etc/epache2/site-available/suitcrm.conf not working, instead of using default file it works as miracle.