Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

Posted on Sep 29, 2012 2:33 AM

Reply
1 reply

Enable php5_module via serveradmin command

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.