# A new uWSGI PHP plugin is available

**URL:** <https://www.ruby-forum.com/t/a-new-uwsgi-php-plugin-is-available/217222>\
**Category:** NGINX\
**Created:** [February 24, 2012, 10:23am UTC](https://www.ruby-forum.com/t/a-new-uwsgi-php-plugin-is-available/217222 "2012-02-24T10:23:59Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![Roberto\_De\_Ioris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/50afbb/32.png) [@Roberto\_De\_Ioris](https://www.ruby-forum.com/u/Roberto_De_Ioris)\
**Post date:** [March 20, 2012, 3:45am UTC](https://www.ruby-forum.com/t/a-new-uwsgi-php-plugin-is-available/217222/21 "2012-03-20T03:45:59Z")

</div>

Roberto De Ioris wrote in post #1052159:

> > > > How would I then proceed to build the uWSGI php plugin?  
> > > > if all goes well you will end with a binary named ‘uwsgi’
> > 
> > server {  
> > listen 8080;  
> > server\_name [www.myphp.com](http://www.myphp.com) [myphp.com](http://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](http://unbit.it)

Hi, Ioris  
Thanks for your reply, I add uwsgi\_modifier1 14; to nginx server config  
file. myphp.com:8080/index.php can visited now, but myphp.com:8080 still  
return 404.

I Hava try a lot solution, like  
add “index index.php” to nginx  
or run uwsgi with --php-index index.php  
all failed

SO, HOW CAN I TELL UWSGI to run index.php defaultly?

Another Question:  
I use the uwsgi config in [The uWSGI project — uWSGI 2.0 documentation](http://projects.unbit.it/uwsgi/wiki/PHP), run  
as uwsgi --ini uwsgi\_config  
While I visit [myphp.com/index.php](http://myphp.com/index.php), return 502 error  
uwsgi print the error message: – unavailable modifier requested: 14 –

---

<div class="post-metadata">

**Author:** ![Roberto\_De\_Ioris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/50afbb/32.png) [@Roberto\_De\_Ioris](https://www.ruby-forum.com/u/Roberto_De_Ioris)\
**Post date:** [March 20, 2012, 7:24am UTC](https://www.ruby-forum.com/t/a-new-uwsgi-php-plugin-is-available/217222/22 "2012-03-20T07:24:43Z")

</div>

> > > ```
> > > uwsgi_pass 127.0.0.1:3030;
> > > 
> > > ```
> 
> SO, HOW CAN I TELL UWSGI to run index.php defaultly?
> 
> Another Question:  
> I use the uwsgi config in [The uWSGI project — uWSGI 2.0 documentation](http://projects.unbit.it/uwsgi/wiki/PHP), run  
> as uwsgi --ini uwsgi\_config  
> While I visit [myphp.com/index.php](http://myphp.com/index.php), return 502 error  
> uwsgi print the error message: – unavailable modifier requested: 14 –
> 
> –

I fear you are not loading the php plugin into uwsgi:

–plugin php

Check startup logs, for plugin loading errors (they come pretty soon)

–  
Roberto De Ioris

> **[unbit - Overview](https://github.com/unbit)**
>
> makers of uWSGI and many more open source projects - unbit

---

<div class="post-metadata">

**Author:** ![Roberto\_De\_Ioris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/50afbb/32.png) [@Roberto\_De\_Ioris](https://www.ruby-forum.com/u/Roberto_De_Ioris)\
**Post date:** [March 20, 2012, 12:09pm UTC](https://www.ruby-forum.com/t/a-new-uwsgi-php-plugin-is-available/217222/23 "2012-03-20T12:09:10Z")

</div>

Roberto De Ioris wrote in post #1052411:

> > > > ```
> > > > uwsgi_pass 127.0.0.1:3030;
> > > > 
> > > > ```
> > 
> > SO, HOW CAN I TELL UWSGI to run index.php defaultly?
> > 
> > Another Question:  
> > I use the uwsgi config in [The uWSGI project — uWSGI 2.0 documentation](http://projects.unbit.it/uwsgi/wiki/PHP), run  
> > as uwsgi --ini uwsgi\_config  
> > While I visit [myphp.com/index.php](http://myphp.com/index.php), return 502 error  
> > uwsgi print the error message: – unavailable modifier requested: 14 –
> > 
> > –
> 
> I fear you are not loading the php plugin into uwsgi:
> 
> –plugin php
> 
> Check startup logs, for plugin loading errors (they come pretty soon)
> 
> –  
> Roberto De Ioris  
> [http://unbit.it](http://unbit.it)

I am very sure “–plugin php” is added, as myphp.com:8080/index.php can  
return a phpinfo() page correctly.

---

<div class="post-metadata">

**Author:** ![Roberto\_De\_Ioris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/50afbb/32.png) [@Roberto\_De\_Ioris](https://www.ruby-forum.com/u/Roberto_De_Ioris)\
**Post date:** [March 20, 2012, 12:17pm UTC](https://www.ruby-forum.com/t/a-new-uwsgi-php-plugin-is-available/217222/24 "2012-03-20T12:17:47Z")

</div>

Il giorno 20/mar/2012, alle ore 12:10, Delai S. ha scritto:

> My be the question is: HOW CAN I TELL UWSGI to run index.php defaultly?

–php-app \<path\_to\_php\_file\>

> 

–  
Roberto De Ioris

> **[unbit - Overview](https://github.com/unbit)**
>
> makers of uWSGI and many more open source projects - unbit

JID: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Roberto\_De\_Ioris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/50afbb/32.png) [@Roberto\_De\_Ioris](https://www.ruby-forum.com/u/Roberto_De_Ioris)\
**Post date:** [March 20, 2012, 12:10pm UTC](https://www.ruby-forum.com/t/a-new-uwsgi-php-plugin-is-available/217222/25 "2012-03-20T12:10:03Z")

</div>

My be the question is: HOW CAN I TELL UWSGI to run index.php defaultly?

[Previous page](https://www.ruby-forum.com/t/a-new-uwsgi-php-plugin-is-available/217222.md?page=1)
