Hi Team, My software: ubuntu 20.04, apache 2.4.41, php 7.4, codeigniter 3.1.16I have an app which works fine with mpm_prefork and mod_php7.4. However, in anticipation of a lot of concurrent sessions I have just looked at improving performance and using memory more efficiently by changing to
mpm_event with php-fpm and fastcgi. Following DigitalOcean instructions it all appeared to install ok. apachectl -t showed Syntax OK.I can see the socket being created (owned by www-data) and the php7.4-fpm service starts successfully.
However when I try to run my app it fails to show my home page. It does run codeigniter because it renders a screen from one of the autoloaded files. But when it gets to index.php nothing happens. I can see in the browser tools and server fpm pool
log a "GET /index.php" so something appears to be stopping it!I read an article that suggested url rewriting was "tricky" with fastcgi and the recommended .htaccess (in docroot) is:
=================================== Options -Indexes +FollowSymLinks RewriteEngine On #RewriteBase / # exclude any paths that are not codeigniter-app related RewriteCond %{REQUEST_URI} !^/server-status RewriteCond %{REQUEST_URI} !^/server-info RewriteCond %{REQUEST_URI} !^/docs RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d <IfModule mod_php5.c> RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> # the following is for rewritting under FastCGI <IfModule !mod_php5.c> RewriteRule ^(.*)$ index.php?/$1 [L] </IfModule> ============================================Still no joy. Having run out of ideas I am seeking any advice on what I might be missing please? Hopefully it is something simple so I can take advantage of the fpm solution.
Thx Paul --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx