Hi Lupe I don't have problem with this, it works just fine...
It is this line: CustomLog => "|/usr/sbin/cronolog /home/log/$domain-access_log.%Y-%m-%d combined", It gives me this failure: apachectl: Configuration syntax error, will not run "graceful": Syntax error on line 2 of /vhosts/vhosts.conf: $parms->add_config() has failed: error in condition clause at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux- thread-multi/Apache2/PerlSections.pm line 203.\n Med venlig hilsen / Best Regards Tue Topholm Device.Webbureau M: +45 26 74 07 41 P: +45 70 21 00 04 LinkedIN: http://www.linkedin.com/in/ttopholm -----Oprindelig meddelelse----- Fra: Lupe Christoph [mailto:[EMAIL PROTECTED] Sendt: 8. november 2006 14:43 Til: Tue Topholm Cc: modperl@perl.apache.org Emne: Re: Mod_perl + cronolog On Wednesday, 2006-11-08 at 13:10:54 +0100, Tue Topholm wrote: > I have this script: Not related to your question, but to Perl style... > system("/bin/mkdir /home/$domain"); > system("/bin/mkdir /home/$domain/www"); > system("/bin/mkdir /home/$domain/ErrorLog"); I think you should review perldoc perlfunc... You could also check for errors much easier if you used the Perl functions. > system("/bin/chown apache:apache -R /home/$domain"); And maybe File::Find. But it's only three directories, so that would probably easier to be done in a loop with explicit values. BTW, my Linux chown manpage says options need to precede owner:group, but the program accepts them after owner:group, too. I'm not sure if all chowns of this world do that... Lupe Christoph -- | You know we're sitting on four million pounds of fuel, one nuclear | | weapon and a thing that has 270,000 moving parts built by the lowest | | bidder. Makes you feel good, doesn't it? | | Rockhound in "Armageddon", 1998, about the Space Shuttle |