[ixpmanager] NGINX vs Apache
Pete Ashdown
pashdown at xmission.com
Fri Apr 11 01:33:56 IST 2025
> On Apr 10, 2025, at 2:22 PM, Barry O'Donovan (INEX) <barry.odonovan at inex.ie> wrote:
>
> On a standard install, there should be no issues. Apache is considerably easier than Nginx which is why we default to that in the documentation / installers.
>
> With Apache, you install the Apache PHP module (e.g., libapache2-mod-php8.0) and PHP scripts tend to “just work”. With Nginx, you need to install, e.g., php8.0-fpm, which runs as its own process and then you need to configure Nginx to pass PHP requests off to that daemon.
>
> On systems running the latest 6.x release of IXP Manager and Nginx, I could not replicate your issue. As such, and because I use Nginx all the time also, I’d be fairly confident this is a local issue of some sort.
>
> I do note from your issues that you are running php 8.3. I only run php8.0 or php8.1 with IXP Manager v6.x. I’m not suggesting there would be an issue with 8.3, I just simply do not know.
This was the issue I opened up prior regarding embedding images:
https://github.com/issues/created?q=is%3Aissue++archived%3Afalse+author%3A%40me+sort%3Aupdated-desc+&issue=inex%7CIXP-Manager%7C917
I am running php 8.1 on Apache2 now, but I still had my NGINX configs, so I tried a quick swap. The bug came back with NGINX and php 8.1. My config doesn’t differ from yours. Very odd bug. In any case, I think I’m going to stick with Apache2, so this isn’t a big deal.
Here’s the relevant config for nginx:
server_name ixp.slix.net;
root /srv/ixpmanager/public;
# Add index.php to the list if you are using PHP
index index.php;
location / {
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php-fpm.sock;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20250410/b51dadeb/attachment.htm>
More information about the ixpmanager
mailing list