Information Networking

Part 1 (Appendix) | Part 2 (Appendix)


Part 1: XML Descriptors (Appendix)


Author

Sandro Zic

Intended Audience

This hands-on tutorial is intended for readers who have no knowledge about the httpZZ/OSS Installer Client (ZIC) and want to get started with it. For example, to bundle their own PHP application with the ZIC.

Introduction

In a series of tutorials, you are guided through the process of making httpphpMyAdmin installable by ZIC. The example of bundling phpMyAdmin for ZIC will teach you how to prepare any other applications for ZIC.

Part 1: XML Descriptors: You should read this part beforehand as it teaches you how to create the XML descriptors that define packages, applications, and distributions. This will get you to the point where the source files are correctly installed to the build tree of the application.

Part 2: Configuration Plugin: This part explains how to make use of the configuration plugin. It enables you to display a form for GUI-based configuration of the application parameters during the installation process.

1. Prepare for Configuration

The phpMyAdmin sources contain a file called config.inc.php. This file is obviously the configuration file that most importantly stores the base URL of the phpMyAdmin installation and connection parameters of the MySQL DB that phpMyAdmin will connect to.

Wouldn't it be nice to configure these parameters in the ZIC GUI? It can be done and it will look like this screenshot of the configuration parameters? once you have performed the following steps.

First you rename config.inc.php to config.inc.php-ini, which will give us the initial configuration file. Don't forget to reproduce this change in the filelist of the package.xml, so change the respective entry to:

<file role="php" baseinstalldir="" name="config.inc.php-ini"/>

Second, edit the following lines as shown in the new config.inc.php-ini file. What we do here is that we put placeholders (defined within the curly braces) that we want to replaced by the installer with the parameters provided in the configuration form of the ZIC:

// {zi_application_url} is a global variable provided by the installer per default
$cfg['PmaAbsoluteUri'] = '{zi_application_url}';

// now come the parameters that we get from the configuration form
$cfg['Servers'][$i]['host']          = '{zi_phpmyadmin_host}';
$cfg['Servers'][$i]['user']          = '{zi_phpmyadmin_user}';
$cfg['Servers'][$i]['password']  = '{zi_phpmyadmin_password}';

To keep things simple, we only care about the very basic configuration parameters for demonstration purposes. Of course, every phpMyAdmin configuration parameter could be made configurable via ZIC this way.


Last edited on Monday, April 12, 2004 12:25:14 pm.


Edit PageHistory Diff PageInfo DebugInfo

PHP Warnings

lib/WikiUser.php:50: Notice[8]: Only variables should be assigned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/Template.php:220: Notice[8]: Only variables should be assigned by reference

lib/Template.php:106: Notice[8]: Only variables should be assigned by reference

lib/Template.php:107: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'html'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'html'?):107: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'html'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'html'?):107: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'body'?)(In template 'html'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'body'?)(In template 'html'?):107: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'top'?)(In template 'body'?)(In template 'html'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'top'?)(In template 'body'?)(In template 'html'?):107: Notice[8]: Only variables should be assigned by reference

lib/pear/DB/common.php(In template 'navbar'?)(In template 'top'?)(In template 'body'?)(In template 'html'?):741: Notice[8]: Only variable references should be returned by reference

lib/Template.php(In template 'body'?)(In template 'html'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'body'?)(In template 'html'?):107: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'browse'?)(In template 'body'?)(In template 'html'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'browse'?)(In template 'body'?)(In template 'html'?):107: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'actionbar'?)(In template 'browse'?)(In template 'body'?)(In template 'html'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'actionbar'?)(In template 'browse'?)(In template 'body'?)(In template 'html'?):107: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'body'?)(In template 'html'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'body'?)(In template 'html'?):107: Notice[8]: Only variables should be assigned by reference

Valid XHTML 1.0! Valid CSS!
Page Execution took 0.144 seconds

Print Print

Product

Professional release management and installation with ZZ/OSS Installer.

Affiliate

Member of the LinuxTag programm committee.

Company

Pronounce our name similar to ZZ-Top, [see see os].

lib/Template.php(In template 'bottom'?)(In template 'body'?)(In template 'html'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'bottom'?)(In template 'body'?)(In template 'html'?):107: Notice[8]: Only variables should be assigned by reference