SimpleSAMLphp installation

From Wiki @ Karl Jones dot com
Revision as of 06:51, 14 October 2015 by Karl Jones (Talk | contribs) (Notes)

Jump to: navigation, search

SimpleSAMLphp installation is the installation of SimpleSAMLphp.

See also SimpleSAMLphp integration.

Notes

13 Installing simpleSAMLphp in alternative locations

There may be several reasons why you want to install simpleSAMLphp in an alternative way.

You are installing simpleSAMLphp in a hosted environment where you do not have root access, and cannot change Apache configuration.

Still you can install simpleSAMLphp - keep on reading.

You have full permissions to the server, but cannot edit Apache configuration for some reason, polictics, policy or whatever.

The SimpleSAMLphp code contains one folder named simplesamlphp.

In this folder there are a lot of subfolders for library, metadata, configuration and much more.

One of these folders is named www. This and only this folder should be exposed on the web.

The reccomended configuration is to put the whole simplesamlphp folder outside the webroot, and then link in the www folder by using the Alias directive, as described in the section called “Configuring Apache”. But this is not the only possible way.

As an example, let's see how you can install simpleSAMLphp in your home directory on a shared hosting server.

Extract the simpleSAMLphp archive in your home directory:

cd ~ tar xzf simplesamlphp-1.x.y.tar.gz mv simplesamlphp-1.x.y simplesamlphp Then you can try to make a symlink into the public\_html directory.

cd ~/public_html ln -s ../simplesamlphp/www simplesaml Next, you need to update the configuration of paths in simplesamlphp/config/config.php:

And, then we need to set the baseurlpath parameter to match the base path of the URLs to the content of your www folder:

'baseurlpath' => '~andreas/simplesaml/', Now, you can go to the URL of your installation and check if things work:

http://yourcompany.com/~andreas/simplesaml/ </pre>

Source:

See also