Skip to content
Snippets Groups Projects
Commit f5f8e54d authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Reapply changes from de972b67 that were lost in a merge error.

Also tweak wording of artifact idp docs a bit re memcache extension.
parent 64bf11b6
No related branches found
No related tags found
No related merge requests found
...@@ -4,15 +4,15 @@ ...@@ -4,15 +4,15 @@
// Check that the memcache library is enabled // Check that the memcache library is enabled
if(!class_exists('Memcache') && !class_exists('Memcached')) { if(!class_exists('Memcache') && !class_exists('Memcached')) {
echo("Error: the memcache and memcached libraries appear to be unavailable.\n"); echo("Error: the memcached (or memcache) PHP extension appears to be unavailable.\n");
echo("\n"); echo("\n");
echo("This is most likely because PHP doesn't load it for the command line\n"); echo("This is most likely because PHP doesn't load it for the command line\n");
echo("version. You probably need to enable one of them somehow.\n"); echo("version. You probably need to enable it somehow.\n");
echo("\n"); echo("\n");
if(is_dir('/etc/php5/cli/conf.d')) { if(is_executable('/usr/sbin/phpenmod')) {
echo("It is possible that running one of the following commands as root will fix it:\n"); echo("It is possible that running one of the following commands as root will fix it:\n");
echo(" echo 'extension=memcache.so' >/etc/php5/cli/conf.d/memcache.ini\n"); echo(" phpenmod -s cli memcached\n");
echo(" echo 'extension=memcached.so' >/etc/php5/cli/conf.d/memcached.ini\n"); echo(" phpenmod -s cli memcache\n");
} }
exit(1); exit(1);
......
...@@ -12,17 +12,17 @@ Memcache ...@@ -12,17 +12,17 @@ Memcache
-------- --------
To enable memcache, you must first install and configure memcache on the server hosting your IdP. To enable memcache, you must first install and configure memcache on the server hosting your IdP.
You need both a memcache server and a the PHP memcache client. You need both a memcache server and a the PHP memcached client (extension).
How this is done depends on the distribution. How this is done depends on the distribution.
If you are running Debian Lenny, you can install both by running one of the following: If you are running Debian or Ubuntu, you can install this by running:
aptitude install memcached php5-memcache apt install memcached php-memcached
aptitude install memcached php5-memcached
The memcached extension should be used for PHP 7. simpleSAMLphp also supports the legacy `php-memcache` (without `d`) variant.
*Note*: For security, you must make sure that the memcache server is inaccessible to other hosts. *Note*: For security, you must make sure that the memcache server is inaccessible to other hosts.
The default configuration on Debian Lenny is for the memcache server to be accessible to only the local host. The default configuration on Debian is for the memcache server to be accessible to only the local host.
Once the memcache server is configured, you can configure simplesamlphp to use it to store sessions. Once the memcache server is configured, you can configure simplesamlphp to use it to store sessions.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment