Jump to content

I need some help with php7 apache and mpm please


Guest
Go to solution Solved by Guest,

Recommended Posts

I am trying to get mpm with php7 going I have apache in worker mode now and in my apache.conf I have this

<IfModule mod_fastcgi.c>
        AddHandler php7-fcgi .php
        Action php7-fcgi /php7-fcgi
        Alias /php7-fcgi /usr/lib/cgi-bin/php7-fcgi
        FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi -socket /var/run/php/php7.0-fpm.sock -pass-header Authorization
</IfModule>

when I load a page it says

Forbidden

You don't have permission to access /php7-fcgi/test.php on this server.

 

Its following the alias path and im not sure what this is do I have to set it manually to the absolute path for each virtual host? is there a way I can make it work across the board?

 

Thanks

Link to comment
Share on other sites

I added this to the apache.conf

    <Directory /usr/lib/cgi-bin>
        Require all granted
    </Directory>

and I think that gets me a bit further but now it sits there for a long time and gives a 500 error in the apache error log I see

[Thu Aug 11 07:45:13.043220 2016] [fastcgi:error] [pid 11579:tid 139675982276352] [client 71.1.15.53:50752] FastCGI: comm with server "/usr/lib/cgi-bin/php7-fcgi" aborted: idle timeout (30 sec)
[Thu Aug 11 07:45:13.043247 2016] [fastcgi:error] [pid 11579:tid 139675982276352] [client 71.1.15.53:50752] FastCGI: incomplete headers (0 bytes) received from server "/usr/lib/cgi-bin/php7-fcgi"

not sure what to do now

Link to comment
Share on other sites

  • Solution

I figured it out! It was php was set to only have 5 servers and I was going over that so I guess they were pooling up I made it so it can do more and problem solved!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.