Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SimpleSAMLphp installation in Windows Apache

I want to install SimpleSAMLphp in windows Apache/Xampp. Let me tell you what did so far: 1. I have downloaded latest stable version from https://simplesamlphp.org/download and placed the unzipped file in Apache folder, i.e. C:\Apache24\simplesamlphp directory contains composer.json. I have downloaded dependencies as well. 2. Now when I am going to setup the vhost as shows in the site 6. Configuring Apache section as

<VirtualHost *:80>
        ServerName localhost
        DocumentRoot C:/Apache24/htdocs
</VirtualHost>

<VirtualHost *:80>
        ServerName service.example.com
        DocumentRoot C:/Apache24/service.example.com

        Alias /simplesaml C:/Apache24/simplesamlphp/www
</VirtualHost>
  1. Changed the config file.

Now the problem: I am unable to open the Alias in browser. And running httpd.exe in browser shows error about the example.com does not exist.

Need help if anyone have setup SimpleSAMLphp in Windows, please share your steps and vhosting configurations. It would help I think lot of peoples.

Thanks in advance.

like image 471
aniruddha Avatar asked Jun 27 '15 06:06

aniruddha


2 Answers

I am sorry, that I was doing some mistake... I am going to add one vhost, rather in Windows Xampp, there is one file /xampp/apache/conf/extra/httpd-xampp.conf. Need to add one Alias below /phpmyadmin statement:

Alias /simplesaml "C:/xampp/simplesamlphp/www"
<Directory "C:/xampp/simplesamlphp/www">
        AllowOverride AuthConfig
        Require all granted
</Directory>

Now restart server and hit http://localhost/simplesaml/ and all you go...

All windows xampp users if faced configure simplesaml...might be helped.

like image 136
aniruddha Avatar answered Nov 14 '22 12:11

aniruddha


For anyone else who is trying to set up SimpleSAMLphp on a Window's version of xampp, here are the steps I took to get it running.

  1. Install xampp. For this example, I've installed to: "c:\xampp"

  2. Download and unzip SimpleSAMLphp to htdocs folder ("c:\xampp\htdocs\simplesamlphp"). It will probably extract with version numbers appended to the end, so I've renamed the folder to 'simplesamlphp' in this example.

  3. Add the alias and directory from the answer above into the httpd-xampp.conf file, but change both "C:/xampp/simplesamlphp/www" to "C:/xampp/htdocs/simplesamlphp/www".

  4. Start Apache server and in your browser, go to: "localhost/simplesaml" This assumes that there are no exotic entries in your hosts file.

You should now see the SimpleSAMLphp Installation Page.

like image 3
Brandon Avatar answered Nov 14 '22 13:11

Brandon