JConfiguration

synopsis

Ce module est une partie d’un module par défaut qui gère les données fondant des fonctions. Nous verrons comment faire pour configurer et pour remettre à zéro dans les rubriques à venir.

Commande Aide

La commande help Guide de l’utilisateur sur le but du module. Il répertorie les paramètres de substitution qui peut être utilisé dans la déclaration. Il spécifie deux une syntaxe différente pour la configuration et la remise à zéro. La commande utilisée pour l’option d’aide est le suivant :

jrush jconf help

La capture d’écran suivante représente visuellement sur le fonctionnement de la commande help.

kevell@corp:/# jrush jconf help
****************************************
GC JRush - The Joomla Command Line Shell
****************************************

 This command is part of Default Modules and handles Databasing Functions.

 JConfiguration, jconfigure, jconfiguration, jconf

     - configure, conf
     set up db user & pw for a project, use admins to create new resources as needed.
     example: ptdeploy jconf conf joomla
     example: ptdeploy jconf conf --yes --platform=joomla30 --mysql-host=127.0.0.1 --mysql-admin-user=""

     - reset
     reset current db to generic values so ptdeploy can write them. may need to be run before db conf.
     example: ptdeploy jconf reset drupal
     example: ptdeploy jconf reset --yes --platform=joomla30


------------------------------
End Help
****************************************

Comment configurer

La commande utilisée pour configurer joomla est illustré ci-dessous :

jrush jconf conf joomla

Après la saisie de la commande ci-dessus, il vous sera demandé

paramètres Autres paramètres options commentaires
Do you want to configure Joomla? (Y/N) Au lieu de conf nous pouvons aussi utiliser configure Y Si l’utilisateur à configurer leur possible entrée en Y.
Do you want to configure Joomla? (Y/N) Au lieu de conf nous pouvons aussi utiliser configure N Si l’utilisateur ne souhaite pas qu’ils peuvent configurer entrée comme N.|

Si le produit utilisateur Configuration, il se demande à l’utilisateur définir les valeurs par défaut pour les éléments suivants s’ils le souhaitent. Il sera également spécifie la valeur par défaut :

  • Set non-default values for log_path?
  • Set non-default values for temp_path?
  • Set non-default values for MetaAuthor?
  • Set non-default values for MetaDesc?
  • Set non-default values for MetaKeys?
  • Set non-default values for MetaRights?
  • Set non-default values for MetaTitle?
  • Set non-default values for MetaVersion?
  • Set non-default values for access?
  • Set non-default values for cache_handler?
  • Set non-default values for cachetime?
  • Set non-default values for frontediting?
  • Set non-default values for assest_id?
  • Set non-default values for user?
  • Set non-default values for db?
  • Set non-default values for host?
  • Set non-default values for password?

Enfin, le processus de configuration se rempli comme le montre la capture d’écran.

kevell@corp:/# jrush jconf conf joomla
PHP Notice:  Undefined index: config-file in /opt/jrush/jrush/src/Modules/JConfiguration/Model/JConfigurationDataJoomla3.php on line 141
PHP Notice:  Undefined index: config-file in /opt/jrush/jrush/src/Modules/JConfiguration/Model/JConfigurationDataJoomla3.php on line 141
PHP Notice:  Undefined index: config-file in /opt/jrush/jrush/src/Modules/JConfiguration/Model/JConfigurationDataJoomla3.php on line 141
PHP Notice:  Undefined index: config-file in /opt/jrush/jrush/src/Modules/JConfiguration/Model/JConfigurationDataJoomla3.php on line 141
Do you want to configure Joomla? (Y/N)
Y
PHP Notice:  Undefined index: config-file in /opt/jrush/jrush/src/Modules/JConfiguration/Model/JConfigurationDataJoomla3.php on line 141
PHP Notice:  Undefined index: config-file in /opt/jrush/jrush/src/Modules/JConfiguration/Model/JConfigurationDataJoomla3.php on line 141
Set non-default value for log_path? Default is /logs (Y/N)

