Re: Installing simpleSAMLphp in windows

4,268 views
Skip to first unread message

Peter Schober

unread,
May 7, 2013, 3:12:20 AM5/7/13
to simple...@googlegroups.com
* Irien Kamaratih <irienka...@gmail.com> [2013-05-07 08:05]:
> I'm newbie with simpleSAMLphp. I want to install simpleSAMLphp in my
> windows.
> I'm using XAMPP.
> I've tried to follow this installation step :
> http://simplesamlphp.org/docs/1.7/simplesamlphp-install

That's already three releases behind. Why would you install anything
other than 1.10 today?
http://simplesamlphp.org/docs/stable/simplesamlphp-install

> But, I've got lost in configuring apache.

There's not requirement for you to install Apache httpd:

"3. Prerequisites
Some webserver capable of executing PHP scripts."

Any webserver with PHP support will do.
http://simplesamlphp.org/docs/stable/simplesamlphp-install#section_3

> When I tried to access this URL :
> https://service.example.org/simplesaml/, the simpleSAMLphp
> installation webpage doesn't appear.

Check your webserver's error log file.

You also might want to review
http://www.catb.org/esr/faqs/smart-questions.html
at one point. It will help you get better answers.
-peter
Message has been deleted

Irien Kamaratih

unread,
May 7, 2013, 5:27:24 AM5/7/13
to simple...@googlegroups.com, peter....@univie.ac.at
Thanks for replying

The browser shows the following error
Object not found
the requested URL /simplesaml/module.php/core/frontpage_welcome.php was not found on this server

What's wrong here?

Peter Schober

unread,
May 7, 2013, 5:31:28 AM5/7/13
to simple...@googlegroups.com
* Irien Kamaratih <irienka...@gmail.com> [2013-05-07 11:26]:
> The browser show the following error
> Object not found
> the requested URL /simplesaml/module.php/core/frontpage_welcome.php was not
> found on this server
>
> What's wrong here?

Either you don't have the Alias directive set in your httpd config
http://simplesamlphp.org/docs/stable/simplesamlphp-install#section_6
or it points to the wrong local directory or you didn't reload httpd
after changing its configuration or something else is off.
-peter

Irien Kamaratih

unread,
May 7, 2013, 6:26:29 AM5/7/13
to simple...@googlegroups.com, peter....@univie.ac.at
this is my httpd config :

NameVirtualHost *:80

<VirtualHost 127.0.0.1:80>
    DocumentRoot "C:\xampp\htdocs"
    ServerName localhost
</VirtualHost>

<VirtualHost simplesamlphp>
    DocumentRoot "C:\xampp\htdocs\simplesamlphp\www"
    ServerName simplesamlphp
    ServerAlias simplesaml
    <Directory "C:\xampp\htdocs\simplesamlphp\www">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

I've added to hosts file :
127.0.0.1  localhost
127.0.0.1  simplesamlphp

Irien Kamaratih

unread,
May 7, 2013, 6:33:21 AM5/7/13
to simple...@googlegroups.com, peter....@univie.ac.at
I've reloaded my httpd. Is there anything wrong with my alias?


Pada Selasa, 07 Mei 2013 16:31:28 UTC+7, Peter Schober menulis:

Peter Schober

unread,
May 7, 2013, 6:46:42 AM5/7/13
to simple...@googlegroups.com
* Irien Kamaratih <irienka...@gmail.com> [2013-05-07 12:33]:
> I've reloaded my httpd. Is there anything wrong with my alias?

You don't have one. Other than that it's OK.

You did not use the Alias directive as specified in the SSP
documentation (which is fine and up to you). How about the rest of the
relevant documentation, i.e. setting baseurlpath?
http://simplesamlphp.org/docs/stable/simplesamlphp-install#section_6

* Irien Kamaratih <irienka...@gmail.com> [2013-05-07 12:26]:
> NameVirtualHost *:80
>
> <VirtualHost 127.0.0.1:80>
> DocumentRoot "C:\xampp\htdocs"
> ServerName localhost
> </VirtualHost>
>
> <VirtualHost simplesamlphp>
> DocumentRoot "C:\xampp\htdocs\simplesamlphp\www"
> ServerName simplesamlphp
> ServerAlias simplesaml
> <Directory "C:\xampp\htdocs\simplesamlphp\www">
> Options Indexes MultiViews FollowSymLinks
> AllowOverride All
> Order allow,deny
> Allow from all
> </Directory>
> </VirtualHost>
>
> I've added to hosts file :
> 127.0.0.1 localhost
> 127.0.0.1 simplesamlphp

