DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:authpdo:joomla

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:authpdo:joomla [2019-11-24 16:20] โ€“ sancayaplugin:authpdo:joomla [2019-11-24 18:50] (current) โ€“ sancaya
Line 4: Line 4:
  
 Configuration for [[plugin:authPDO]] plugin to login to DokuWiki with existing Joomla username & password. Configuration for [[plugin:authPDO]] plugin to login to DokuWiki with existing Joomla username & password.
 +
 +----
 +
 +NOTICE: There is a plugin [[plugin:authjoomla3]] which basically does the same, employing AuthPDO functionality and getting settings automatically from Joomla installation.
 +
 +However, for security reasons setting AuthPDO can be better, because unlike authjoomla3 it doesn't access Joomla directory. So we can limit the PHP access of web sites to each other, with open_basedir. For example, using NGINX:
 +
 +  location ~ \.php$ {
 +      try_files     $uri $uri/ /doku.php;
 +      fastcgi_pass  unix:/run/php-fpm/php-fpm.sock;
 +      fastcgi_param SCRIPT_FILENAME    $document_root$fastcgi_script_name;
 +      fastcgi_param PHP_VALUE open_basedir="/usr/share/nginx/www/dokuwiki/:/tmp/";
 +      include       fastcgi_params;
 +  }
 +
 +So DokuWiki site would have access only to its folder (and temp folder or whatever you set there), but not to Joomla files. Also, the DokuWiki user for the database can have very limited rights too โ€” just to read users tables information.
 +
 +----
  
 ===== Scenario ===== ===== Scenario =====
plugin/authpdo/joomla.1574608849.txt.gz ยท Last modified: 2019-11-24 16:20 by sancaya

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki