I am trying to adapt SimpleSAMLPHP for my Codeigniter app. However when I try to access the admin console located in third_party/simplesaml/www/index.php, I get an Internal Error Message while the url is
https://url.com/simplesaml/module.php/core/frontpage_welcome.php
Is there a way to properly access the index page? For some reason it keeps redirecting to this link and it won't load. Please help.
My Internal Error Message is just this
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@website.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Nothing appears in the log
This is my controller code
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class SAMLConfig extends CI_Controller {
public function __construct() {
parent::__construct();
$this->verify_admin_session();
}
public function index()
{
$data = array();
// $this->load->library('simplesaml');
include APPPATH.'third_party/simplesaml/www/index.php';
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
// $data['action'] = "SAMLConfig";
}
}
UPDATE: I am suspecting that my htaccess file may have something to do with it. Here it is
#RewriteEngine on
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ index.php/$1 [L,QSA]
#RewriteCond %{HTTPS} off
#RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
#RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#THIS LINE ALLOWS BASIC AUTH FOR REST DO NOT DELETE#
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteRule (.*?)index\.php/*(.*) App/$1$2 [R=301,NE,L]
# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_URI} !^/php-fpm/*
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ App/index.php/$1 [L]
</IfModule>