Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
f5f8e54d
Commit
f5f8e54d
authored
7 years ago
by
Thijs Kinkhorst
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/memcacheSync.php
+5
-5
5 additions, 5 deletions
bin/memcacheSync.php
docs/simplesamlphp-artifact-idp.md
+6
-6
6 additions, 6 deletions
docs/simplesamlphp-artifact-idp.md
with
11 additions
and
11 deletions
bin/memcacheSync.php
+
5
−
5
View file @
f5f8e54d
...
@@ -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
memcache
d libraries
appear to be unavailable.
\n
"
);
echo
(
"Error: the memcache
d (or
memcache
) PHP extension
appear
s
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/phpenmo
d'
))
{
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
memcache
d
\n
"
);
echo
(
"
echo 'extension=memcached.so' >/etc/php5/cli/conf.d/
memcache
d.ini
\n
"
);
echo
(
"
phpenmod -s cli
memcache
\n
"
);
}
}
exit
(
1
);
exit
(
1
);
...
...
This diff is collapsed.
Click to expand it.
docs/simplesamlphp-artifact-idp.md
+
6
−
6
View file @
f5f8e54d
...
@@ -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
bo
th by running
one of the following
:
If you are running Debian
or Ubuntu
, you can install th
is
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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment