Welcome! Log In Create A New Profile

Advanced

Re: a new uWSGI PHP plugin is available

Delai S.
March 18, 2012 06:04AM
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;
}
}

Put a file name index.php in /var/www/php_test.

Than i run uwsgi -s :3030 --plugin php -M -p 4
the output is:
>>>
*** Starting uWSGI 1.1 (64bit) on [Sun Mar 18 17:57:32 2012] ***
compiled with version: 4.6.1 on 17 March 2012 17:44:26
current working directory: /home/delai/uwsgi
detected binary path: /usr/local/bin/uwsgi
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread mutexes
uwsgi socket 0 bound to TCP address :3030 fd 3
Python version: 2.7.2+ (default, Oct 4 2011, 20:41:12) [GCC 4.6.1]
Python main interpreter initialized at 0x6945a0
PHP 5.3.10 initialized
your server socket listen backlog is limited to 100 connections
*** Operational MODE: preforking ***
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 9385)
spawned uWSGI worker 1 (pid: 9386, cores: 1)
spawned uWSGI worker 2 (pid: 9387, cores: 1)
spawned uWSGI worker 3 (pid: 9388, cores: 1)
spawned uWSGI worker 4 (pid: 9389, cores: 1)
<<<

it looks fine.

when i visit http://myphp.com:8080/, nginx return 404 not found
visit http://myphp.com:8080/index.php, nginx return
"uWSGI Error
Python application not found"


php was recompiled and php plugin was configured.


Any one know Why?

--
Posted via http://www.ruby-forum.com/.

_______________________________________________
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: 329
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