Author Topic: php_uname() has been disabled for security reasons?  (Read 742 times)

Offline rtyhrtbtvb

  • Newbie
  • *
  • Posts: 6
php_uname() has been disabled for security reasons?
« 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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,016
    • http://SKaero.com/
Re: php_uname() has been disabled for security reasons?
« Reply #1 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.

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1,862
Re: php_uname() has been disabled for security reasons?
« Reply #2 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?
Roundcube Plugins: Sieverules, SpamAssassin Prefs, and moreā€¦

Offline rtyhrtbtvb

  • Newbie
  • *
  • Posts: 6
Re: php_uname() has been disabled for security reasons?
« Reply #3 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

Offline rtyhrtbtvb

  • Newbie
  • *
  • Posts: 6
Re: php_uname() has been disabled for security reasons?
« Reply #4 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