Cannot install Suite CRM - is exec() or posix needed?

Hi,
i’ve got huge problem to make fresh installation of SuiteCRM 7.9.1 on my hosting.

After accepting Terms i get this errors:

Warning: exec() has been disabled for security reasons in /www/antena_www/www/klienci.sklepantena.pl/include/utils.php on line 413

Fatal error: Uncaught Error: Call to undefined function posix_getpwuid() in /www/antena_www/www/klienci.sklepantena.pl/include/utils.php:420 Stack trace: #0 /www/antena_www/www/klienci.sklepantena.pl/install/ready.php(284): getRunningUser() #1 /www/antena_www/www/klienci.sklepantena.pl/install.php(798): require('/www/antena_www...') #2 {main} thrown in /www/antena_www/www/klienci.sklepantena.pl/include/utils.php on line 420

in install.log i get this:

2017-06-21 10:38:20...Begin System Check Process *************
2017-06-21 10:38:20...XML Parsing Support Found
2017-06-21 10:38:20...MBString Support Found
2017-06-21 10:38:20...ZIP Support Found
2017-06-21 10:38:20.../custom directory and subdirectory check passed
2017-06-21 10:38:20...cache directory and subdirectory check passed
2017-06-21 10:38:21.../module  directory and subdirectory check passed
2017-06-21 10:38:21.../upload directory check passed
2017-06-21 10:38:21.../zip check passed
2017-06-21 10:38:21...PCRE version check passed
2017-06-21 10:38:21...installerHook: Could not find custom/install/install_hooks.php
2017-06-21 10:38:21...php.ini location found. /chroot/php-7.0/lib/php-cgi-fcgi.ini
2017-06-21 10:38:21...Outputting HTML for System check
2017-06-21 10:38:21...No Errors were found *************
2017-06-21 10:38:21...installerHook: Could not find custom/install/install_hooks.php

CHMOD for folders are 775

please help :slight_smile:

hi,
enyone have some idea?

I had a similar problem with php7.1. I have changed to php5.6 and everything works.

There are many advantages to keeping PHP 7 (performance, security, extended support), and that code should work with PHP 7.

Can the original poster please share his versions of OS, web server, PHP? It’s hard to debug this without even knowing whether it’s Windows or Linux…

Thanks

Thank you for trying help me,
here is phpinfo for this account on server:
phpinfo.php

Changing to 5.6 didn’t helped to me.
Still getting this errors:

Warning: exec() has been disabled for security reasons in /www/antena_www/www/klienci.sklepantena.pl/include/utils.php on line 413

Fatal error: Call to undefined function posix_getpwuid() in /www/antena_www/www/klienci.sklepantena.pl/include/utils.php on line 420

Basically your PHP configurations are too strict.

You have “exec” disabled in disable_functions. Actually SuiteCRM is prepared for this event and tries a second technique (posix_getpwuid) to learn the name of the user running the web server.

But you also have posix disabled with a ‘–disable-posix’ configuration.

So try to tweak your PHP to make this possible, or ask your hosting to do it. I understand why they would disable exec (runs any command on a shell), but not posix_getpwuid (only reads information, without changing anything).

Can you recommend some hosting for suite crm?
All users are in Poland, so best option will be datacenter in Europe

Sorry, I have no idea. I seem to remember there are a few polish members in the community…

Like this guy who made this PR https://github.com/salesagility/SuiteCRM/pull/3237

Maybe you can try asking them.