Problem installing simplesaml as an SP on a 1and1 shared server

400 views
Skip to first unread message

Tatiana MESSIANT

unread,
Oct 16, 2013, 12:13:17 PM10/16/13
to simple...@googlegroups.com
Hello,

I've been trying to install simplesaml package on a 1and1 shared server as a Service Provider and been failing to do so..
Since I am on a shared server, I only have access to one directory to upload the package, and therefore uploaded it under /kunden/homepages/45/d444420859/htdocs/simplesaml_src . I created a symlink called simplesaml linked to simplesaml_src/www folder. I have finally that in my folder (among other files)

lrwxrwxrwx  1 u71366532 ftpusers    18 Oct 16 15:31 simplesaml -> simplesaml_src/www
drwxr-xr-x 19 u71366532 ftpusers  4096 Oct 16 16:33 simplesaml_src

in my config.php file, here's what I have for the baseurlpatg
'baseurlpath'           => 'simplesaml/',

Unfortunately, when I try to access my simplesaml on my site, here's what I have

and in my simplesaml logs : 
Oct 16 18:10:56 simplesamlphp INFO [23fc42cec0] Could not find file '/homepages/45/d444420859/htdocs/simplesaml_src/modules/core/www/frontpage_welcome.php '.
Oct 16 18:10:56 simplesamlphp ERROR [23fc42cec0] SimpleSAML_Error_NotFound: NOTFOUNDREASON('%URL%' => 'http://www.images-oxylane.fr/simplesaml/module.php/core/frontpage_welcome.php', '%REASON%' => 'The URL wasn\'t found in the module.')
+ more errors coming after that, all resulting in what it seems a wrong URL path..

Any ideas what I am doing wrong ?

Thanks !


Thijs Kinkhorst

unread,
Oct 17, 2013, 3:43:22 AM10/17/13
to simple...@googlegroups.com, Tatiana MESSIANT
Op woensdag 16 oktober 2013 18:13:17 schreef Tatiana MESSIANT:
> and therefore uploaded it under
> /kunden/homepages/45/d444420859/htdocs/simplesaml_src .

> Oct 16 18:10:56 simplesamlphp INFO [23fc42cec0] Could not find file
> '/homepages/45/d444420859/htdocs/simplesaml_src/modules/core/www/frontpage
> _welcome.php '.

Above your path starts with /kunden while the path in the error message misses
that component, which would explain why it can't be found. That would be the
place where I'd start to investigate.


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

Universiteit van Tilburg – Library and IT Services • Postbus 90153, 5000 LE
Bezoekadres > Warandelaan 2 • Tel. 013 466 3035 • G 236 • http://www.uvt.nl
signature.asc

Tatiana MESSIANT

unread,
Oct 17, 2013, 4:12:54 AM10/17/13
to simple...@googlegroups.com
Hello Thijs,

Thanks for your reply. 
I agree with you on the wrong path, but where do I have to change this ?

Peter Schober

unread,
Oct 17, 2013, 6:32:16 AM10/17/13
to simple...@googlegroups.com
* Tatiana MESSIANT <tatiana....@oxylane.com> [2013-10-17 09:38]:
> Since I am on a shared server, I only have access to one directory to
> upload the package, and therefore uploaded it under
> /kunden/homepages/45/d444420859/htdocs/simplesaml_src . I created a symlink
> called simplesaml linked to simplesaml_src/www folder. I have finally that
> in my folder (among other files)

Probably unrelated to your specific error but if you have space on
that server to upload to which is /not/ part of the "htdocs" structure
(i.e., is outside the webroot) I'd upload SSP there and only make the
symlimk to src/www inside the htdocs.
That's also necessary for security reasons as otherwise the whole
installation would potentially be accessible via the web (incl. keys).
(In your case the symlink doesn't really buy you much.)
-peter

Thijs Kinkhorst

unread,
Oct 17, 2013, 7:22:00 AM10/17/13
to simple...@googlegroups.com, Tatiana MESSIANT
Op donderdag 17 oktober 2013 10:12:54 schreef Tatiana MESSIANT:
> Thanks for your reply.
> I agree with you on the wrong path, but where do I have to change this ?

The path is determined by the getModuleDir() function in
lib/SimpleSAML/Module.php, which does something like this:

$baseDir = dirname(dirname(dirname(__FILE__))) . '/modules';

I cannot judge from here why that doesn't give a correct path, but you could
experiment a bit with that, set some debug statements to get an idea of where
it goes wrong in your PHP environment. Perhaps it delivers a wrong value for
__FILE__?
signature.asc

Tatiana MESSIANT

unread,
Oct 17, 2013, 11:05:48 AM10/17/13
to simple...@googlegroups.com, peter....@univie.ac.at
Hello Peter,

Yes I usually do that, but the folder  /kunden/homepages/45/d444420859/htdocs/ is the only one I am allowed to write in...

Tatiana MESSIANT

unread,
Oct 17, 2013, 11:12:14 AM10/17/13
to simple...@googlegroups.com, Tatiana MESSIANT, th...@uvt.nl
I changed in _includes.php the following variables : 

/* Initialize the autoloader. */
//require_once(dirname(dirname(__FILE__)) . '/lib/_autoload.php');
require_once('/kunden/homepages/45/d444420859/htdocs/simplesaml_src/lib/_autoload.php');

and 

$configdir = '/kunden/homepages/45/d444420859/htdocs/simplesaml_src/config';

I changed in modules.php 
        //$moduleDir = SimpleSAML_Module::getModuleDir($module) . '/www/';
        $moduleDir = '/kunden/homepages/45/d444420859/htdocs/simplesaml_src/www/';


but I still have the path issue. 

I am starting to think it is impossible to install SimpleSAML on a 1and1 shared server  ..

Thijs Kinkhorst

unread,
Oct 17, 2013, 2:47:45 PM10/17/13
to Tatiana MESSIANT, simple...@googlegroups.com
On Thu, 17 Oct 2013 08:12:14 -0700 (PDT), Tatiana MESSIANT
<tatiana....@oxylane.com> wrote:
> but I still have the path issue.
>
> I am starting to think it is impossible to install SimpleSAML on a 1and1

> shared server ..

I can't say for sure but I do think it's likely that it is in fact
possible. However, I also cannot really effectively debug your installation
from here. I think you just need to add some more debug statements around
the point where it is failing, or ask 1and1 support to help out on this.


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

Universiteit van Tilburg – Library and IT Services
Reply all
Reply to author
Forward
0 new messages