Apache with PHP-FPM not working

8,251

Solution 1

Finally I had found a tutorial that fix the permission problem. I use Ubuntu but this tutorial still works.

Solution 2

I needed to run to make it working:

a2enconf php7.4-fpm

https://www.linuxbabe.com/ubuntu/enable-http-2-apache-ubuntu-20-04

Share:
8,251

Related videos on Youtube

Hartman
Author by

Hartman

Updated on September 18, 2022

Comments

  • Hartman
    Hartman almost 2 years

    I am following this and this article to setup apache2 and php5-fpm under Ubuntu 14.04, but it always return a HTTP 403 when I run phpinfo(), how do I fix it?

    I didn't edit the virtual host configuration file, but I add a file under /etc/apache2/conf-available call php5-fpm.conf.

    php5-fpm.conf:

    <IfModule mod_fastcgi.c>
        AddHandler php5-fcgi .php
        Action php5-fcgi /php5-fcgi
        Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
        FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization
    </IfModule> 
    
  • A.L
    A.L over 2 years
    Thanks for the link, I needed to run sudo a2enmod proxy_fcgi so that the proxy worked.