Comments on: PHP Fatal error: Call to undefined function posix_getpwuid() https://sheepguardingllama.com/2011/03/php-fatal-error-call-to-undefined-function-posix_getpwuid/ Scott Alan Miller :: A Life Online Wed, 19 Feb 2014 04:22:55 +0000 hourly 1 https://wordpress.org/?v=6.9.1 By: Sadanand https://sheepguardingllama.com/2011/03/php-fatal-error-call-to-undefined-function-posix_getpwuid/comment-page-1/#comment-30311 Wed, 19 Feb 2014 04:22:55 +0000 http://www.sheepguardingllama.com/?p=6592#comment-30311 Hi,

Thanks a lot, it worked perfectly for me on centos 6.5.

All the best 🙂

]]>
By: Duvian Mejía https://sheepguardingllama.com/2011/03/php-fatal-error-call-to-undefined-function-posix_getpwuid/comment-page-1/#comment-27423 Thu, 24 Oct 2013 19:13:09 +0000 http://www.sheepguardingllama.com/?p=6592#comment-27423 It works, thanks for your time making the post.

]]>
By: Jd Daniel https://sheepguardingllama.com/2011/03/php-fatal-error-call-to-undefined-function-posix_getpwuid/comment-page-1/#comment-26227 Mon, 10 Jun 2013 21:07:26 +0000 http://www.sheepguardingllama.com/?p=6592#comment-26227 Thanks, this seems to be an issue with a base LAMP install on Fedora 18 as well =/

]]>
By: Spencer Greer https://sheepguardingllama.com/2011/03/php-fatal-error-call-to-undefined-function-posix_getpwuid/comment-page-1/#comment-25837 Sun, 28 Apr 2013 00:31:56 +0000 http://www.sheepguardingllama.com/?p=6592#comment-25837 Thanks a ton!!! Saved me so much frustration!!! I Love asterisk, but working remotely with old version of CentOS and trying to upgrade php is a pain!

]]>
By: Eve https://sheepguardingllama.com/2011/03/php-fatal-error-call-to-undefined-function-posix_getpwuid/comment-page-1/#comment-25835 Thu, 25 Apr 2013 12:50:53 +0000 http://www.sheepguardingllama.com/?p=6592#comment-25835 Thank You very, very much that you wanted to write this 🙂 So simple solution… And it works of course

]]>
By: Dave https://sheepguardingllama.com/2011/03/php-fatal-error-call-to-undefined-function-posix_getpwuid/comment-page-1/#comment-24784 Thu, 16 Aug 2012 18:12:56 +0000 http://www.sheepguardingllama.com/?p=6592#comment-24784 I just updated my PBX in a Flash system, rebooted my server, and had a similar problem:

[root@pbx /]# amportal start

PHP Fatal error: Call to undefined function posix_getpwuid() in /var/lib/asterisk/bin/gen_amp_conf.php on line 3
**** WARNING: ERROR IN CONFIGURATION ****
astrundir in ‘/etc/asterisk’ is set to but the directory
does not exists. Attempting to create it with: ‘mkdir -p ‘

mkdir: missing operand
Try `mkdir –help’ for more information.
**** ERROR: COULD NOT CREATE ****
Attempt to execute ‘mkdir -p ‘ failed with an exit code of 1
You must create this directory and the try again.

I just disabled the following lines of /var/lib/asterisk/bin/gen_amp_conf.php and it works now.

// $current_user = posix_getpwuid(posix_geteuid());
// if ($current_user[‘uid’] !== 0) {
// die(‘Forbidden – must be root’);
// }

]]>
By: nawraj https://sheepguardingllama.com/2011/03/php-fatal-error-call-to-undefined-function-posix_getpwuid/comment-page-1/#comment-24551 Sat, 03 Mar 2012 02:37:37 +0000 http://www.sheepguardingllama.com/?p=6592#comment-24551 thanks very much for the information, i was looking for it since last two days….

]]>
By: Ravi https://sheepguardingllama.com/2011/03/php-fatal-error-call-to-undefined-function-posix_getpwuid/comment-page-1/#comment-24458 Mon, 19 Dec 2011 11:14:19 +0000 http://www.sheepguardingllama.com/?p=6592#comment-24458 hi,

I am facing same problem on RHEL 6 & it cannot be search on it please help me ……….

]]>