Applies to

Debian / Ubuntu Linux
Zend Server Installation with Nginx

Symptom

After installing Zend Server on Debian/Ubuntu with nginx, the following error occurs:

Starting php-fpm [23-Sep-2015 14:07:22] ERROR: [pool www] cannot get uid for user 'nginx'

Technical

Zend Server is not compatible with nginx packages provided by the distribution's repository. For correct installation, packages from official repository of nginx should be used.

Solution

To fix the problem, you need to uninstall Zend Server and nginx packages from the server and then re-install Zend Server using following steps.

1. Uninstall Zend server using:

$ sudo /usr/local/zend/bin/uninstall.sh

2. Remove Zend Server directory using:

$ sudo rm -rf /usr/local/zend

3. Uninstall nginx using:

$ sudo aptitude purge '~nnginx'

4. Finally, re-install Zend Server using instructions given in the following link:

Automatically installing Zend Server