No input file specified (php-fpm + apache + redhat)

154 views
Skip to first unread message

Kudzo ELO

unread,
Apr 16, 2024, 10:52:39 AM4/16/24
to SimpleSAMLphp
Hello, it is me again :) If not appropriate, I will remove the post, thanks for your understanding!

I am installing the library with php-fpm and apache on a redhat server. After the installation, I tring to go https://mywebsite.com/simplesaml I am being redirected to 
https://mywebsite.com/simplesaml/module.php/core/frontpage_welcome.php and getting an error "No input file specified" . I am more than sure this should be an apache configuration issue but if anyone could help I really appreciate.

There is one rule for mod_rewrite for apache :
ProxyPassMatch ^/(.*\.php)$  fcgi://X.X.X.X/$1

I saw someone posted something similar and said he solved it using  cgi.fix_pathinfo=1 in php.ini file..Not working for me unfortunately. 

Thanks again 



Tim van Dijen

unread,
Apr 17, 2024, 3:55:37 AM4/17/24
to SimpleSAMLphp
Hi!

I have the exact same setup and have it working with this configuration:

    <FilesMatch \.php$>
        SetHandler "proxy:unix:/var/opt/remi/php83/run/php-fpm/<name-of-pool>.sock|fcgi://localhost/"
    </FilesMatch>

Op dinsdag 16 april 2024 om 16:52:39 UTC+2 schreef elok...@gmail.com:

Kudzo ELO

unread,
Apr 17, 2024, 8:15:06 AM4/17/24
to SimpleSAMLphp
Hello Tim thanks for taking the time to reply. I added the code you shared, removed the  ProxyPassMatch, set correctly the open_basedir and doc_root also in php-fpm pool config and everything worked perfectly.
Best

Reply all
Reply to author
Forward
0 new messages