August 2009 Archives

Movable Type and nginx

| 0 Comments | 0 TrackBacks
After wasting a lot of time attempting to setup nginx and movable type configuration together without apache - I am on very memory limited VPS, I given up and moved everything as before on lighttpd. Movable Type doesn't work under nginx using fastcgi wrapper or fastcgi dispatcher as in previous post.


For those who would like to play heroes and who are trying to run Movable Type under nginx in cgi mode, additional fastcgi parameters in nginx:

fastcgi_param    PERL5LIB $document_root/mt/lib;
   fastcgi_param    MT_HOME $document_root/mt;
   fastcgi_param    MT_CONFIG $document_root/mt/mt-config.cgi;

the rest can be taken with from here with cgi wrapper.
With this additional parameters mt-check will be successful, but in my case it failed with:

Can't connect to data source '' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at /var/www/*/htdocs/mt/extlib/Data/ObjectDriver/Driver/DBI.pm line 75 at /var/www/*/htdocs/mt/extlib/Data/ObjectDriver/Driver/BaseCache.pm line 320
Since I don't know whom to blame for this error and can't fix it on spot, I will leave MT under apache for now. For those interested in runing MT under lighttpd, this tutorial makes much more sense, then official doc, and it's closer to my previous blog install.