perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tue Topholm">
Subject SV: Mod_perl + cronolog
Date Wed, 08 Nov 2006 18:32:05 GMT
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

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
thread-multi/Apache2/ line 203.\n

Med venlig hilsen / Best Regards
Tue Topholm
M: +45 26 74 07 41
P: +45 70 21 00 04

-----Oprindelig meddelelse-----
Fra: Lupe Christoph [] 
Sendt: 8. november 2006 14:43
Til: Tue Topholm
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               |

View raw message