Make sure the virtual host ist working as expected, e.g. by putting a
plain text file (say, "test.txt" with any content, like "Hello,
world!") in the directory specified as DocumentRoot and accessing it
from the web browser via http://simplesamlphp/test.txt
If that does not work you virtual host config is incorrect.
If that does work but accessing SSP's files in there does not maybe
it's a local PHP install problem. I'd retry with a simple PHP file
echo'ing hello world.
Unless all that works it has nothing to do with SSP.
-peter

Irien Kamaratih

unread,
May 7, 2013, 10:44:45 PM5/7/13
to simple...@googlegroups.com, peter....@univie.ac.at
I think my Alias isn't working..
I've changed the Alias with this:

ServerAlias simplesamlphp
Alias /simplesaml/ "/xampp/htdocs/simplesamlphp/www"

But, the results is same

When I type the URL manually, the browser shows the start page for installation but there's a warning like this :

Warning: Cannot modify header information - headers already sent by (output started at C:\simplesamlphp\templates\includes\header.php:2) in C:\simplesamlphp\templates\includes\header.php on line 41
saml.JPG

Peter Schober

unread,
May 8, 2013, 1:57:15 AM5/8/13
to simple...@googlegroups.com
* Irien Kamaratih <irienka...@gmail.com> [2013-05-08 04:44]:
> I think my Alias isn't working..

You didn't have one. I told you so before. But that's not the source
of your problem(s).

Also you're not reading what I wrote and not answering the questions I
asked. Highly unmotivating when someone is trying to help you solve
/your/ problem.

> I've changed the Alias with this:
>
> ServerAlias simplesamlphp

That has nothing to do with anything here.

> Alias /simplesaml/ "/xampp/htdocs/simplesamlphp/www"

Blindly copying what the documentation states won't make this work on
MS-Windows. You'd need to use the correct syntax for your deployment,
which for some reason you already managed to use for your DocumentRoot
directive).
Also, you don't need that Alias at all since you already pointed the
DocumentRoot directive at this directory (whether setting that
DocumentRoot like that is a good idea is up to you. It's your idea.)
Which all indicates you seem to have no idea /why/ you are doing any
of that. In which case it's always advisable to stick to what the
documentation says.

> But, the results is same

I would expect as much.

> When I type the URL manually, the browser shows the start page for
> installation but there's a warning like this :
>
> *Warning*: Cannot modify header information - headers already sent by
> (output started at C:\simplesamlphp\templates\includes\header.php:2) in *
> C:\simplesamlphp\templates\includes\header.php* on line *41*

Does not happen with a default install for me. Search the web for it,
it's a very common PHP error in some of the files you have modified.
If you don't find it, wipe out your SSP install and unpack again from
a fresh distribution. The code as published does not contain such
errors, unless there's a bug somethere.

> Pada Selasa, 07 Mei 2013 17:46:42 UTC+7, Peter Schober menulis:
> > How about the rest of the
> > relevant documentation, i.e. setting baseurlpath?
> > http://simplesamlphp.org/docs/stable/simplesamlphp-install#section_6

So did you or did you not adjust your baseurlpath?
Setting DocumentRoot to SSP's "www" directory would mean your
baseurlpath then becomes "/". The documentation does not spell that
out for you because the documentation does not assume your
DocumentRoot is limited to SSP's "www" directory.
Not setting your DocumentRoot to SSP and having an Alias directive
would make baseurlpath the same as the Alias you've created (provided
the Alias points to the correct file system path, which it did not in
your case).
-peter

Irien Kamaratih

unread,
May 8, 2013, 6:40:58 AM5/8/13
to simple...@googlegroups.com, peter....@univie.ac.at
thank you very much for your help, peter..

that's true, I got wrong on the DocumentRoot
the problems is solved now

thanks :)

Syafiq Ibrahim Shah

unread,
Mar 12, 2014, 3:27:06 AM3/12/14
to simple...@googlegroups.com, peter....@univie.ac.at

could someone please help and tell me what am I missing?cant load the  https://service.example.org/simplesaml/ page.I have changed the base baseurlpath.

Thijs Kinkhorst

unread,
Mar 12, 2014, 7:25:01 AM3/12/14
to simple...@googlegroups.com
On Wed, 12 Mar 2014 00:27:06 -0700 (PDT), Syafiq Ibrahim Shah
<syafiqib...@gmail.com> wrote:
> could someone please help and tell me what am I missing?cant load the
> https://service.example.org/simplesaml/
> page.I have changed the base baseurlpath.

You need to be more specific about "can't load the page" means.


--
Thijs Kinkhorst <th...@uvt.nl> – LIS Unix

Universiteit van Tilburg – Library and IT Services
Bezoekadres > Warandelaan 2 • Tel. 013 466 3035 • G 236

