> Dnia niedziela, 19 lutego 2012 18:42:21 Roberto De Ioris pisze: >> I have finally managed to build a fully working (yes i have marked it as stable even if it is part of the development code) php plugin. >> >> It contains additonal features for security and fast configuration, and (maybe the most important part) it does not require a fool build procedure. >> >> It is now a normal uWSGI plugin (so you can even embed it in the core) based on libphp. >> >> Sadly debian-based distros do not include libphp (but redhat-based, like fedora and centos have it), so you could need to rebuild php (but it is an >> easy task, as you only need to add a flag to ./configure) >> >> http://projects.unbit.it/uwsgi/wiki/PHP >> >> The wiki page has been updated with a funny (and complex) config that you >> could use as reference. >> >> I have released a new snapshot too (the third), to allows you to test it easily. >> >> Every report will be wellcomed. > > 1. I've managed to make a ubuntu 10.04 ppa with libphp5-embed package: ppa:l-mierzwa/lucid-php5
great, feel free to add it to the wiki page > > 2. path to uwsgi.h is invalid, it fails to build with simple make, only works > when building plugin with "python uwsgiconfig --plugin plugins/php" > > === BEGIN DIFF ========================================== > diff -r f8bfffaac9ae plugins/php/php_plugin.c > --- a/plugins/php/php_plugin.c Sun Feb 19 17:52:17 2012 +0100 > +++ b/plugins/php/php_plugin.c Mon Feb 20 00:41:55 2012 +0100 > @@ -5,7 +5,7 @@ > > #include "ext/standard/php_smart_str.h" > > -#include <uwsgi.h> > +#include "../../uwsgi.h" > > extern struct uwsgi_server uwsgi; > === END DIFF =++========================================= right, applied > > 3. It doesn't build with -Werror in cflags, after removing -Werror it compiled, > I didn't tested it yet. > > *** uWSGI building and linking plugin plugins/php *** > [gcc -pthread] ./php_plugin.so > cc1: warnings being treated as errors > In file included from /usr/include/php5/Zend/zend.h:270, > from /usr/include/php5/main/php.h:35, > from plugins/php/php_plugin.c:1: > damn, those errors come from php itself, maybe adding -Wno-error in uwsgiplugin.py would be a safe choice. -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
