Testing simplest SimpleSAMLphp sp and idp setup

527 views
Skip to first unread message

Marc Carrion

unread,
Jul 30, 2018, 9:22:51 PM7/30/18
to SimpleSAMLphp
Hi, I'm trying to setup the simplest sp/idp using simplesamlphp to build from there.

I installed simplesamlphp, and I'm trying to render www/index.php, but I keep getting the following error:

MacBook-Pro-2:simplesamlphp-1.15.4 marc.carrion$ php -S www.mcc.com:8000 -t www

PHP 5.6.30 Development Server started at Mon Jul 30 21:20:12 2018

Listening on http://www.mcc.com:8000

Document root is /Users/marc.carrion/PHP/simplesamlphp-1.15.4/www

Press Ctrl-C to quit.

[Mon Jul 30 21:20:29 2018] 127.0.0.1:51836 [302]: /

[Mon Jul 30 21:20:29 2018] 127.0.0.1:51837 [404]: /simplesaml/module.php/core/frontpage_welcome.php - No such file or directory

[Mon Jul 30 21:20:29 2018] 127.0.0.1:51838 [404]: /favicon.ico - No such file or directory


I try to load:

which redirects me to:

and there is where I get the error

I have not started touching any of the other configuration other than setting the /etc/hosts names and starting the php as shown above. 

I have not found a step by step guide to set and test it

Jaime Perez Crespo

unread,
Jul 31, 2018, 2:00:13 AM7/31/18
to SimpleSAMLphp
Hi Marc,

On 31 Jul 2018, at 03:22 AM, Marc Carrion <marcc...@gmail.com> wrote:
> Hi, I'm trying to setup the simplest sp/idp using simplesamlphp to build from there.
>
> I installed simplesamlphp, and I'm trying to render www/index.php, but I keep getting the following error:
>
> MacBook-Pro-2:simplesamlphp-1.15.4 marc.carrion$ php -S www.mcc.com:8000 -t www

I don’t think you can run SimpleSAMLphp inside PHP’s built-in web server. It relies on a special way to process request paths that works on proper web servers, but probably not on that basic implementation.

You would need to configure the web server in your mac, or even better, use a virtual machine with a web server you can mess with.

> PHP 5.6.30 Development Server started at Mon Jul 30 21:20:12 2018
> Listening on http://www.mcc.com:8000
> Document root is /Users/marc.carrion/PHP/simplesamlphp-1.15.4/www
> Press Ctrl-C to quit.
> [Mon Jul 30 21:20:29 2018] 127.0.0.1:51836 [302]: /
> [Mon Jul 30 21:20:29 2018] 127.0.0.1:51837 [404]: /simplesaml/module.php/core/frontpage_welcome.php - No such file or directory
> [Mon Jul 30 21:20:29 2018] 127.0.0.1:51838 [404]: /favicon.ico - No such file or directory
>
> I try to load:
> http://www.mcc.com:8000
>
> which redirects me to:
> http://www.mcc.com:8000/simplesaml/module.php/core/frontpage_welcome.php
>
> and there is where I get the error
>
> I have not started touching any of the other configuration other than setting the /etc/hosts names and starting the php as shown above.
>
> I have not found a step by step guide to set and test it

There is a detailed documentation page on how to install SimpleSAMLphp:

https://simplesamlphp.org/docs/stable/simplesamlphp-install

--
Jaime Pérez
Uninett / Feide

jaime...@uninett.no
jaime...@protonmail.com
9A08 EA20 E062 70B4 616B 43E3 562A FE3A 6293 62C2

"Two roads diverged in a wood, and I, I took the one less traveled by, and that has made all the difference."
- Robert Frost

Marc Carrion

unread,
Jul 31, 2018, 6:31:31 AM7/31/18
to SimpleSAMLphp
Thanks, I'll install it in an Apache server !

Marc Carrion

unread,
Aug 9, 2018, 10:36:09 AM8/9/18
to SimpleSAMLphp
I used a Docker container with Apache and SimpleSAML. Everything works as expected.

I'm now trying to configure one proxy that can connect to either of the idp. I'll check if anyone has posted about it, if not, I'll ask my question :D 

Thanks again!

Marc
Reply all
Reply to author
Forward
0 new messages