Skip to content

Installation & Configuration

Alex Chaux edited this page May 22, 2015 · 9 revisions

I followed along the instructions provided on the simpleSAMLphp website. Here is a synopsis:

Download the latest version of the code from the simpleSAMLphp download page https://simplesamlphp.org/download

Unpack the tarball in the /var directory (you may need to sudo these commands depending on which user you are using at the terminal prompt):

cd /var

wget https://simplesamlphp.org/res/downloads/simplesamlphp-1.13.2.tar.gz

tar -xzf simplesamlphp-1.13.2.tar.gz

Rename the directory simplesamlphp-1.13.2 to simplesamlphp

mv simplesamlphp-1.13.2 simplesamlphp

The /var/simplesamlphp/www directory must be accessible by the web server. If you run the Apache web server with the apache user, change the owner and group to apache:

chown -R apache:apache /var/simplesamlphp/www

##Apache Configuration##

Next, configure Apache to recognize simpleSAMLphp. I run multiple sites on my local machine, and I use Zend Server Ce, so I will simply create a new VirtualHost configuration file in /usr/local/zend/apache2/conf.d/simplesamlphp.conf. You can add the configuration file to wherever your conf.d directory exists:

#### SimpleSAML sandbox ####
<VirtualHost localhost:8887>
    ServerName localhost
    DocumentRoot /var/www/simplesaml
    Alias /simplesaml /var/simplesamlphp/www
    LogFormat combined
    ErrorLog /var/www/log/simplesaml_error.log
    TransferLog /var/www/log/simplesaml_access.log
    <Directory "/var/www/simplesaml">
        Options All
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

Clone this wiki locally