|
From: Magnus E. <ma...@he...> - 2002-03-11 19:16:02
|
Hi! I finally figured out what was wrong, thanks to your tips :-) My problem was that I'm using Trustix (the redhat based distribution with focus on security), for the first time in a year and a half, and had forgotten how secure it really is.. problem was that both cpan and oi_manage ran with a umask of 077. Took me a while to figure out that cpan didn't change the umask. But now everything is working! I have a little wish list though ;-) - Could you make oi_manage change it's umask when we run it? Maybe it's best to make it an option? - ApacheStartup.pm or Startup.pm creates tmplib, it should check it's uid/gid and umask. My apache runs as uid/gid=httpd but the tmplib dir shows up with 700 root.root, and that doesn't work very well ;-) I just hacked the module to change umask one line before it creates the directory, but I reckon it should be done elsewhere and a little more though-thru... - Could you make oi_manage understand relative --website_dir (like --website_dir=.)? Bugs: - Typo at line 15 in event-1.20/struct/event.sql (varchar not varcar) Again, thanks for a great system!! :-) Cheers! Magnus Espeland On 9 Mar 2002, Chris Winters wrote: > On Fri, 2002-03-08 at 16:49, Magnus Espeland wrote: > > On 8 Mar 2002, Chris Winters wrote: > > > > > First, look at your error log ($WEBSITE_DIR/logs/error_log_modperl, by > > > default) and see if anything jumps out at you there. > > > > That's where I found the error ;-) > > Of course :-) I wasn't sure if that was echoed to the browser or not. > > > Ahh, seems like Apache/Session/Generate/ModUniqueId.pm didn't compile when > > I used CPAN to install everything.. weird.. I fixed the compile error, and > > CPAN could install it. Now I get a new error though :( > > > > The browser get this: > > > > Can't locate object method "throw" via package "OITest::ErrorObject" > > at /usr/lib/perl5/site_perl/5.005/OpenInteract/Error.pm line 94. > > > > and in the error log for the mod_perl server: > > > > Found item: Apache::DBI::db > > --EXITED WITH ERROR from main handler eval block > > Error: 0 > > So the main Apache handler is executing check_database() but not getting > any further... > > The error you're getting comes when the SPOPS error object hasn't been > created properly. I suspect that it might be on server startup that this > happens. > > What do you see in your main Apache server error log? That is, not the > one that's the virtual host. On my system I have: > > /home/httpd/website/logs/error_log_modperl -- vhost errors > /usr/local/apache/logs/error_log_modperl -- server errors > > Normally you'll see something like the startup messages: > > [Sun Mar 3 13:17:12 2002] [info] created shared memory segment > #45187096 > [Sun Mar 3 13:17:12 2002] [notice] Apache/1.3.20 (Unix) mod_perl/1.26 > configured -- resuming normal operations > [Sun Mar 3 13:17:12 2002] [info] Server built: Nov 14 2001 22:57:31 > > But this is where errors that get generated during server startup AND > child initialization (when the SPOPS classes get created) get put. > > Hope this helps, > > Chris > > MVH/Best regards -- Magnus Espeland ma...@in... geek:m.e. |