Opi (opiummmm) wrote in lj_dev,
Opi
opiummmm
lj_dev

mod_perl migration project

(This is aimed primarily towards Goathackers, but it does apply to people who have their own development environment set up to use the latest CVS snapshots of LiveJournal)

Recently Brad has been working on removing support for FastCGI and CGI in favor of mod_perl, and the last couple of CVS commits has brought that work to near completion.

The keyword, however, is near completion: This is another bug-hunt call. We need developers to test every page and find any deviances from normal or expected behavior, and then report them all as quickly as possible. Create accounts, upload pictures, make sure that every scenario has been covered and tested.

With that in mind, respond to this post or email me <jproulx-at-livejournal.com> with the bugs that you find, and I'll work with you to make sure that they're reproducible, so that they can be fixed as soon as possible.

Instructions for Goathackers

First things first, you need to run $ cvs update, followed by $ cvsreport.pl --cvsonly --sync to grab and integrate the new files.

Next you need to update your apache configuration (remember that everyone's apache processes on goathack have been turned off). We've removed mod_fastcgi.so from goathack, so these changes are necessary before you can start testing:

To save on memory usage, we're asking that you cut down the number of idle processes by changing the following lines:

KeepAlive Off
MinSpareServers 1
MaxSpareServers 1
StartServers 1
MaxClients 1

Since we've removed the FastCGI module, you can delete this line:

LoadModule fastcgi_module /usr/lib/apache/1.3/mod_fastcgi.so

and add in this line for the mod_perl module:

LoadModule perl_module /usr/lib/apache/1.3/mod_perl.so

Now, you can delete everything under (but not including) the line:

ServerName goathack.livejournal.org

And add in the following lines, changing /home/opiummmm so that it applies to your install

  ServerAdmin webmaster@ljsite.org
  DocumentRoot /home/opiummmm/htdocs 

  DirectoryIndex index.html index.bml

  PerlSetEnv       LJHOME /home/opiummmm
  PerlRequire      /home/opiummmm/cgi-bin/modperl.pl
  PerlInitHandler  +Apache::LiveJournal
  UserDir          disabled

  # BML support
  PerlModule       Apache::BML
  <Files ~ "\.bml$">
    SetHandler     perl-script
    PerlSetVar     BMLConfig /home/opiummmm/cgi-bin/bmlp.cfg
    PerlHandler    Apache::BML
  </Files>
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 13 comments