[Nginx Error]: worker process exited with fatal code 2 and eventfd() failed. (38: Function not implemented)

Updated on September 2, 2017

We saw how easy it was to install and configure Nginx using yum on a CentOS machine. But couldn’t configure running php on Nginx. While i was trying to fix it, found the below error in error_log :

2014/02/13 16:46:56 [alert] 11740#0: worker process 11741 exited with fatal code 2 and can not be respawn
2014/02/13 16:52:15 [emerg] 11781#0: eventfd() failed (38: Function not implemented)

This corresponds to a problem related to your Nginx installation. Did a quick research by Googling, upon which came to know that, the Nginx installed was a binary pre-compiled with “–with-file-aio” option, which uses libraries that were apparently not installed on my system.

You can verify the compiled options used during your Nginx installation using the below command:

nginx -V

Also Read : Learn to find the compilation options used in Apache/Nginx/PHP.

Solution: Install Nginx by downloading the latest source and compiling it without “–with-file-aio” option.

Building Nginx From Source:

Currently you can download the stable version of Nginx-1.4.4. After extracting the source, run these commands from a terminal:

sudo make install

For configure options you can refer your previous installation compilation options except “–with-file-aio“. Find the parameters supported by nginx configure here.

Was this article helpful?

Related Articles

Leave a Comment