Check the script_filename in fcgi.conf (post it) it should be in caps too but I'm on my iPhone :) If that looks okay then make sure the file is accessable in the right location on the remote hosts. Cause that's how PHP throws a 404 (that is so annoying) Jerome maybe php-fpm sapi could be patched to throw a 404 header and something resembling a proper error? ;) On May 31, 2010, at 11:53by mike - Nginx Mailing List - English
I would definitely ask for a use case or "why" as this seems like a really specific need with associated overhead that logfiles typically should cover On May 27, 2010, at 9:10 PM, Jérôme Loyet <ml@fatbsd.com> wrote: > 2010/5/28 GerMalaz <nginx-forum@nginx.us>: >> Hello! >> >> Is there any way to log the name of the scripts which are executed? &gby mike - Php-fpm Mailing List - English
probably because it's try_files'ing the uri and putting on .php internally but NOT actually considering it originally a .php file? i think. On Thu, May 27, 2010 at 11:35 AM, Marcos Neves <marcos.neves@gmail.com> wrote: > Sorry, I forget to say that php is working. > I create a file named phpinfo.php > if I access /phpinfo.php works like always before, > but if I try /phpinfo itby mike - Nginx Mailing List - English
sounds like you just need a php location? this works like a charm. server { listen 80; server_name foo.com; index index.php index.html; root /home/foo/web/foo.com; include /etc/nginx/defaults.conf; include /etc/nginx/expires.conf; try_files $uri $uri/ /wordpress/index.php?q=$uri; location ~ \.php$ { fastcgi_pass 127.0by mike - Nginx Mailing List - English
This is awesome. So the steps will be: 1) Grab a build from snaps.php.net 2) Unpack and ./configure as normal Anything else? I will add it as the newest method on php-fpm.org/download/ (I will keep the existing 5.3 for people who want an official 5.3 release but add FPM support in) On Wed, May 26, 2010 at 8:29 AM, Antony Dovgal <tony@daylessday.org> wrote: > Hello all. > > Afteby mike - Php-fpm Mailing List - English
I believe that it will address the issue. Should give it a shot. I have some scripts that I had to use it on even though I have cgi.fix_pathinfo=1 On May 22, 2010, at 6:23 AM, Ding Deng <ding.deng@gmail.com> wrote: > Igor Sysoev <igor@sysoev.ru> writes: > >> On Fri, May 21, 2010 at 10:07:00AM -0700, Avleen Vig wrote: >> >>> This is currently doing theby mike - Nginx Mailing List - English
Yeah I've always had it set to 1 too. I think fastcgi_split_path_info may be able to bridge the gap perhaps. On May 21, 2010, at 6:17 PM, Grzegorz Sienko <staff@krecio.pl> wrote: >> From php.ini > > ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, > and to not grok > ; what PATH_INFO is. For more information on PATH_INFO, see the cgi > specs. Setby mike - Nginx Mailing List - English
currently I can't reproduce. I am doing something wrong, I think. I made a dummy jpeg file named foo.jpg and tried looking at /foo.jpg/index.php and it didn't do anything. Gives me the "No input file specified" error. Hmm. On Fri, May 21, 2010 at 11:26 AM, Ian Evans <ianevans@digitalhit.com> wrote: > Is this situation only pertaining to sites that allow uploads from forms? _by mike - Nginx Mailing List - English
On Fri, May 21, 2010 at 10:33 AM, Igor Sysoev <igor@sysoev.ru> wrote: > I do not see why this is treated as nginx bug ? > Why is anyone able at all to upload images to /scripts directory ? It's not really a bug, like he said. However it is a configuration method that almost everyone uses for nginx. This is probably why "cgi-bin" was such a standard for so many years. "by mike - Nginx Mailing List - English
Question is, what functionality is lost by changing cgi.fix_pathinfo = 0 Looks like the other workaround is something like this: if ( $fastcgi_script_name ~ \..*\/.*php ) { return 403; } Which i basically saying what exactly? If there is a period and slash somewhere prior to the last "filename" to return a 403? Ideally while this is being thought out it would be cool to fix the comby mike - Nginx Mailing List - English
Works with PHP 5.2.x + the patch. http://michaelshadle.com/2010/05/21/php-fpm-and-nginx-upstart-scripts/ (No clue how to startup PHP 5.3 w/ SVN, may wind up being the same... haven't had a chance to run it yet.) Replaces the need for all the /etc/init.d and /etc/rc?.d scripts and symlinks that may have had to be manually created. Also doesn't rely on the php-fpm script usually installed in /usr/by mike - Php-fpm Mailing List - English
Works with PHP 5.2.x + the patch. http://michaelshadle.com/2010/05/21/php-fpm-and-nginx-upstart-scripts/ (No clue how to startup PHP 5.3 w/ SVN, may wind up being the same... haven't had a chance to run it yet.) Replaces the need for all the /etc/init.d and /etc/rc?.d scripts and symlinks that may have had to be manually created. Also doesn't rely on the php-fpm script usually installed in /usr/by mike - Nginx Mailing List - English
Antony Dovgal :) I'd like to say the same. Between Antony and Jerome I think it's getting to where Andrei had wanted it to go and I am excited to use it when I can check if the code I host will work properly in 5.3+ On that note does anyone know of any 5.3 code migration checking tools? Syntax and function tests to find low hanging fruit that sticks out as "this won't work!"by mike - Php-fpm Mailing List - English
Push that complexity into the app level. Don't let the webserver config get overly complex :) On May 20, 2010, at 6:29 AM, Daniele Melosi <ml@melosi.it> wrote: > Hi all, > > i'm taking in charge a new nginx cluster with a very strange > configurations. > > I'm trying rewriting the configuration and i'm unable to find a way to > better write this if condition: >by mike - Nginx Mailing List - English
Or a way to make "superlocations" where they are implemented no matter what. Things like regexes for expires headers and php processing right now can collide with other things. On May 13, 2010, at 4:09 PM, Daniel Hahler <genml@thequod.de> wrote: > Any news about this feature request? > > I've just implemented some basic "check if .htaccess" is present andby mike - Nginx Mailing List - English
Thanks all. http://php-fpm.org/downloads/php-5.2.13-fpm-0.5.14.diff.gz Incremented the version number as well (0.5.13 -> 0.5.14) On Thu, May 13, 2010 at 5:27 AM, Lucifer <locifer@gmail.com> wrote: > I'm the guy named xiaoxiaolu, and this is a patch file: > > http://www.ratazzi.org/upload/php-5.2.13-fpm-0.5.13.diff.diff > > > On May 13, 2:12 pm, Michael Shadle <mikby mike - Php-fpm Mailing List - English
LP is compatible with some 5.3... but is highly recommended to NOT use it at all. On Thu, May 13, 2010 at 5:26 AM, 任晓磊 <julyclyde@gmail.com> wrote: > Formerly, I think the launchpad version of FPM is not compatible with PHP 5.3 > > On Tue, May 4, 2010 at 9:07 PM, Guillaume Plessis <gui@moolfreet.com> wrote: >> Hello, >> >> The PHP 5.3.2 from Dotdeb isby mike - Php-fpm Mailing List - English
Since 5.2.x is all one big patch anyway you could make the modification on that and send it to me. I can examine it and post it to the site. I'll try to merge it myself quick when I get home also. On May 12, 2010, at 9:04 PM, mikespook <mikespook@gmail.com> wrote: > My friend xiaoxiaolu make a pacth for the > issue:"setrlimit(RLIMIT_NOFILE) failed: Invalid argument (22) &quoby mike - Php-fpm Mailing List - English
there are patches up to 5.2.13... i am using 5.2.13 w/ php-fpm and suhosin patches and it's rock solid. http://php-fpm.org/download/ On Wed, May 12, 2010 at 2:49 AM, MartinEllis <nginx-forum@nginx.us> wrote: > When is the next release because 5.2.10 isn't that great. > > Posted at Nginx Forum: http://forum.nginx.org/read.php?3,3029,85747#msg-85747 > >by mike - Php-fpm Mailing List - English
json is great for interchange but i don't think it's a decent readable syntax. xml really is king there, still, imho. anyway - you could take the C code that parses the nginx configuration and make a PHP module or something out of it ;) On Fri, May 7, 2010 at 1:09 AM, Ziyad Saeed <myschizobuddy@gmail.com> wrote: > agree that hierarchy in inf will be ugly. > you have to be a guru inby mike - Nginx Mailing List - English
I had hoped it would be a completely different filename but I am not sure. I have no real-world 5.3.x-ready code and have been too busy to try it out on my home box and have fun with it. Jerome and/or Antony can speak to that stuff On Tue, May 4, 2010 at 8:47 PM, Dejay Clayton <relinkedtoo@gmail.com> wrote: > Is this something that should be noted in the changelog, at the least? Is >by mike - Php-fpm Mailing List - English
Sounds like you're using the XML format of config file and the newest PHP-FPM versions use an INI style. Jerome is it documented anywhere other than the RFC (which isn't totally end-user friendly in the current form I think) On Tue, May 4, 2010 at 6:43 PM, Dejay Clayton <relinkedtoo@gmail.com> wrote: > I've followed the instructions located at http://php-fpm.org/download/ > for inteby mike - Php-fpm Mailing List - English
at the moment since it is not in 5_3 and only in trunk, you have to get it separately. it is a sapi though, not an extension. however since it is separate, i guess it can be thought of as one for the time being. but no more than --enable-fastcgi or anything like that otherwise. On Tue, May 4, 2010 at 6:27 PM, 任晓磊 <julyclyde@gmail.com> wrote: > On Wed, May 5, 2010 at 12:00 AM, Michaby mike - Php-fpm Mailing List - English
the syntax right now is great. very structured and simple. (my only complaint is how location blocks work, partly is syntax and partly is just how it works) otherwise i think it is great. anything can be scripted and anything can have a UI thrown onto it. i don't see how inf or xml or anything would make it any easier to have to make a UI for different location blocks, rewrite rules, other complby mike - Nginx Mailing List - English
On Tue, May 4, 2010 at 1:32 AM, 任晓磊 <julyclyde@gmail.com> wrote: > I tried > svn co svn co http://svn.php.net/repository/php/php-src/trunk > and got a 5.3.99 php with fpm. XCache cannot compile with this version. probably unstable due to php itself being unstable/bleeding edge in trunk > Is it the right way to fetch the regular php 5.3.2 plus > svn co http://svn.php.nby mike - Php-fpm Mailing List - English
i would use php.net's svn version then if you want ultimate stability, php 5.2.x + the patch seems rock solid. but for the newest features and what seems to be decent stability so far, php 5.3.x + svn. launchpad shouldn't be involved in a decision anymore On Mon, May 3, 2010 at 11:32 PM, replay <mauro.stettler@gmail.com> wrote: > hi > > i'm looking for the latest stable release ofby mike - Php-fpm Mailing List - English
I have a php command line script that builds separate conf files in one of my servers and does simple string replacement. Also remember you can use includes so you can leave the main nginx.conf alone and have it include stuff from another directory you write out.. On May 3, 2010, at 6:24 AM, Luca De Marinis <loop@interact.it> wrote: > On Mon, May 3, 2010 at 3:07 PM, Ziyad Saeedby mike - Nginx Mailing List - English
I wouldn't recommend this. I'd switch to using the php svn version. Not the launchpad version. On May 3, 2010, at 1:01 AM, "the_guv@vpsBible.com" <gg@vpsbible.com> wrote: > #this includes all dependencies. just change the ./configure command > below to whatever flavor:- > > aptitude install -y build-essential m4 wget > aptitude install -y libevent-dev libxml2-dby mike - Php-fpm Mailing List - English
Pastebin your php-fpm.conf It sounds like you're not listening on port 9000... lsof -i tcp:9000 should show it too On Apr 24, 2010, at 12:23 PM, rubytastic <voorruby@gmail.com> wrote: > I have a hard time getting this to work with Nginx. > OS is Centos 5.4 > > > > # ps aux | grep php > root 2136 0.0 0.7 24072 2716 ? Ss 19:25 0:00 /usr/ > local/bin/phby mike - Php-fpm Mailing List - English
I would convert this to a single controller file and handle it in app logic. Talk about an ugly mess :) I try to reduce the configuration of the server as much as possible. I'd make a single front controller and then use nginx's try_files. Clean and simple :) On Apr 24, 2010, at 5:35 AM, "st1905" <nginx-forum@nginx.us> wrote: > > if ($http_host !~ "^vb.sitenameby mike - Nginx Mailing List - English