Kyle Belcher

unread,
Mar 12, 2014, 2:30:47 PM3/12/14
to simple...@googlegroups.com, th...@uvt.nl
Hello All,
I'm running into a similar problem where I can't get to the install page of SimpleSAML. My setup is Server 2012 with PHP 5.4.24. I'm pretty sure php is configured on the server properly as I am running another php app (moodle) on this server.

To setup sipmplSAML, I created a new website in IIS that points to the extracted contents of simpleSAML. In my config.php file I have set baseurlpath to 'www/'. When I try to navigate to 'https://mysite/www' (which redirects to "https://mysite/www/module.php/core/frontpage_welcome.php"), I get a page not found error stating "The given page was not found. The reason was: The URL must at least contain a module name followed by a slash." I have attached a SS of the error.

Any ideas on what I've done wrong? Any help is greatly appreciated.

Thanks,
Kyle
samlerror.png

Syafiq Ibrahim Shah

unread,
Mar 13, 2014, 4:46:14 AM3/13/14
to simple...@googlegroups.com, th...@uvt.nl
Hi there,

I have installed simplesamlphp again.still not working,I have screenshot the error.please guide.

 Thanks,

Syafiq

Niels van Dijk

unread,
Mar 13, 2014, 5:08:33 AM3/13/14
to simple...@googlegroups.com
Hi Syafiq,

THis is still an Apache error. Check the error.log of Apache to see what
is wrong. Is alias_module enabled at all?

Cheers,
Niels

On 03/13/2014 09:46 AM, Syafiq Ibrahim Shah wrote:
> Hi there,
>
> I have installed simplesamlphp again.still not working,I have screenshot
> the error.please guide.
>
> <https://lh4.googleusercontent.com/-EGKW0Vd1h0s/UyFwHQoFQ4I/AAAAAAAAAE8/oAK8y1of4qc/s1600/Screen+shot+2014-03-13+at+4.39.44+PM.png>
>
> Thanks,
>
> Syafiq
>
> On Wednesday, 12 March 2014 19:25:01 UTC+8, Thijs Kinkhorst wrote:
>
> On Wed, 12 Mar 2014 00:27:06 -0700 (PDT), Syafiq Ibrahim Shah
> <syafiqib...@gmail.com <javascript:>> wrote:
> > could someone please help and tell me what am I missing?cant load
> the
> > https://service.example.org/simplesaml/
> <https://service.example.org/simplesaml/>
> > page.I have changed the base baseurlpath.
>
> You need to be more specific about "can't load the page" means.
>
>
> --
> Thijs Kinkhorst <th...@uvt.nl <javascript:>> – LIS Unix
>
> Universiteit van Tilburg – Library and IT Services
> Bezoekadres > Warandelaan 2 • Tel. 013 466 3035 • G 236
>
> --
> You received this message because you are subscribed to the Google
> Groups "simpleSAMLphp" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to simplesamlph...@googlegroups.com
> <mailto:simplesamlph...@googlegroups.com>.
> To post to this group, send email to simple...@googlegroups.com
> <mailto:simple...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/simplesamlphp.
> For more options, visit https://groups.google.com/d/optout.

Syafiq Ibrahim Shah

unread,
Mar 13, 2014, 5:49:53 AM3/13/14
to simple...@googlegroups.com

Thank you for the reply.yes,alias module is enabled.Im sorry to be posting all these screenshots.this is my first time using apache.
Im guessing the line "document root does not exist" is the prob?

thanks

syafiq

Jussi Aronen

unread,
Mar 13, 2014, 5:52:39 AM3/13/14
to simple...@googlegroups.com
Could you please remove me from this mailing list.



To unsubscribe from this group and stop receiving emails from it, send an email to simplesamlph...@googlegroups.com.
To post to this group, send email to simple...@googlegroups.com.

Kyle Belcher

unread,
Mar 13, 2014, 1:41:01 PM3/13/14
to simple...@googlegroups.com, th...@uvt.nl
I got it figured out...had a rewrite rule in IIS for a different app on the server that was goofing things up. Once I removed it, all seems happy now.

ecote...@gmail.com

unread,
Nov 1, 2016, 1:18:37 AM11/1/16
to SimpleSAMLphp, peter....@univie.ac.at
This error occurs when session is started and somewhere program throws an error, So session unable to work because it needs the first line of code should be session_start but in error case the first line of code becomes error and session_start comes after error.

shamb...@gmail.com

unread,
Apr 11, 2017, 10:08:19 AM4/11/17
to SimpleSAMLphp, peter....@univie.ac.at
Thanks it works for me!! :)
Reply all
Reply to author
Forward
0 new messages