SimpleSAMLphp : 使用 Wamp 安装 localhost

SimpleSAMLphp : installation localhost with Wamp

我尝试使用 WampServer 在我的本地主机上安装 SimpleSAMLphp,所以我遵循此页面上的教程:https://simplesamlphp.org/docs/stable/simplesamlphp-install

但是当我完成并尝试访问我的安装主页时,我收到此消息:“禁止访问 您无权访问此服务器上的 /。"

我知道它来自我的 apache 配置,但我不知道如何修复它。

我把这一行放在我的文件中 httpd.con :

<VirtualHost *>
        ServerName localhost:80
        DocumentRoot /var/www/localhost:80

        Alias /simplesaml /var/simplesamlphp/www
</VirtualHost>

我把我下载的所有文件放在 https://simplesamlphp.org 路径 C:/wamp/www/var/simplesamlphp/

我尝试更改我的文件配置 httpd.con 但我仍然遇到同样的错误。

================ 第二 post ==============

经过多次尝试不同的配置后,我仍然不明白为什么它不起作用,但我有新的元素。

我 return 到基本文件 httpd.con 我只是取消注释行:Include conf/extra/httpd-vhosts.conf 我在文件 httpd-vhosts.conf 中添加这行:

<VirtualHost *:80>
        ServerName localhost:80
        DocumentRoot "c:/wamp/www/<myWebSite>"

        Alias /simplesaml c:/wamp/www/var/simplesamlphp/www/
</VirtualHost>

但现在当我进入页面 localhost/simplesaml 时,我收到了这条消息:page in inaccessible

所以我尝试在以下路径交换索引文件:C:\wamp\www\var\simplesamlphp\www

并且新文件工作(如果我尝试只是做一个回显 "toto")

所以我迷路了。

尝试检查您的 PHP 版本。