SimpleSAMLphp install like phpMyAdmin

Discussion in 'Server Operation' started by SupportMyster, Mar 31, 2021.

  1. SupportMyster

    SupportMyster New Member

    I would like to install SimpleSAMLphp like phpMyAdmin in ISPConfig3. All my sites will use the same ADFS IDP so I want to setup a SP once for all my sites to use. I have installed via apt and a2enconf the simplessamlphp.conf for Apache and restarted. I followed the SimpleSAMLphp docs to configure it. I continue to get a 500 server error when I try to access the page.

    I enabled debug logging in SimpleSAMLphp but no log is generated.

    I see the 500 in the Apache error log and the call to access the simplesamlphp url but nothing else it the logs to lead me down a troubleshooting path.

    I did see where someone had to delete the Alias and create a symlink but they had it working and were having session problems. There was also a suggestionin the same thread about base_url restrictions. I added /usr/share/simplesamlphp/www to base_url for the server but still getting the error.

    Any assistance greatly appreciated,
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Could you share the Apache log?
     
  3. SupportMyster

    SupportMyster New Member

    Nothing in access.log or error.log
    From apache/other_vhost file
    <host>:443 <my ip> - - [31/Mar/2021:08:02:14 -0400] "GET /simplesamlphp/ HTTP/1.1" 500 5040 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36"
    <host>:443 <my ip> - - [31/Mar/2021:08:19:20 -0400] "GET /simplesamlphp/ HTTP/1.1" 500 5040 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36"
    <host>:443 <my ip> - - [31/Mar/2021:08:38:43 -0400] "GET /simplesamlphp HTTP/1.1" 301 5218 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0"
    <host>:443 <my ip> - - [31/Mar/2021:08:38:44 -0400] "GET /simplesamlphp/ HTTP/1.1" 500 198 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0"
    <host>:443 <my ip> - - [31/Mar/2021:09:39:47 -0400] "GET /simplesamlphp/ HTTP/1.1" 500 5040 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36"
    <host>:443 <my ip> - - [31/Mar/2021:09:39:51 -0400] "GET /simplesamlphp/ HTTP/1.1" 500 5040 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36"
    <host>:443 <my ip> - - [31/Mar/2021:09:39:56 -0400] "GET /simplesamlphp/ HTTP/1.1" 500 350 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36"
     
  4. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Check your php log, if php dies you'll get an error there and apache will return a 500.
     
  5. SupportMyster

    SupportMyster New Member

    From php7.0-fpm.log
    [29-Mar-2021 06:25:15] NOTICE: error log file re-opened
    [29-Mar-2021 21:51:42] NOTICE: Terminating ...
    [29-Mar-2021 21:51:42] NOTICE: exiting, bye-bye!
    [29-Mar-2021 21:51:43] NOTICE: configuration file /etc/php/7.0/fpm/php-fpm.conf test is successful

    [29-Mar-2021 21:51:43] NOTICE: fpm is running, pid 23980
    [29-Mar-2021 21:51:43] NOTICE: ready to handle connections
    [29-Mar-2021 21:51:43] NOTICE: systemd monitor interval set to 10000ms
    [29-Mar-2021 21:51:45] NOTICE: Terminating ...
    [29-Mar-2021 21:51:45] NOTICE: exiting, bye-bye!
    [29-Mar-2021 21:51:46] NOTICE: configuration file /etc/php/7.0/fpm/php-fpm.conf test is successful

    [29-Mar-2021 21:51:46] NOTICE: fpm is running, pid 24415
    [29-Mar-2021 21:51:46] NOTICE: ready to handle connections
    [29-Mar-2021 21:51:46] NOTICE: systemd monitor interval set to 10000ms

    This is the entire log. Only php log I see. Is there another I should check?

    Thanks,
     
  6. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    That's probably the correct log if php7.0-fpm is your default php interpreter for websites (and your SimpleSAMLphp config doesn't specify something else). You might verify that is the case.

    For blind guesses, add /usr/share/simplesamlphp/www or /usr/share/simplesamlphp to your open_basedir setting; though where to do that (which php.ini) depends on the php version/mode you're using, so you'll need to determine that first.
     
  7. SupportMyster

    SupportMyster New Member

    Darn Prereq's. Says >= 7.1.0 and it seems I am running 7.0. I will look to correct that and try again. Thank you for your time in re-teaching me to RTFM. :)
     

Share This Page