Welcome! Log In Create A New Profile

Advanced

Re: a new uWSGI PHP plugin is available

March 20, 2012 02:26AM
> 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 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
>
>
> 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 http://projects.unbit.it/uwsgi/wiki/PHP, run
> as uwsgi --ini uwsgi_config
> While I visit 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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

a new uWSGI PHP plugin is available

roberto February 24, 2012 04:24AM

Re: a new uWSGI PHP plugin is available

Edho Arief February 24, 2012 05:46AM

Re: a new uWSGI PHP plugin is available

roberto February 24, 2012 05:48AM

Re: a new uWSGI PHP plugin is available

Edho Arief February 24, 2012 06:02AM

Re: a new uWSGI PHP plugin is available

roberto February 24, 2012 06:16AM

Re: a new uWSGI PHP plugin is available

athalas February 24, 2012 06:37AM

Re: a new uWSGI PHP plugin is available

roberto February 24, 2012 06:40AM

Re: a new uWSGI PHP plugin is available

athalas February 24, 2012 06:42AM

Re: a new uWSGI PHP plugin is available

athalas February 24, 2012 10:07AM

Re: a new uWSGI PHP plugin is available

athalas February 24, 2012 08:33AM

Re: a new uWSGI PHP plugin is available

roberto February 24, 2012 08:44AM

Re: a new uWSGI PHP plugin is available

athalas February 24, 2012 09:08AM

Re: a new uWSGI PHP plugin is available

roberto February 24, 2012 09:40AM

Re: a new uWSGI PHP plugin is available

athalas February 24, 2012 09:45AM

Re: a new uWSGI PHP plugin is available

roberto February 24, 2012 09:50AM

Re: a new uWSGI PHP plugin is available

Delai S. March 18, 2012 06:04AM

Re: a new uWSGI PHP plugin is available

roberto March 18, 2012 11:32AM

RE: a new uWSGI PHP plugin is available

郭振立 March 19, 2012 01:24AM

RE: a new uWSGI PHP plugin is available

roberto March 19, 2012 02:26AM

RE: a new uWSGI PHP plugin is available [integration]

roberto March 19, 2012 02:52AM

RE: a new uWSGI PHP plugin is available [integration]

郭振立 March 22, 2012 12:42PM

Re: a new uWSGI PHP plugin is available

Delai S. March 19, 2012 10:48PM

Re: a new uWSGI PHP plugin is available

roberto March 20, 2012 02:26AM

Re: a new uWSGI PHP plugin is available

Delai S. March 20, 2012 07:10AM

Re: a new uWSGI PHP plugin is available

Reinis Rozitis February 24, 2012 09:36AM

Re: a new uWSGI PHP plugin is available

Delai S. March 20, 2012 07:12AM

Re: a new uWSGI PHP plugin is available

roberto March 20, 2012 07:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 223
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready