I have a Trac installation that is working fine on a Fedora 14 host. It uses Apache as the web server.

I have a new Fedora 15 host that I am migrating the Trac instance onto. I installed the packages I need (yum for apache and mod_fcgi, easy_install for Trac and its plugins). Then I copied (using rsync) all the Trac data (both the "environment" and the part from /var/www).

Now I've got it sort of set up, but when I try to view any page on the new host, it returns HTTP 500 Internal Server Error, and the httpd error_log says this:

[Fri Aug 19 16:15:47 2011] [warn] [client 10.1.1.17] (104)
    Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Fri Aug 19 16:15:47 2011] [error] [client 10.1.1.17]
    Premature end of script headers: trac.fcgi

When I went straight to Trac's login page, my browser did correctly prompt me for a password, but after that it went back to HTTP 500. And I tried running trac.fcgi manually, which printed HTTP 403 Forbidden, which is correct since I'm not "logged in" when running it this way.

Is there some other log I can check, or some way to enable more helpful error messages? I tried searching for the error messages I'm getting, but they're pretty generic and I found nothing helpful.

Edit: I just tried doing service stop httpd and then running httpd (Apache) myself (as root). It said on startup:

httpd: apr_sockaddr_info_get() failed for foo
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

And then it worked!! But this is not what I want, really, so I killed httpd and did service start httpd...and now it is back to being broken.

Edit 2: I set ServerName in /etc/httpd/conf/httpd.conf to the IP address (and port 80) of my new server. This made it work for a while, but then I updated the DNS entry to point to my server, and it's back to broken again.

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.