PDA

View Full Version : WEB appliance - php.ini rollover


jemil
08-17-2007, 03:24 AM
Hi,

I've created a custom appliance from the WEB appliance. I've update the OS to fedora 4 so I have now PHP5 installed. I've change the php.ini with my own settings and also do other changes to httpd.conf (just enabled the mod_rewrite). When I've made these changes the /usr volume was set on writable. After that I've stop the application, set the /usr volume just on read and I've saved the custom appliance in the User catalog. Then I've created a new application with that appliance but the problem is that the php.ini is rollback to the php4 version. This is happening also when the application/appliance is restarted so this is very annoying.
What overwrites the php.ini and how can I stop this behavior?
Applogic version 2.0.2

Thank you,
Emil

PeterNic
08-17-2007, 12:03 PM
Emil,

The php.ini file in the WEB appliance is generated by a template. You can modify that template and/or the script that generates it.

The template is in /etc/php.ini.dist, the script that prepares it and some of the other WEB appliance config files is /appliance/appl_dyn.pl. The WEB startup process is driven by /appliance/appliance.sh (this is the case in most appliances in the system catalog).

Let me know if this helps.

Regards,
-- Peter

PS: I have also opened a change request on the WEB appliance to have the names of the templates included in any generated config files (reference SCR 1868, "CAT: WEB appliance generated files to state their template name")