Skip to main content

Easy Apache 4 with FPM --> 'Primary script unknown' error

Comments

19 comments

  • kawasakai
    I enabled debug logging for LogLevel debug proxy_fcgi_module:debug LogLevel debug proxy_module:debug
    [Thu Oct 22 15:59:20.791877 2015] [authz_core:debug] [pid 16065:tid 139750571280128] mod_authz_core.c(835): [client 212.218.65.185:49935] AH01628: authorization result: granted (no directives) [Thu Oct 22 15:59:20.791997 2015] [proxy_fcgi:debug] [pid 16065:tid 139750571280128] mod_proxy_fcgi.c(84): [client 212.218.65.185:49935] AH01060: set r->filename to proxy:fcgi://127.0.0.1:9000/info.php [Thu Oct 22 15:59:20.792052 2015] [proxy:debug] [pid 16065:tid 139750571280128] mod_proxy.c(1159): [client 212.218.65.185:49935] AH01143: Running scheme fcgi handler (attempt 0) [Thu Oct 22 15:59:20.792060 2015] [proxy_fcgi:debug] [pid 16065:tid 139750571280128] mod_proxy_fcgi.c(879): [client 212.218.65.185:49935] AH01076: url: fcgi://127.0.0.1:9000/info.php proxyname: (null) proxyport: 0 [Thu Oct 22 15:59:20.792064 2015] [proxy_fcgi:debug] [pid 16065:tid 139750571280128] mod_proxy_fcgi.c(886): [client 212.218.65.185:49935] AH01078: serving URL fcgi://127.0.0.1:9000/info.php [Thu Oct 22 15:59:20.792074 2015] [proxy:debug] [pid 16065:tid 139750571280128] proxy_util.c(2147): AH00942: FCGI: has acquired connection for (*) [Thu Oct 22 15:59:20.792081 2015] [proxy:debug] [pid 16065:tid 139750571280128] proxy_util.c(2200): [client 212.218.65.185:49935] AH00944: connecting fcgi://127.0.0.1:9000/info.php to 127.0.0.1:9000 [Thu Oct 22 15:59:20.792108 2015] [proxy:debug] [pid 16065:tid 139750571280128] proxy_util.c(2409): [client 212.218.65.185:49935] AH00947: connected /info.php to 127.0.0.1:9000 [Thu Oct 22 15:59:20.792240 2015] [proxy:debug] [pid 16065:tid 139750571280128] proxy_util.c(2786): AH02824: FCGI: connection established with 127.0.0.1:9000 (*) [Thu Oct 22 15:59:20.793142 2015] [proxy_fcgi:error] [pid 16065:tid 139750571280128] [client 212.218.65.185:49935] AH01071: Got error 'Primary script unknown\n' [Thu Oct 22 15:59:20.793224 2015] [proxy:debug] [pid 16065:tid 139750571280128] proxy_util.c(2162): AH00943: FCGI: has released connection for (*)
    Nevertheless the output doesn't help me any further. I suspected the error at the ProxyPassMatch directive but it seems to be correct.
    0
  • JacobPerkins
    Interesting, I hadn't came across these issues. Any chance you'd be available to put in a ticket and allow us access to the server to check this out? You can use the links in my signature to open a ticket, and then you can put in the subject or ticket 'Escalate to Jacob Perkins', and I'll be able to assist. Thanks!
    0
  • kawasakai
    You can use the links in my signature to open a ticket, and then you can put in the subject or ticket 'Escalate to Jacob Perkins', and I'll be able to assist. Thanks!

    Thx, I just submitted a ticket.
    0
  • kawasakai
    The error was found by the support team. I switched with /usr/local/cpanel/bin/rebuild_phpconf to fpm from cgi. But actually cgi is the right setting there. (Since the fpm profile seems to add its own ProxyPassMatch directive which gets matched before the virtualhost specific ProxyPassMatch directive.)
    0
  • kawasakai
    Btw. is it planned to automate that process of creating the pools and stuff described at Configure PHP-FPM with User Pools for EasyApache 4 - cPanel Knowledge Base - cPanel Documentation ?
    0
  • JacobPerkins
    HI Kawasakai, We're looking at expanding FPM support w/EA4 in the next release or two. We're still working on stabilization of EA4, but once we're complete with that and all the refactors, we'll be working on expanding support.
    0
  • kawasakai
    Okay, great :)
    0
  • captainpajamas
    Any fix to this yet? I'm having the same "file not found" error when using FPM and easyapache4 and can't use DSO since it's buggy.
    0
  • sparek-3
    Switching to cgi handler solved this for me. Using the properly configured ProxyPassMatch directive in the VirtualHost will forward php requests through the FPM.
    0
  • ribo
    Is there any guide for this please?
    0
  • captainpajamas
    Switching to cgi handler solved this for me. Using the properly configured ProxyPassMatch directive in the VirtualHost will forward php requests through the FPM.

    How is that done using the cgi handler?
    0
  • sparek-3
    How is that done using the cgi handler?


    /usr/local/cpanel/bin/rebuild_phpconf --default=ea-php56 --ea-php56=cgi
    0
  • ribo
    Yes i saw that but i am confused in
    cp www.conf $.conf
    i put my user and is says that no such file or directory
    0
  • ribo
    i am a little confused. for example $ must write $user ?
    0
  • JacobPerkins
    i am a little confused. for example $ must write $user ?

    Hi, $ is meant to be a 'variable', meaning you replace the full '$' with the actual username of the account you're creating the pool for. This is done in multiple places, so be ware. Also, this is more of an advanced configuration. If you're not comfortable troubleshooting with the command line and troubleshooting Apache / FPM, I'd recommend holding off until we provide expanded support for FPM. Thanks for testing out EA4!
    0
  • ribo
    i tryed and unfortunately it stays in cgi/fcgi
    0
  • ribo
    I have a question please. Suphp must be removed to work php fpm?
    0
  • cPanelMichael
    I have a question please. Suphp must be removed to work php fpm?

    Could you elaborate on if you mean uninstalled through EasyApache or configured as a PHP handler? Thank you.
    0

Please sign in to leave a comment.