How to make the Apache configuration file when install simplesamlphp on wamp?

307 views
Skip to first unread message

wenluo...@gmail.com

unread,
Jan 13, 2018, 4:56:09 AM1/13/18
to SimpleSAMLphp
What are you trying to do?

I have some website write with open source software(drupal, wordpress, phpbb, megento)and I want to achieve SSO with simplesamlphp.
Today I try to install  simplesamlphp on wamp,but there are some problems. 

What have you done?

I have extracted the archive file to the "www" directory and make the Apache configuration like this( there is also a "www" directory ):


<VirtualHost *>
        ServerName localhost
        DocumentRoot D:/wamp/www/simplesamlphp/www/index.php

        SetEnv SIMPLESAMLPHP_CONFIG_DIR  D:/wamp/www/simplesamlphp/config

        Alias /simplesaml  D:/wamp/www/simplesamlphp/www

        <Directory /var/simplesamlphp/www>
            <IfModule mod_authz_core.c>
            # For Apache 2.4:
            Require all granted
            </IfModule>
        </Directory>
</VirtualHost>
and the result show like this(I don't know why):

Can you tell me How to make the Apache configuration file when install simplesamlphp on wamp? 




Peter Schober

unread,
Jan 13, 2018, 11:48:30 AM1/13/18
to SimpleSAMLphp
* wenluo...@gmail.com <wenluo...@gmail.com> [2018-01-13 10:56]:
> I have extracted the archive file to the *"www"* directory and make the
> Apache configuration like this( there is also a *"www" *directory ):

Why? Install the software *anywhere* on the machine, outside the
webserver's web root. Then add an Alias directory as per the
documentation.

> DocumentRoot D:/wamp/www/simplesamlphp/www/index.php

As per Apache httpd configuration DocumentRoot needs to point to a
directory, not a file:
http://httpd.apache.org/docs/2.4/en/mod/core.html#documentroot

> SetEnv SIMPLESAMLPHP_CONFIG_DIR D:/wamp/www/simplesamlphp/config

I've never had the need to set this.

> Alias /simplesaml D:/wamp/www/simplesamlphp/www

That should be the only thing you need, but you should probably move
your SimpleSAMLphp installation elsewhere, e.g. to /usr/local or /opt
or anywhere else.

> <Directory /var/simplesamlphp/www>

That's pointless if you have SimpleSAMLphp in
D:/wamp/www/simplesamlphp/www
(I.e., you're setting a directive here for something that doesn't
exist. It won't do any damage, but it won't do anything useful
either.)

> and the result show like this(I don't know why):

Don't post URLs to pixels that represent text. Instead copy and paste

> Can you tell me How to make the Apache configuration file when
> install simplesamlphp on wamp?

By following SimpleSAMLphp documentation, and adapting it as needed
for your own environment. (Obviously the UNIX paths given in the
SimpleSAMLphp documentation don't apply to MS-Windows servers. If you
don't know how to use MS-Windows paths instead you're probably not
best suited to run security server software.)

-peter
Reply all
Reply to author
Forward
0 new messages