Set non-default value for tmp_path? Default is /tmp (Y/N)

Set non-default value for MetaAuthor? Default is 1 (Y/N)

Set non-default value for MetaDesc? Default is  (Y/N)

Set non-default value for MetaKeys? Default is  (Y/N)

Set non-default value for MetaRights? Default is  (Y/N)

Set non-default value for MetaTitle? Default is 1 (Y/N)

Set non-default value for MetaVersion? Default is 0 (Y/N)

Set non-default value for access? Default is 1 (Y/N)

Set non-default value for cache_handler? Default is file (Y/N)

Set non-default value for cachetime? Default is 15 (Y/N)

Set non-default value for caching? Default is 0 (Y/N)

Set non-default value for captcha? Default is 0 (Y/N)

Set non-default value for cookie_domain? Default is  (Y/N)

Set non-default value for cookie_path? Default is  (Y/N)

Set non-default value for dbprefix? Default is jos_ (Y/N)

Set non-default value for dbtype? Default is mysqli (Y/N)

Set non-default value for debug? Default is 0 (Y/N)

Set non-default value for debug_lang? Default is 0 (Y/N)

Set non-default value for display_offline_message? Default is 1 (Y/N)

Set non-default value for editor? Default is jce (Y/N)

Set non-default value for error_reporting? Default is default (Y/N)

Set non-default value for feed_email? Default is author (Y/N)

Set non-default value for feed_limit? Default is 10 (Y/N)

Set non-default value for force_ssl? Default is 0 (Y/N)

Set non-default value for fromname? Default is  (Y/N)

Set non-default value for ftp_enable? Default is 0 (Y/N)

Set non-default value for ftp_host? Default is  (Y/N)

Set non-default value for ftp_pass? Default is  (Y/N)

Set non-default value for ftp_port? Default is 21 (Y/N)

Set non-default value for ftp_root? Default is  (Y/N)

Set non-default value for ftp_user? Default is  (Y/N)

Set non-default value for gzip? Default is 1 (Y/N)

Set non-default value for helpurl? Default is http://help.joomla.org/proxy/index.php?option=com_help&keyref=Help{major}{minor}:{keyref} (Y/N)

Set non-default value for lifetime? Default is 60 (Y/N)

Set non-default value for list_limit? Default is 20 (Y/N)

Set non-default value for live_site? Default is  (Y/N)

Set non-default value for mailer? Default is mail (Y/N)

Set non-default value for mailfrom? Default is  (Y/N)

Set non-default value for memcache_compress? Default is 0 (Y/N)

Set non-default value for memcache_persist? Default is 1 (Y/N)

Set non-default value for memcache_server_host? Default is localhost (Y/N)

Set non-default value for memcache_server_port? Default is 11211 (Y/N)

Set non-default value for offline? Default is 0 (Y/N)

Set non-default value for offline_image? Default is  (Y/N)

Set non-default value for offline_message? Default is This site is down for maintenance.<br /> Please check back again soon. (Y/N)

Set non-default value for offset? Default is Europe/London (Y/N)

Set non-default value for offset_user? Default is UTC (Y/N)

Set non-default value for robots? Default is  (Y/N)

Set non-default value for secret? Default is  (Y/N)

Set non-default value for sef? Default is 1 (Y/N)

Set non-default value for sef_rewrite? Default is 1 (Y/N)

Set non-default value for sef_suffix? Default is 0 (Y/N)

Set non-default value for sendmail? Default is /usr/sbin/sendmail (Y/N)

Set non-default value for session_handler? Default is database (Y/N)

Set non-default value for sitename? Default is  (Y/N)

Set non-default value for sitename_pagetitles? Default is 1 (Y/N)

Set non-default value for smtpauth? Default is 0 (Y/N)

Set non-default value for smtphost? Default is localhost (Y/N)

