New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

File not found error using Nginx -> Varnish -> Apache -> Php-Fpm

Started by mahmedamin, July 25, 2022, 08:59:15 PM

Previous topic - Next topic

mahmedamin

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!

Starburst

What version OS and CWP?

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

PakPos

re install PHP then rebuild the webserver

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

mahmedamin

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.