a new uWSGI PHP plugin is available

Roberto De Ioris roberto at unbit.it
Fri Feb 24 13:42:28 UTC 2012

> I'm a bit stuck with 'running the php script in the uWSGI server'
> My PHP is built from source, as far as I understand I need to build it
> with --enable-embed
> ./configure --prefix=/opt/php5 --with-config-file-path=/opt/php5/etc
> --with-config-file-scan-dir=/opt/php5/etc/conf.d --with-curl
> --with-mhash --enable-cgi --with-pear --with-gd --with-jpeg-dir
> --with-png-dir --with-zlib --with-xpm-dir --with-freetype-dir
> --with-t1lib --with-mcrypt --with-mhash --with-mysql=mysqlnd
> --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-openssl
> --with-xmlrpc --with-xsl --with-bz2 --with-gettext
> --with-fpm-user=www-data --with-fpm-group=www-data --disable-debug
> --enable-fpm --enable-exif --enable-wddx --enable-zip --enable-bcmath
> --enable-calendar --enable-ftp --enable-embed --enable-mbstring
> --enable-soap --enable-sockets --enable-shmop --enable-dba
> --enable-inline-optimization --enable-sysvsem --enable-sysvshm
> --enable-sysvmsg
> How would I then proceed to build the uWSGI php plugin?

download 1.1 uWSGI sources:


uncompress and move to the resulting directory and run


if all goes well you will end with a binary named 'uwsgi'

then build the php plugin with

python uwsgiconfig.py --plugin plugins/php

finally run (always from the same dir)

./uwsgi -s :3031 --plugins php

now point nginx to that port as described here:


Roberto De Ioris

More information about the nginx mailing list