Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | Nächste ÜberarbeitungBeide Seiten der Revision | ||
content:apache_phpfpm [2021/10/14 14:42] – [Howto setup a LAMP-Server in 2018-2020] Daniel | content:apache_phpfpm [2022/03/02 18:39] – [Tell Apache to use php-fpm] Daniel | ||
---|---|---|---|
Zeile 222: | Zeile 222: | ||
* To enable this and all its dependencies, | * To enable this and all its dependencies, | ||
- | < | ||
- | sudo a2enmod setenvif rewrite proxy proxy_fcgi | + | < |
+ | sudo a2enmod setenvif | ||
+ | sudo a2enmod | ||
+ | sudo a2enmod | ||
+ | sudo a2enmod | ||
</ | </ | ||
Zeile 235: | Zeile 238: | ||
# Don't use " | # Don't use " | ||
# This is to forward all PHP to php-fpm | # This is to forward all PHP to php-fpm | ||
- | < | + | < |
- | | + | SetHandler " |
- | </ | + | </ |
+ | DirectoryIndex index.php | ||
# Don't use " | # Don't use " | ||
# <Proxy fcgi:// | # <Proxy fcgi:// | ||
- | <Proxy fcgi:// | + | <Proxy fcgi:// |
- | #6 Hours = 21600 | + | |
- | #Make this high, as upload will stop after that amount of time | + | |
- | ProxySet connectiontimeout=30 timeout=21600 | + | |
- | </ | + | </ |
- | # If the php file doesn' | + | # If the php file doesn' |
- | # This will allow .htaccess rewrite rules to work and | + | # This will allow .htaccess rewrite rules to work and |
- | # the client will see the default 404 page of Apache | + | # the client will see the default 404 page of Apache |
- | | + | RewriteCond %{REQUEST_FILENAME} \.php$ |
- | | + | RewriteCond %{DOCUMENT_ROOT}/ |
- | | + | RewriteRule (.*) - [H=text/ |
</ | </ | ||
+ | |||
==== Start and check Apache ==== | ==== Start and check Apache ==== |