Enable php5_module via serveradmin command
Hi,
I can not enable apache's php5_module from the terminal with serveradmin:
$ sudo serveradmin settings web:Modules:_array_id:php5_module:enabled
web:Modules:_array_id:php5_module:enabled = no
$ sudo serveradmin settings web:Modules:_array_id:php5_module:enabled = yes
$ sudo serveradmin settings web:Modules:_array_id:php5_module:enabled
web:Modules:_array_id:php5_module:enabled = no
(Same behaviour when I restart the web service afterwards via serveradmin stop / start.)
In /var/log/system.log I get the following message when running the first command:
Sep 29 11:16:07 smithers serveradmin[9274]: servermgr_web: {
command = writeSettings;
configuration = {
Modules = (
{
"_id_" = "php5_module";
enabled = 1;
}
);
};
}
...but the module keeps being disabled:
$ grep "LoadModule php5" /etc/apache2/httpd.conf
#LoadModule php5_module libexec/apache2/libphp5.so
Enabling the module with the Server.app works just fine, but that doesn't help much with automation :-)
It this a bug in serveradmin / servermgrd or another way to change these settings in a safe terminal-ish way?
PS:
$ sw_vers
ProductName: Mac OS X Server
ProductVersion: 10.7.4
BuildVersion: 11E53
Thanks in advance,
Björn
OS X Server