[[TranslatedPages]] == Who we are? == http://gripuqam.org We are french speaking so this page will be translated unsing the advise in [wiki:/faq/translate/pages] == Wiki page we read or collaborate to write @ mayfirst == * [wiki:/faq/translate/pages] * WikiFormatting * http://trac.edgewall.org/wiki/TracSyntaxColoring * Trac Syntax Coloring Example {{{ {{{#!application/x-shellscript ... }}} }}} {{{ {{{#!application/json ... }}} }}} * #!application/json * #!application/x-yaml * #!text/x-yaml * #!application/xml-dtd ... * #!application/x-sh-session **No macro or processor named 'application/x-sh-session' found** * #!application/x-shellscript * #!html * #!text/html * #!text/html+twig * #!application/x-twig * #!application/x-httpd-php5 * #!text/x-php * #!text/css * #!text/javascript ... * #!text/x-sql * #!text/x-sqlite3-console * #!text/x-postgresql-psql ... * #!text/x-mysql * #!text/x-diff * #!text/x-trac-wiki * [wiki:TracQuery#UsingtheTicketQueryMacro TicketQuery Macro] (tagging tickets) examples: * [wiki:tzk:choices] * [wiki:support-team/dkg] * https://support.mayfirst.org/tags * http://trac.edgewall.org/wiki/TicketQuery * http://trac.edgewall.org/wiki/TracQuery * There is somewhere a useful cloud of tags. [wiki:/faq/wordpress/WordPressInstall] * Tag for Debian packages `[DebianPackage:python-whoosh]`[DebianPackage:python-whoosh] == Tickets we follow == === Taged with GRIP-UQAM === [[TicketQuery(keywords~=GRIP-UQAM,order=changetime,desc=1,format=table,col=changetime|resolution|owner|summary)]] === Taged with python, tendenci, django, pyramid, php, drupal7, drupal, golang, fastcgi, chelsea, ossie === [[TicketQuery(max=50,keywords~=python|tendenci|django|pyramid|php|drupal7|drupal|golang|fastcgi|chelsea.mayfirst.org|ossie.mayfirst.org,order=changetime,desc=1,format=table,col=changetime|resolution|owner|summary)]] === Reported by us === [[TicketQuery(reporter=https://id.mayfirst.org/gripuqam|https://id.mayfirst.org/gripuqamweb|https://id.mayfirst.org/essais)]] === Taged with GRIP-UQAM with description === [[TicketQuery(keywords~=GRIP-UQAM,format=table,col=changetime|resolution|owner|summary,rows=description)]] == Development Tool == * [wiki:/faq/setup-development-workstation] * [wiki:/setup_virtual_machine] == Pages we may need one day == * [wiki:apachesolr] * [wiki:faq/drupal/update-module] * [wiki:create_mysql_database] * [wiki:phpmyadmin_link] * [wiki:support-team] == Some PostgreSQL commands == * $ psql postgres --command="\l" # do see DB on server and parameters * postgres:~$ createuser -D -R -S * postgres:~$ createdb -O * $ pg_dump -Fc --verbose --file= * $ pg_restore --verbose --no-owner --no-privileges --dbname= # restore the data base as a different user eg. to clone a Drupal website == Javascript: from npm to bower == * $ nice -n 127 ionice --class=idle npm install bower --save * $ nice -n 127 ionice --class=idle npm update #update! * or (like there is something to check here) * $ nice -n 127 ionice --class=idle npm update bower #update! * .bowerrc * $ nice -n 127 ionice --class=idle nodejs node_modules/bower/bin/bower init # to start a new empty .bowerrc * Install some libraries... * $ nice -n 127 ionice --class=idle nodejs node_modules/bower/bin/bower update --production #update! == Example .bowerrc for Drupal 7 == {{{#!application/json { "directory" : "../../web/sites/all/libraries" } }}} == Install Javascript libraries with Bower package manager * $ nodejs node_modules/bower/bin/bower install --save ckeditor#full/stable * $ nodejs node_modules/bower/bin/bower install --save jquery#1.4.4 # Drupal 7 version * or (good idea to check) * $ nodejs node_modules/bower/bin/bower install --save jquery#~1.4.4 # Drupal 7 version * $ nodejs node_modules/bower/bin/bower install --save jquery-colorbox # depends on jquery * https://github.com/npm/node-semver#ranges (valid for Bower) * $ ls bower_components/ * or * $ ls ../../web/sites/all/libraries * https://packagist.org/packages/ckeditor/ckeditor * Supported Editors Matrix https://www.drupal.org/node/596966 * jquery version for Drupal 7 https://www.drupal.org/node/171213 * same with jQuery Update module https://www.drupal.org/project/jquery_update * https://packagist.org/packages/kraksoft/colorbox * https://github.com/Spea/SpBowerBundle == Example bower.json for Drupal 7 == {{{#!application/json { "name": "drupal7", "private": true, "ignore": [ "**/.*", "node_modules", "bower_components", "test", "tests" ], "dependencies": { "ckeditor": "#full/stable", "jquery": "~1.4.4", "jquery-colorbox": "^1.6.3" } } }}} == Example composer.json for Drupal 7 == {{{#!application/json { "require": { "drush/drush": "^8.0", "ezyang/htmlpurifier": "^4.7", "kraksoft/colorbox": "^1.5", "pelago/emogrifier": "^1.0", "tinymce/tinymce": "^3.5", # remove this line, this version is not available through composer! "ckeditor/ckeditor": "^full/4.5.1" } } }}} * http://docs.drush.org/en/master/install/ * https://packagist.org/packages/ezyang/htmlpurifier * http://htmlpurifier.org/download * https://packagist.org/packages/pelago/emogrifier * https://www.drupal.org/project/emogrifier * php composer target directory == Some Composer commands == * $ ./composer.phar self-update * $ ./composer.phar update == Cron == * Consider output to an (even empty) file a good practice allowing to check last time the command has been executed. This is because some subtle errors may prevent execution of cron commands, eg. see #11534 {{{#!application/x-shellscript ... &> cron/results/ }}} * Consider nice and ionice to give priority to interactive tasks {{{#!application/x-shellscript nice -n 127 ionice --class=idle ... }}} == Some Drush commands == * drush -v help * drush -v status * drush -v core-status * drush -v status-report * drush -v elysia-cron * drush -v core-cron * drush -v pm-refresh * drush -v rf * drush -v pm-download * drush -v dl * drush -v pm-updatecode * drush -v upc * drush -v pm-update * drush -v up * drush -v pm-list * drush -v pml * drush --status=enabled pm-list * drush pm-info * drush pm-enable * drush pm-disable * drush -v updatedb * drush -v updb * drush libraries-list * drush -v l10n-update-status * drush -v cache-clear * drush -v bam-sources * use --uri="http://example.org" then sending mail for simplenews https://www.drupal.org/node/1776536 * nice... == Installing Drupal on a development server (outside MayFirst) == {{{#!application/x-shellscript $ drush help site-install $ drush dl drupal $ cd drupal-7.43/ $ drush site-install minimal --db-url=sqlite://sites/default/files/.ht.sqlite $ drush rs }}} == CKEditor for Drupal 7 == Lets'use wysiwyg module * Supported Editors Matrix https://www.drupal.org/node/596966 * $ drush dl --select wysiwyg * $ drush dl wysiwyg-2.x-dev * $ drush status-report * .../sites/all/libraries$ ln -s .../bower_components/ckeditor/ . Does not work! Brobably because of symbolic links... better use .bowerrc to set target directory as suggested above. http://cdn.ckeditor.com/4.5.4/full-all == Useful Debian Packages (Chelsea) == * [DebianPackage:apache2-mpm-worker](debian 8 jessie [DebianPackage:apache2] which uses mpm_event by default) * http://httpd.apache.org/docs/2.4/ * http://httpd.apache.org/docs/2.4/mpm.html * http://httpd.apache.org/docs/2.4/mod/event.html * http://httpd.apache.org/docs/2.4/mod/worker.html * [DebianPackage:apache2-suexec-custom] (also debian 8 jessie [DebianPackage:apache2-suexec-pristine] or debian 7 wheezy [DebianPackage:apache2-suexec]) * [DebianPackage:libapache2-mod-fcgid] * [DebianPackage:php5-cgi] * since february 2016 MayFirst uses mod_proxy_fcgi + php5-fpm == Note Altern-C == * Altern-C seems to use [DebianPackage:libapache2-mpm-itk](debian 7 wheezy [DebianPackage:apache2-mpm-itk]) == To keep in mind == [ticket:4875] [query:id=4875] [[TicketQuery(id=4875)]] [[TicketQuery(id=5580)]] [[TicketQuery(id=5605)]] [[TicketQuery(id=6287)]] * http://servers.mayfirst.org/ == drupal.org followup == * https://localize.drupal.org/comment/51445#comment-51445 == PHP Libraries == === [https://packagist.org/packages/hybridauth/hybridauth Hybridauth] === http://hybridauth.sourceforge.net/userguide.html {{{#!application/x-shellscript composer require hybridauth/hybridauth }}} [http://hybridauth.sourceforge.net/userguide/IDProvider_info_Yahoo.html Yahoo OpenID]:: * https://github.com/hybridauth/hybridauth/tree/master/additional-providers/hybridauth-yahoo-openid * http://hybridauth.sourceforge.net/userguide/tuts/specific-provider-wrapper.html * https://login.yahoo.com/ * a mobile phone number is required to register a new account * yahoo Application consumer key [http://hybridauth.sourceforge.net/userguide/IDProvider_info_Live.html Microsoft Live]:: * Not clear if the domain root URL can be used as redirect URI * Using the domain root URL as redirect URI results in an error at the time of clicking the icon on the registered web site * It is not possible to register inside Microsoft developper website a redirect URI similar to the one used for Google, because some caracteres are not accepted. * one could try to make a simpler redirection URI which would redirect to the one simililar to the one used for Google. * microsoft oauth2 application id * [https://msdn.microsoft.com/en-us/library/bb676626.aspx Getting Your Client ID for Web Authentication] * https://account.live.com * [https://account.live.com/developers/applications/index Mes applications] [http://hybridauth.sourceforge.net/userguide/IDProvider_info_Facebook.html Facebook] == Drupal Modules == === [https://www.drupal.org/project/hybridauth Hybridauth] === http://cgit.drupalcode.org/hybridauth/tree/README.txt?id=refs/heads;id2=7.x-2.x