Gallery with FastCGI

kchrist

Joined: 2006-03-14
Posts: 3
Posted: Tue, 2006-03-14 19:53

Does Gallery benefit from running under FastCGI? I've found a few references to it but haven't seen it mentioned as officially supported or recommended. It's not mentioned on the performance page in the wiki.

If so, is there anything special that needs to be done to either the Gallery or Apache (via .htaccess) configurations? I'm running PHP4 as CGI currently, not via mod_php, which I'm sure is part of the problem. Unfortunately, changing that isn't an option due to Dreamhost's restrictions (no exec(), etc).

Installation info:

Gallery version = 2.0.1 core 1.0.0.1
PHP version = 4.4.2 cgi
Webserver = Apache/1.3.33 (Unix) DAV/1.0.3 mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a PHP/4.4.2 mod_ssl/2.8.22 OpenSSL/0.9.7e
Database = mysql 4.1.14-Debian_3-log
Toolkits = ArchiveUpload, ImageMagick, NetPBM, SquareThumb, Gd
Operating system = Linux gap 2.4.29-grsec+w+fhs6b+gr0501+nfs+a32+++p4+sata+c4+gr2b-v6.189 #1 SMP Mon Feb 7 13:23:30 PST 2005 i686
Login or register to post comments
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2226
Posted: Thu, 2006-03-16 20:09

You never mentioned what problem you were having.

Gallery should work fine under FastCGI and from what I have read, FastCGI will be faster than CGI and in some cases faster than mod_php depending on how apache is configured, but a "stock" mod_php solution is probably faster than a "stock" FastCGI setup. (I'm working on setting up a server with FastCGI PHP on to do some performance testing so if I find out anything crazy I'll post back)

--
http://ckdake.com/

If you found my help useful, please consider donating to Gallery.

Login or register to post comments
kchrist

Joined: 2006-03-14
Posts: 3
Posted: Thu, 2006-03-16 21:04

Thanks. The problem is simply that it's slow (and I mean almost unbearably so). Running under mod_php isn't an option, due to my web host's restrictions on system calls, so FastCGI is the next best thing.

My question is basically just this: Do I need to do anything special to my Gallery or Apache config to take advantage of FastCGI? Based on what you say here, I assume I don't, which is good news.

Login or register to post comments
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2226
Posted: Fri, 2006-03-17 13:51

You shouldn't have to change anything. The hard part is getting FastCGI working properly, but once any php works, G2 should work just fine.

--
http://ckdake.com/

If you found my help useful, please consider donating to Gallery.

Login or register to post comments