diff --git a/slapos/recipe/README.lamp.txt b/slapos/recipe/README.lamp.txt index 7a75a2033a3ed733ff5198bbce92e65b3fcb21ab..d1738526d0814dffb8256d55079f482fea2bc049 100644 --- a/slapos/recipe/README.lamp.txt +++ b/slapos/recipe/README.lamp.txt @@ -1,9 +1,9 @@ lamp ===== -the lamp recipe help you to deploy simply a php based application on slapos. This recipe is -able to setup mariadb, apache and apache-php for your php application, is also capable to -configure your software during installation to ensure a full compatibility. +The lamp recipe helps you to deploy simply a php based application on slapos. This recipe is +able to setup mariadb, apache and apache-php for your php application, and is also capable of +configuring your software during installation to ensure a full compatibility. How to use? @@ -34,9 +34,26 @@ in this case you need to write a python script and lamp recipe must run it when How to use? ----------- +this part of lamp recipe work with slapos.toolbox, Therefore you must add it to your recipe. +in software.cfg, replace instance-recipe-egg part by + +[instance-recipe-egg] +recipe = zc.recipe.egg +python = python2.7 +eggs = + ${mysql-python:egg} + ${instance-recipe:egg} + slapos.toolbox[lampconfigure] + +and add into your instance.cfg + +lampconfigure_directory = ${buildout:bin-directory}/lampconfigure + + CONDITION -------- -the action (move, rename, launch script) only starts when the condition is filled. + +the action (delete, rename, script, chmod) only starts when the condition is filled. in instance.cfg, add file_token = path_of_file @@ -52,14 +69,13 @@ into mariadb databse for example table_name = admin. if you use name_of_table = **, the action will begin when database is ready. constraint is the sql_condition to use when search entry into name_of_table for example constraint = `admin_id`=1 -you can no use file_token and table_name at the same time, otherwise file_token will be used in priority. attention -to the conditions that will never be satisfied. +you can't use file_token and table_name at the same time, otherwise file_token will be used in priority. Beware of conditions that will never be satisfied. ACTION ------- -the action start when condition is true +The action starts when condition is true 1- delete file or folder into instance.cfg, use @@ -70,13 +86,23 @@ for example delete = admin 2- rename file or folder into instance.cfg, use -rename = old_name1 => new_name1, old_name2 => new_name2, ... you can also use +rename_chmod = mode (optional) +rename = old_name1 => new_name1, old_name2 => new_name2, ... +you can also use rename = old_name1, old_name2 => new_name2, ... in this case old_name1 will be rename and the new name will be chose by joining old_name1 and mysql_user: this should give rename = old_name1 => old_name1-mysql_user, old_name2 => new_name2, ... +use rename_chmod to apply a mode to new_name1, new_name2, ... + +3- Change mode of file or directory + +this is usefull if you want to change the mode of files into your www-data, use + +chmod = file1, file2, .... +mode = mode_to_apply (ex= 0644) -3- launch python script +4- Launch python script use script = ${configure-script:location}/${configure-script:filename} into instance.cfg, add part configure-script into software.cfg @@ -90,10 +116,10 @@ url = url_of_script_name.py filename = script_name.py download-only = True -the script_name.py should contain a main module, sys.argv is passed to the main. you can write script_name.py like this +The script_name.py should contain a main function, sys.argv is given to the main. you can write script_name.py like this .... def setup(args): - base_url, htdocs, renamed, mysql_user, mysql_password, mysql_database, mysql_host = args + mysql_port, mysql_host, mysql_user, mysql_password, mysql_database, base_url, htdocs = args ....... if __name__ == '__main__': @@ -102,3 +128,4 @@ if __name__ == '__main__': base_url: is the url of php software htdocs: is the path of www-data directory mysql_user, mysql_password, mysql_database, mysql_host: is the mariadb parameters +you can also use "import MySQLdb" if you want to access to database via your python script \ No newline at end of file diff --git a/slapos/recipe/lamp/__init__.py b/slapos/recipe/lamp/__init__.py index 64af4334163cc01532300f91a6e5b810861ea6e8..4f8f6fe39e32bda020f25ef44dc6661fb4f811e0 100644 --- a/slapos/recipe/lamp/__init__.py +++ b/slapos/recipe/lamp/__init__.py @@ -165,11 +165,11 @@ class BaseRecipe(BaseSlapRecipe): data = [] rename = [] rename_list = "" - argument = [self.options['lampconfigure_directory'].strip()] + argument = [self.options['lampconfigure_directory'].strip(), + "-H", mysql_conf['mysql_host'], "-P", mysql_conf['mysql_port'], + "-p", mysql_conf['mysql_password'], "-u", mysql_conf['mysql_user']] if not self.options.has_key('file_token'): argument = argument + ["-d", mysql_conf['mysql_database'], - "-H", mysql_conf['mysql_host'], "-P", mysql_conf['mysql_port'], - "-p", mysql_conf['mysql_password'], "-u", mysql_conf['mysql_user'], "--table", self.options['table_name'].strip(), "--cond", self.options['constraint'].strip()] else: @@ -195,7 +195,7 @@ class BaseRecipe(BaseSlapRecipe): rename.append(cmd + [fname[0].strip(), fname[1].strip()]) rename_list += fname[0] + "=>" + fname[1] + " " if self.options.has_key('chmod'): - chmod = ["chmod ", self.options['mode'].strip()] + chmod = ["chmod", self.options['mode'].strip()] for fname in self.options['chmod'].split(','): chmod.append(fname.strip()) if self.options.has_key('script') and \ diff --git a/software/MediaWiki/template/mediawiki.inc.php.in b/software/MediaWiki/template/mediawiki.inc.php.in deleted file mode 100644 index eac1c4b9eea2b2f36491b572757eebcb27643856..0000000000000000000000000000000000000000 --- a/software/MediaWiki/template/mediawiki.inc.php.in +++ /dev/null @@ -1,25 +0,0 @@ -<?php -$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ -$i = 0; -$i++; -/* Server parameters */ -$cfg['Servers'][$i]['host'] = '%(mysql_host)s'; -$cfg['Servers'][$i]['port'] = '%(mysql_port)s'; -/* Authentication type */ -$cfg['Servers'][$i]['auth_type'] = 'cookie'; -$cfg['Servers'][$i]['user'] = ''; -$cfg['Servers'][$i]['connect_type'] = 'tcp'; -$cfg['Servers'][$i]['compress'] = false; -/* Select mysqli if your server has it */ -$cfg['Servers'][$i]['extension'] = 'mysql'; -$cfg['Servers'][$i]['AllowNoPassword'] = false; - -/* rajk - for blobstreaming */ -$cfg['Servers'][$i]['bs_garbage_threshold'] = 50; -$cfg['Servers'][$i]['bs_repository_threshold'] = '32M'; -$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600; -$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M'; -$cfg['UploadDir'] = ''; -$cfg['SaveDir'] = ''; - -?> diff --git a/software/SilverStripe/template/silverstripe.inc.php.in b/software/SilverStripe/template/silverstripe.inc.php.in deleted file mode 100644 index eac1c4b9eea2b2f36491b572757eebcb27643856..0000000000000000000000000000000000000000 --- a/software/SilverStripe/template/silverstripe.inc.php.in +++ /dev/null @@ -1,25 +0,0 @@ -<?php -$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ -$i = 0; -$i++; -/* Server parameters */ -$cfg['Servers'][$i]['host'] = '%(mysql_host)s'; -$cfg['Servers'][$i]['port'] = '%(mysql_port)s'; -/* Authentication type */ -$cfg['Servers'][$i]['auth_type'] = 'cookie'; -$cfg['Servers'][$i]['user'] = ''; -$cfg['Servers'][$i]['connect_type'] = 'tcp'; -$cfg['Servers'][$i]['compress'] = false; -/* Select mysqli if your server has it */ -$cfg['Servers'][$i]['extension'] = 'mysql'; -$cfg['Servers'][$i]['AllowNoPassword'] = false; - -/* rajk - for blobstreaming */ -$cfg['Servers'][$i]['bs_garbage_threshold'] = 50; -$cfg['Servers'][$i]['bs_repository_threshold'] = '32M'; -$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600; -$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M'; -$cfg['UploadDir'] = ''; -$cfg['SaveDir'] = ''; - -?> diff --git a/software/ezpublish/template/ezpublish.inc.php.in b/software/ezpublish/template/ezpublish.inc.php.in deleted file mode 100644 index eac1c4b9eea2b2f36491b572757eebcb27643856..0000000000000000000000000000000000000000 --- a/software/ezpublish/template/ezpublish.inc.php.in +++ /dev/null @@ -1,25 +0,0 @@ -<?php -$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ -$i = 0; -$i++; -/* Server parameters */ -$cfg['Servers'][$i]['host'] = '%(mysql_host)s'; -$cfg['Servers'][$i]['port'] = '%(mysql_port)s'; -/* Authentication type */ -$cfg['Servers'][$i]['auth_type'] = 'cookie'; -$cfg['Servers'][$i]['user'] = ''; -$cfg['Servers'][$i]['connect_type'] = 'tcp'; -$cfg['Servers'][$i]['compress'] = false; -/* Select mysqli if your server has it */ -$cfg['Servers'][$i]['extension'] = 'mysql'; -$cfg['Servers'][$i]['AllowNoPassword'] = false; - -/* rajk - for blobstreaming */ -$cfg['Servers'][$i]['bs_garbage_threshold'] = 50; -$cfg['Servers'][$i]['bs_repository_threshold'] = '32M'; -$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600; -$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M'; -$cfg['UploadDir'] = ''; -$cfg['SaveDir'] = ''; - -?> diff --git a/software/joomla/template/phpmyadmin.inc.php.in b/software/joomla/template/phpmyadmin.inc.php.in deleted file mode 100644 index eac1c4b9eea2b2f36491b572757eebcb27643856..0000000000000000000000000000000000000000 --- a/software/joomla/template/phpmyadmin.inc.php.in +++ /dev/null @@ -1,25 +0,0 @@ -<?php -$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ -$i = 0; -$i++; -/* Server parameters */ -$cfg['Servers'][$i]['host'] = '%(mysql_host)s'; -$cfg['Servers'][$i]['port'] = '%(mysql_port)s'; -/* Authentication type */ -$cfg['Servers'][$i]['auth_type'] = 'cookie'; -$cfg['Servers'][$i]['user'] = ''; -$cfg['Servers'][$i]['connect_type'] = 'tcp'; -$cfg['Servers'][$i]['compress'] = false; -/* Select mysqli if your server has it */ -$cfg['Servers'][$i]['extension'] = 'mysql'; -$cfg['Servers'][$i]['AllowNoPassword'] = false; - -/* rajk - for blobstreaming */ -$cfg['Servers'][$i]['bs_garbage_threshold'] = 50; -$cfg['Servers'][$i]['bs_repository_threshold'] = '32M'; -$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600; -$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M'; -$cfg['UploadDir'] = ''; -$cfg['SaveDir'] = ''; - -?> diff --git a/software/magento/template/magento.inc.php.in b/software/magento/template/magento.inc.php.in deleted file mode 100644 index eac1c4b9eea2b2f36491b572757eebcb27643856..0000000000000000000000000000000000000000 --- a/software/magento/template/magento.inc.php.in +++ /dev/null @@ -1,25 +0,0 @@ -<?php -$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ -$i = 0; -$i++; -/* Server parameters */ -$cfg['Servers'][$i]['host'] = '%(mysql_host)s'; -$cfg['Servers'][$i]['port'] = '%(mysql_port)s'; -/* Authentication type */ -$cfg['Servers'][$i]['auth_type'] = 'cookie'; -$cfg['Servers'][$i]['user'] = ''; -$cfg['Servers'][$i]['connect_type'] = 'tcp'; -$cfg['Servers'][$i]['compress'] = false; -/* Select mysqli if your server has it */ -$cfg['Servers'][$i]['extension'] = 'mysql'; -$cfg['Servers'][$i]['AllowNoPassword'] = false; - -/* rajk - for blobstreaming */ -$cfg['Servers'][$i]['bs_garbage_threshold'] = 50; -$cfg['Servers'][$i]['bs_repository_threshold'] = '32M'; -$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600; -$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M'; -$cfg['UploadDir'] = ''; -$cfg['SaveDir'] = ''; - -?> diff --git a/software/openX/template/openx.inc.php.in b/software/openX/template/openx.inc.php.in deleted file mode 100644 index eac1c4b9eea2b2f36491b572757eebcb27643856..0000000000000000000000000000000000000000 --- a/software/openX/template/openx.inc.php.in +++ /dev/null @@ -1,25 +0,0 @@ -<?php -$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ -$i = 0; -$i++; -/* Server parameters */ -$cfg['Servers'][$i]['host'] = '%(mysql_host)s'; -$cfg['Servers'][$i]['port'] = '%(mysql_port)s'; -/* Authentication type */ -$cfg['Servers'][$i]['auth_type'] = 'cookie'; -$cfg['Servers'][$i]['user'] = ''; -$cfg['Servers'][$i]['connect_type'] = 'tcp'; -$cfg['Servers'][$i]['compress'] = false; -/* Select mysqli if your server has it */ -$cfg['Servers'][$i]['extension'] = 'mysql'; -$cfg['Servers'][$i]['AllowNoPassword'] = false; - -/* rajk - for blobstreaming */ -$cfg['Servers'][$i]['bs_garbage_threshold'] = 50; -$cfg['Servers'][$i]['bs_repository_threshold'] = '32M'; -$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600; -$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M'; -$cfg['UploadDir'] = ''; -$cfg['SaveDir'] = ''; - -?> diff --git a/software/os-commerce/template/os-commerce.inc.php.in b/software/os-commerce/template/os-commerce.inc.php.in deleted file mode 100644 index eac1c4b9eea2b2f36491b572757eebcb27643856..0000000000000000000000000000000000000000 --- a/software/os-commerce/template/os-commerce.inc.php.in +++ /dev/null @@ -1,25 +0,0 @@ -<?php -$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ -$i = 0; -$i++; -/* Server parameters */ -$cfg['Servers'][$i]['host'] = '%(mysql_host)s'; -$cfg['Servers'][$i]['port'] = '%(mysql_port)s'; -/* Authentication type */ -$cfg['Servers'][$i]['auth_type'] = 'cookie'; -$cfg['Servers'][$i]['user'] = ''; -$cfg['Servers'][$i]['connect_type'] = 'tcp'; -$cfg['Servers'][$i]['compress'] = false; -/* Select mysqli if your server has it */ -$cfg['Servers'][$i]['extension'] = 'mysql'; -$cfg['Servers'][$i]['AllowNoPassword'] = false; - -/* rajk - for blobstreaming */ -$cfg['Servers'][$i]['bs_garbage_threshold'] = 50; -$cfg['Servers'][$i]['bs_repository_threshold'] = '32M'; -$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600; -$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M'; -$cfg['UploadDir'] = ''; -$cfg['SaveDir'] = ''; - -?> diff --git a/software/phpbb/template/phpbb.inc.php.in b/software/phpbb/template/phpbb.inc.php.in deleted file mode 100644 index 0c39feef34495c81a59b87d10398294b24c402c0..0000000000000000000000000000000000000000 --- a/software/phpbb/template/phpbb.inc.php.in +++ /dev/null @@ -1,25 +0,0 @@ -<?php -$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ -$i = 0; -$i++; -/* Server parameters */ -$cfg['Servers'][$i]['host'] = 'Put here mysql host template key'; -$cfg['Servers'][$i]['port'] = 'Put here mysql port template key'; -/* Authentication type */ -$cfg['Servers'][$i]['auth_type'] = 'cookie'; -$cfg['Servers'][$i]['user'] = ''; -$cfg['Servers'][$i]['connect_type'] = 'tcp'; -$cfg['Servers'][$i]['compress'] = false; -/* Select mysqli if your server has it */ -$cfg['Servers'][$i]['extension'] = 'mysql'; -$cfg['Servers'][$i]['AllowNoPassword'] = false; - -/* rajk - for blobstreaming */ -$cfg['Servers'][$i]['bs_garbage_threshold'] = 50; -$cfg['Servers'][$i]['bs_repository_threshold'] = '32M'; -$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600; -$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M'; -$cfg['UploadDir'] = ''; -$cfg['SaveDir'] = ''; - -?> diff --git a/software/pimcore/template/pimcore.inc.php.in b/software/pimcore/template/pimcore.inc.php.in deleted file mode 100644 index eac1c4b9eea2b2f36491b572757eebcb27643856..0000000000000000000000000000000000000000 --- a/software/pimcore/template/pimcore.inc.php.in +++ /dev/null @@ -1,25 +0,0 @@ -<?php -$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ -$i = 0; -$i++; -/* Server parameters */ -$cfg['Servers'][$i]['host'] = '%(mysql_host)s'; -$cfg['Servers'][$i]['port'] = '%(mysql_port)s'; -/* Authentication type */ -$cfg['Servers'][$i]['auth_type'] = 'cookie'; -$cfg['Servers'][$i]['user'] = ''; -$cfg['Servers'][$i]['connect_type'] = 'tcp'; -$cfg['Servers'][$i]['compress'] = false; -/* Select mysqli if your server has it */ -$cfg['Servers'][$i]['extension'] = 'mysql'; -$cfg['Servers'][$i]['AllowNoPassword'] = false; - -/* rajk - for blobstreaming */ -$cfg['Servers'][$i]['bs_garbage_threshold'] = 50; -$cfg['Servers'][$i]['bs_repository_threshold'] = '32M'; -$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600; -$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M'; -$cfg['UploadDir'] = ''; -$cfg['SaveDir'] = ''; - -?> diff --git a/software/piwik/template/piwik.inc.php.in b/software/piwik/template/piwik.inc.php.in deleted file mode 100644 index eac1c4b9eea2b2f36491b572757eebcb27643856..0000000000000000000000000000000000000000 --- a/software/piwik/template/piwik.inc.php.in +++ /dev/null @@ -1,25 +0,0 @@ -<?php -$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ -$i = 0; -$i++; -/* Server parameters */ -$cfg['Servers'][$i]['host'] = '%(mysql_host)s'; -$cfg['Servers'][$i]['port'] = '%(mysql_port)s'; -/* Authentication type */ -$cfg['Servers'][$i]['auth_type'] = 'cookie'; -$cfg['Servers'][$i]['user'] = ''; -$cfg['Servers'][$i]['connect_type'] = 'tcp'; -$cfg['Servers'][$i]['compress'] = false; -/* Select mysqli if your server has it */ -$cfg['Servers'][$i]['extension'] = 'mysql'; -$cfg['Servers'][$i]['AllowNoPassword'] = false; - -/* rajk - for blobstreaming */ -$cfg['Servers'][$i]['bs_garbage_threshold'] = 50; -$cfg['Servers'][$i]['bs_repository_threshold'] = '32M'; -$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600; -$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M'; -$cfg['UploadDir'] = ''; -$cfg['SaveDir'] = ''; - -?> diff --git a/software/simpleMachineForum/template/simplemachine.inc.php.in b/software/simpleMachineForum/template/simplemachine.inc.php.in deleted file mode 100644 index eac1c4b9eea2b2f36491b572757eebcb27643856..0000000000000000000000000000000000000000 --- a/software/simpleMachineForum/template/simplemachine.inc.php.in +++ /dev/null @@ -1,25 +0,0 @@ -<?php -$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ -$i = 0; -$i++; -/* Server parameters */ -$cfg['Servers'][$i]['host'] = '%(mysql_host)s'; -$cfg['Servers'][$i]['port'] = '%(mysql_port)s'; -/* Authentication type */ -$cfg['Servers'][$i]['auth_type'] = 'cookie'; -$cfg['Servers'][$i]['user'] = ''; -$cfg['Servers'][$i]['connect_type'] = 'tcp'; -$cfg['Servers'][$i]['compress'] = false; -/* Select mysqli if your server has it */ -$cfg['Servers'][$i]['extension'] = 'mysql'; -$cfg['Servers'][$i]['AllowNoPassword'] = false; - -/* rajk - for blobstreaming */ -$cfg['Servers'][$i]['bs_garbage_threshold'] = 50; -$cfg['Servers'][$i]['bs_repository_threshold'] = '32M'; -$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600; -$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M'; -$cfg['UploadDir'] = ''; -$cfg['SaveDir'] = ''; - -?> diff --git a/software/spip/template/spip.inc.php.in b/software/spip/template/spip.inc.php.in deleted file mode 100644 index eac1c4b9eea2b2f36491b572757eebcb27643856..0000000000000000000000000000000000000000 --- a/software/spip/template/spip.inc.php.in +++ /dev/null @@ -1,25 +0,0 @@ -<?php -$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ -$i = 0; -$i++; -/* Server parameters */ -$cfg['Servers'][$i]['host'] = '%(mysql_host)s'; -$cfg['Servers'][$i]['port'] = '%(mysql_port)s'; -/* Authentication type */ -$cfg['Servers'][$i]['auth_type'] = 'cookie'; -$cfg['Servers'][$i]['user'] = ''; -$cfg['Servers'][$i]['connect_type'] = 'tcp'; -$cfg['Servers'][$i]['compress'] = false; -/* Select mysqli if your server has it */ -$cfg['Servers'][$i]['extension'] = 'mysql'; -$cfg['Servers'][$i]['AllowNoPassword'] = false; - -/* rajk - for blobstreaming */ -$cfg['Servers'][$i]['bs_garbage_threshold'] = 50; -$cfg['Servers'][$i]['bs_repository_threshold'] = '32M'; -$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600; -$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M'; -$cfg['UploadDir'] = ''; -$cfg['SaveDir'] = ''; - -?> diff --git a/software/statusnet/template/statusnet.inc.php.in b/software/statusnet/template/statusnet.inc.php.in deleted file mode 100644 index eac1c4b9eea2b2f36491b572757eebcb27643856..0000000000000000000000000000000000000000 --- a/software/statusnet/template/statusnet.inc.php.in +++ /dev/null @@ -1,25 +0,0 @@ -<?php -$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ -$i = 0; -$i++; -/* Server parameters */ -$cfg['Servers'][$i]['host'] = '%(mysql_host)s'; -$cfg['Servers'][$i]['port'] = '%(mysql_port)s'; -/* Authentication type */ -$cfg['Servers'][$i]['auth_type'] = 'cookie'; -$cfg['Servers'][$i]['user'] = ''; -$cfg['Servers'][$i]['connect_type'] = 'tcp'; -$cfg['Servers'][$i]['compress'] = false; -/* Select mysqli if your server has it */ -$cfg['Servers'][$i]['extension'] = 'mysql'; -$cfg['Servers'][$i]['AllowNoPassword'] = false; - -/* rajk - for blobstreaming */ -$cfg['Servers'][$i]['bs_garbage_threshold'] = 50; -$cfg['Servers'][$i]['bs_repository_threshold'] = '32M'; -$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600; -$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M'; -$cfg['UploadDir'] = ''; -$cfg['SaveDir'] = ''; - -?> diff --git a/software/tiki/template/tiki.inc.php.in b/software/tiki/template/tiki.inc.php.in deleted file mode 100644 index eac1c4b9eea2b2f36491b572757eebcb27643856..0000000000000000000000000000000000000000 --- a/software/tiki/template/tiki.inc.php.in +++ /dev/null @@ -1,25 +0,0 @@ -<?php -$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ -$i = 0; -$i++; -/* Server parameters */ -$cfg['Servers'][$i]['host'] = '%(mysql_host)s'; -$cfg['Servers'][$i]['port'] = '%(mysql_port)s'; -/* Authentication type */ -$cfg['Servers'][$i]['auth_type'] = 'cookie'; -$cfg['Servers'][$i]['user'] = ''; -$cfg['Servers'][$i]['connect_type'] = 'tcp'; -$cfg['Servers'][$i]['compress'] = false; -/* Select mysqli if your server has it */ -$cfg['Servers'][$i]['extension'] = 'mysql'; -$cfg['Servers'][$i]['AllowNoPassword'] = false; - -/* rajk - for blobstreaming */ -$cfg['Servers'][$i]['bs_garbage_threshold'] = 50; -$cfg['Servers'][$i]['bs_repository_threshold'] = '32M'; -$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600; -$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M'; -$cfg['UploadDir'] = ''; -$cfg['SaveDir'] = ''; - -?> diff --git a/software/xoops/template/wp-config.php.in b/software/xoops/template/wp-config.php.in deleted file mode 100644 index 385c4aa990ee2962f535bf1fa81d8010296bce5a..0000000000000000000000000000000000000000 --- a/software/xoops/template/wp-config.php.in +++ /dev/null @@ -1,90 +0,0 @@ -<?php -/** - * The base configurations of the WordPress. - * - * This file has the following configurations: MySQL settings, Table Prefix, - * Secret Keys, WordPress Language, and ABSPATH. You can find more information - * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing - * wp-config.php} Codex page. You can get the MySQL settings from your web host. - * - * This file is used by the wp-config.php creation script during the - * installation. You don't have to use the web site, you can just copy this file - * to "wp-config.php" and fill in the values. - * - * @package WordPress - */ - -// ** MySQL settings - You can get this info from your web host ** // -/** The name of the database for WordPress */ -define('DB_NAME', 'Put here mysql database name template key'); - -/** MySQL database username */ -define('DB_USER', 'Put here mysql user template key'); - -/** MySQL database password */ -define('DB_PASSWORD', 'Put here mysql password template key'); - -/** MySQL hostname */ -define('DB_HOST', 'Put here mysql host template key'); - -/** Database Charset to use in creating database tables. */ -define('DB_CHARSET', 'utf8'); - -/** The Database Collate type. Don't change this if in doubt. */ -define('DB_COLLATE', ''); - -/**#@+ - * Authentication Unique Keys and Salts. - * - * Change these to different unique phrases! - * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} - * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. - * - * @since 2.6.0 - */ -define('AUTH_KEY', 'put your unique phrase here'); -define('SECURE_AUTH_KEY', 'put your unique phrase here'); -define('LOGGED_IN_KEY', 'put your unique phrase here'); -define('NONCE_KEY', 'put your unique phrase here'); -define('AUTH_SALT', 'put your unique phrase here'); -define('SECURE_AUTH_SALT', 'put your unique phrase here'); -define('LOGGED_IN_SALT', 'put your unique phrase here'); -define('NONCE_SALT', 'put your unique phrase here'); - -/**#@-*/ - -/** - * WordPress Database Table prefix. - * - * You can have multiple installations in one database if you give each a unique - * prefix. Only numbers, letters, and underscores please! - */ -$table_prefix = 'wp_'; - -/** - * WordPress Localized Language, defaults to English. - * - * Change this to localize WordPress. A corresponding MO file for the chosen - * language must be installed to wp-content/languages. For example, install - * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German - * language support. - */ -define('WPLANG', ''); - -/** - * For developers: WordPress debugging mode. - * - * Change this to true to enable the display of notices during development. - * It is strongly recommended that plugin and theme developers use WP_DEBUG - * in their development environments. - */ -define('WP_DEBUG', false); - -/* That's all, stop editing! Happy blogging. */ - -/** Absolute path to the WordPress directory. */ -if ( !defined('ABSPATH') ) - define('ABSPATH', dirname(__FILE__) . '/'); - -/** Sets up WordPress vars and included files. */ -require_once(ABSPATH . 'wp-settings.php');