On Tue, Jan 26, 2010 at 11:34 AM, PF4Pylons <[email protected]> wrote: > > 1. the webser seems to be takind a while to respon (10 seconds?)
This is because your FastCGI process won't start. > 2. I am receiving these errors (quting the apache log below). Could > you please help me to figure out what is wrong here? > This is why your FastCGI process won't start. My recommendation: Take a couple of steps back. Take notes along the way, and pay attention to any warning signs. This isn't something you can do ad hoc unless you've done it a million times, and even then, you would want to follow some sort of checklist. I'm assuming you're in a Linux environment. If that's not the case, you should switch your hosting provider. I suggest HostMonster. Others are OK as well. My Python is whatever I build on the box from the latest sources. If you can't run gcc, you can't build python. Use the OS provided Python if necessary, but these are usually ancient so I avoid them. It also introduces a problem when they upgrade their Python. I setup a virtualenv where I install everything, including the code for my site, usually under ~/env/TheSite. Get familiar with virtualenv since it is nice. I've heard there's a replacement for it, but I don't use it yet. I write the script and test it by running it from the command line. If it doesn't run, I tweak it until it does. It shouldn't throw any exceptions at all. If it does throw an exception, I'm either missing a dependency (in your case, "fonts") or something else is broken. It shouldn't spit our warning messages like you've seen above either. Resolve those before continuing. Then I configure the web server to point to the FCGI script I just wrote. I test that this is starting up by looking at the logs after hitting the URL. I also use "ps -efwww | grep 'python'" to find my FastCGI process. If it isn't there, something's broke and the logs should tell me what. -- Jonathan Gardner [email protected] -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
