Fix “PHP Fatal error: Call to undefined function posix_getpwuid()”

Example Error Message

PHP Fatal error:  Call to undefined function posix_getpwuid() in /path/to/your/file.php on line 5

Cause

PHP posix extension is not available. Check this by invoking this command in your shell :

$ php -m | grep -i posix

If this output posix then you have posix extension installed.

How to fix

Debian

Should be enabled by default when you install php from apt-get.

CentOS

Need php-process extension installation (the package name is depend on your system, usually started with php-process).

$ sudo yum install php-process.x86_64

Manual Compilation

Based on PHP documentation. This compile option is enabled by default.

Iklan

Silahkan berkomentar ...

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s