Set non-default value for smtppass? Default is  (Y/N)

Set non-default value for smtpport? Default is 25 (Y/N)

Set non-default value for smtpsecure? Default is none (Y/N)

Set non-default value for smtpuser? Default is  (Y/N)

Set non-default value for unicodeslugs? Default is 0 (Y/N)

Set non-default value for memcached_persist? Default is 1 (Y/N)

Set non-default value for memcached_compress? Default is 0 (Y/N)

Set non-default value for memcached_server_host? Default is localhost (Y/N)

Set non-default value for memcached_server_port? Default is 11211 (Y/N)

Set non-default value for proxy_enable? Default is 0 (Y/N)

Set non-default value for proxy_host? Default is  (Y/N)

Set non-default value for proxy_port? Default is  (Y/N)

Set non-default value for proxy_user? Default is  (Y/N)

Set non-default value for proxy_pass? Default is  (Y/N)

Set non-default value for mailonline? Default is 1 (Y/N)

Set non-default value for session_memcache_server_host? Default is localhost (Y/N)

Set non-default value for session_memcache_server_port? Default is 11211 (Y/N)

Set non-default value for session_memcached_server_host? Default is localhost (Y/N)

Set non-default value for session_memcached_server_port? Default is 11211 (Y/N)

Set non-default value for frontediting? Default is 1 (Y/N)

Set non-default value for asset_id? Default is 1 (Y/N)

Set non-default value for user? Default is  (Y/N)

Set non-default value for db? Default is  (Y/N)

Set non-default value for host? Default is  (Y/N)

Set non-default value for password? Default is  (Y/N)

PHP Notice:  Undefined index: config-file in /opt/jrush/jrush/src/Modules/JConfiguration/Model/JConfigurationAllOS.php on line 85
PHP Warning:  file(): Filename cannot be empty in /opt/jrush/jrush/src/Modules/JConfiguration/Model/JConfigurationAllOS.php on line 85
PHP Warning:  Invalid argument supplied for foreach() in /opt/jrush/jrush/src/Modules/JConfiguration/Model/JConfigurationAllOS.php on line 90
Please check Joomla 3.x Series Settings file:

Is this Okay? (Y/N)
Y
PHP Notice:  Undefined index: config-file in /opt/jrush/jrush/src/Modules/JConfiguration/Model/JConfigurationAllOS.php on line 119
PHP Notice:  Undefined index: config-file in /opt/jrush/jrush/src/Modules/JConfiguration/Model/JConfigurationAllOS.php on line 120
Removing old settings file ...

PHP Notice:  Undefined index: config-file in /opt/jrush/jrush/src/Modules/JConfiguration/Model/JConfigurationAllOS.php on line 114
Moving new settings file  in...
PHP Notice:  Undefined index: config-file in /opt/jrush/jrush/src/Modules/JConfiguration/Model/JConfigurationAllOS.php on line 115
PHP Warning:  file_put_contents(): Filename cannot be empty in /opt/jrush/jrush/src/Modules/JConfiguration/Model/JConfigurationAllOS.php on li ne 115
****************************************
GC JRush - The Joomla Command Line Shell
****************************************

1Joomla Configuration Finished
****************************************

lors de la configuration, il se demande à l’utilisateur comme

Please check Jomla 3.x Series Settings file:

Is this Okay? (Y/N)

The user have to specify Y or N.

Comment réinitialiser

La commande utilisée pour la réinitialisation est illustrée ci-dessous :

jrush jconf reset drupal

La capture d’écran ci-dessous représente visuellement sur le processus de remise à zero

avantages

  • C’est aisée dans les deux cent OS et ainsi comme dans ubuntu.
  • Les paramètres utilisés dans la déclaration ne sont pas sensibles à la casse qui est un atout supplémentaire alors que par rapport aux autres.
  • L’utilisateur peut spécifier les valeurs par défaut non lors de la configuration.
comments powered by Disqus