a new uWSGI PHP plugin is available

Roberto De Ioris roberto at unbit.it
Sun Mar 18 15:29:53 UTC 2012


> Roberto De Ioris wrote in post #1048644:
>>> --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:
>>
>> http://projects.unbit.it/downloads/uwsgi-1.1-snapshot5.tar.gz
>>
>> uncompress and move to the resulting directory and run
>>
>> make
>>
>> 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:
>>
>> http://projects.unbit.it/uwsgi/wiki/PHP
>>
>> --
>> Roberto De Ioris
>> http://unbit.it
>
>
> Hi, I follow the tutorial of http://projects.unbit.it/uwsgi/wiki/PHP
>
> the server config in nginx is:
>
> server {
>         listen 8080;
>         server_name www.myphp.com myphp.com;
>         location ~ .php {
>                 root /var/www/php_test;
>                 uwsgi_pass 127.0.0.1:3030;
>                 include uwsgi_params;
>         }
> }


here you have missed

uwsgi_modifier1 14;

that instruct uWSGI to route the request to the php plugin.

About index.php you can add an index directive in nginx or

php-index = index.php

in uwsgi config

-- 
Roberto De Ioris
http://unbit.it



More information about the nginx mailing list