Roundcube Community Forum

Release Support => Pending Issues => Topic started by: rtyhrtbtvb on November 29, 2016, 12:22:39 AM

Title: php_uname() has been disabled for security reasons?
Post by: rtyhrtbtvb on November 29, 2016, 12:22:39 AM
Hi all,

Trying to install a cardav plugin. using the composer phar install process.

Edited the config.inc.php and the composer.json to include the cardav plugin

firing up the composer phar installer I get the following error right off the bat.

Code: [Select]
[ErrorException]                                   
  php_uname() has been disabled for security reasons

I have looked into the /etc/php/7.0/apache2/php.ini file for any clues to this php_uname string, but, alas, no avail.

Any ideas would be a great help.

This is for a 16.04LTS Ubuntu LAMP stack running postfix/dovecot/roundcube 1.2.0/php7

Regards
Title: Re: php_uname() has been disabled for security reasons?
Post by: SKaero on November 29, 2016, 04:00:09 AM
It sounds like php_uname is in your disable_functions line in your php.ini. You'll need to remove it in order to use Composer.
Title: Re: php_uname() has been disabled for security reasons?
Post by: JohnDoh on November 29, 2016, 01:18:46 PM
you said you looked in /etc/php/7.0/apache2/php.ini but since composer is run from the command line shouldn't it be /etc/php/7.0/cli/php.ini or something like that?
Title: Re: php_uname() has been disabled for security reasons?
Post by: rtyhrtbtvb on November 29, 2016, 08:02:45 PM
you said you looked in /etc/php/7.0/apache2/php.ini but since composer is run from the command line shouldn't it be /etc/php/7.0/cli/php.ini or something like that?

Great, thank you for that, composer just lit right up!! Was always looking at the apache2 ini file, never even dawned on me I was in the wrong one......

Thanks a million, cardav plugin, here I come............


Regards
Title: Re: php_uname() has been disabled for security reasons?
Post by: rtyhrtbtvb on November 29, 2016, 09:41:38 PM
Hi Just a heads up

Code: [Select]
php -d "disable_functions=" /path/to/composer.phar install

to temporarily avoid loading php.ini functions during composer install


Regards