I had Drush running last month and now when I just try typing the command: drush
I get the following error:

PHP Fatal error:  Call to undefined function posix_getpwuid() in /pathtomysite/sites/all/modules/drubuntu/drubuntu.drush.inc on line 5
Drush command terminated abnormally due to an unrecoverable error.  

I had installed it on a MediaTemple (DV) server using the instructions here.

Comments

greg.1.anderson’s picture

Status: Active » Closed (won't fix)

Closing support request due to lack of activity. Sorry no one was able to help you with your issue. Please re-open if you are still having trouble, or consider posting a question on Drupal Stack Exchange. If you have solved your problem, it would be helpful it you posted the resolution here to help others who may have the same problem in the future.

kbell’s picture

I am having the same issue. Drush was working (this is on my local machine), and now I get this error.

gerzenstl’s picture

Looks like you are using the drubuntu module. The error is caused because that module uses the posix_getpwuid() function that belongs to the POSIX PHP extension.

Try to check if you have installed/enabled that extension.