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


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


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


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.


Silahkan berkomentar ...

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


You are commenting using your account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ 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 )


Connecting to %s