Author Topic: File not found error using Nginx -> Varnish -> Apache -> Php-Fpm  (Read 2438 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Hello everyone!

I am using Nginx > Varnish > Apache for serving websites.

But when I am trying to use php-fpm with the above server setting, I am getting "File not found" / 404 error

I am using the default template
Snapshot link: https://drive.google.com/file/d/1OhOJ_Nyr03ekBpEwsGVvAuFCJ-3bilEP/view?usp=sharing

Note:
when I change the file extension to '.html', it works fine, the issue only persists when the file extension is '.php'

Please help!
« Last Edit: July 25, 2022, 09:05:02 PM by mahmedamin »

Offline
****
Re: File not found error using Nginx -> Varnish -> Apache -> Php-Fpm
« Reply #1 on: July 26, 2022, 03:14:58 PM »
What version OS and CWP?

If HTML works OK, but not PHP, sounds more like a bug somewhere.

Offline
***
Re: File not found error using Nginx -> Varnish -> Apache -> Php-Fpm
« Reply #2 on: July 26, 2022, 05:26:23 PM »
re install PHP then rebuild the webserver

i dont know if there is any 1 click to install php + rebuild webserver

Offline
*
Re: File not found error using Nginx -> Varnish -> Apache -> Php-Fpm
« Reply #3 on: July 27, 2022, 06:38:29 AM »
The issue was resolved by changing php-fpm version from 7.4.1 to 7.4.30

I think the issue existed in that version.

Thanks.