Control Web Panel

WebPanel => PHP => Topic started by: mahmedamin on July 25, 2022, 08:59:15 PM

Title: File not found error using Nginx -> Varnish -> Apache -> Php-Fpm
Post by: mahmedamin on July 25, 2022, 08:59:15 PM
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 (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!
Title: Re: File not found error using Nginx -> Varnish -> Apache -> Php-Fpm
Post by: Starburst 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.
Title: Re: File not found error using Nginx -> Varnish -> Apache -> Php-Fpm
Post by: PakPos 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
Title: Re: File not found error using Nginx -> Varnish -> Apache -> Php-Fpm
Post by: mahmedamin 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.