Gammell
September 12th, 2007, 04:47 PM
Howdy,
I used to run Gentoo on a personal server, but after installing Ubuntu on my laptop, I also switched the server over to Ubuntu in June or so. The transition was a little hectic, but I learnt a lot about Linux in the process and everything's been humming along fine all summer... Except for *one* little annoyance, umask settings in apache2.conf. In Gentoo I was able to use the umask keyword to set the file permission settings for the www-data user that apache ran as, it was as simple as:
user www-data
group www-data
umask 002
and any files created through apache2 would happily be 775. However since switching to Ubuntu, using the umask keyword only results in:
* Restarting web server apache2
Syntax error on line 127 of /etc/apache2/apache2.conf:
Invalid command 'umask', perhaps misspelled or defined by a module not included in the server configuration
As far as I know, I hadn't enabled a module to use the umask keyword, but at this point, I can't be absolutely certain (and it easily could have been a module that was enabled by default in Gentoo). I've tried googling, various capitalizations of "umask" and reading the apache2 documentation but haven't found anything, can anyone help? I just hope it's not a compile-time option ;) Thanks.
I used to run Gentoo on a personal server, but after installing Ubuntu on my laptop, I also switched the server over to Ubuntu in June or so. The transition was a little hectic, but I learnt a lot about Linux in the process and everything's been humming along fine all summer... Except for *one* little annoyance, umask settings in apache2.conf. In Gentoo I was able to use the umask keyword to set the file permission settings for the www-data user that apache ran as, it was as simple as:
user www-data
group www-data
umask 002
and any files created through apache2 would happily be 775. However since switching to Ubuntu, using the umask keyword only results in:
* Restarting web server apache2
Syntax error on line 127 of /etc/apache2/apache2.conf:
Invalid command 'umask', perhaps misspelled or defined by a module not included in the server configuration
As far as I know, I hadn't enabled a module to use the umask keyword, but at this point, I can't be absolutely certain (and it easily could have been a module that was enabled by default in Gentoo). I've tried googling, various capitalizations of "umask" and reading the apache2 documentation but haven't found anything, can anyone help? I just hope it's not a compile-time option ;) Thanks.