Change to nginx/fastcgi gives PHP parse errors on some images
|
generica
Joined: 2004-06-24
Posts: 19 |
Posted: Sun, 2012-04-29 05:39
|
|
Hi, I'm running G3.0.3 I recently switched from nginx proxying to apache for php to proxying to php5-fastcgi 2012/04/28 23:16:49 [error] 19644#0: *103523 FastCGI sent in stderr: "PHP Parse error: syntax error, unexpected T_STRING in /srv/gallery3/var/thumbs/otherpeople/emily/sDSC00224.jpg on line 108" while reading response header from upstream, client: ::ffff:27.32.175.228, server: photos.whatevz.net, request: "GET /var/thumbs/otherpeople/emily/sDSC00224.jpg?m=1304917309 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "photos.whatevz.net", referrer: "http://photos.whatevz.net/index.php/otherpeople" I marked all thumbs as dirty and rebuilt them, no luck. Would love some suggestions here. |
|

Posts: 25965
All I can offer is:
http://codex.gallery2.org/Gallery3:Using_NGINX
you need to figure out why you get:
Parse error: syntax error, unexpected T_STRING in /srv/gallery3/var/thumbs/otherpeople/blakemeredith2004/biancaewanieva2.jpg on line 93
when you visit an image:
http://photos.whatevz.net/var/thumbs/otherpeople/blakemeredith2004/biancaewanieva2.jpg
I'm no server expert but the webserver should have to go though a php file to deliver an image.
For some reason this site is down now:
http://webcache.googleusercontent.com/search?q=cache:5JEONktr7OQJ:www.techish.net/2012/01/gallery3-nginx/+&cd=2&hl=en&ct=clnk&gl=ca
So that is the google cached version.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 19
Finally found some sample configs that worked.
http://technology.mattrude.com/2012/02/gallery3-installed-on-a-nginx-server/
These instructions have fixed my site, cheers.