Welcome Guest, Not a member yet? Register   Sign In
CI4 on AppService Azure with PHP 8 & nginx
#1

Hi,

I'm trying to install CI4 (composer) on Azure AppService with Linux and PHP 8.0.

I saw that with this combination: AppService + PHP8 --> Azure use nginx instead of apache.

I've read this guide to setup rewrite: https://azureossd.github.io/2021/09/02/p...index.html and now the default page of CI4 works fine, but the problem is that other routes get a nginx 404 not found (in other hosting like "plesk" works perfect)


if someone has configured CI4 in Azure appService + Linux + PHP 8 with nginx, please shared the config with me..



Regards!
Reply
#2

Hi all,

I find the problem!!!

I've a internal error 500 in CI and in the nginx file have a redirect to page that do not exists.

Fixed commented nginx redirecto 500 error.
Reply
#3

I'm having the same issue, I get 404 not found if i don't put index.php.

How did you solve your problem in azure?
Reply
#4

(This post was last modified: 07-08-2023, 11:47 PM by AffekeNommu.)

(12-15-2021, 04:54 AM)nicojmb Wrote: Hi all,

I find the problem!!!

I've a internal error 500 in CI and in the nginx file have a redirect to page that do not exists.

Fixed commented nginx redirecto 500 error.
My dude. Your cryptic response was correct. 
The default config in Azure has a section for 500 errors that has an invalid URL which bombs out CI4.
Hose the section for the 500, copy to the live location and the site comes to life.

The section I removed was:
Code:
    # redirect server error pages to the static page /50x.html
    #
    error_page  500 502 503 504  /50x.html;
    location = /50x.html {
        root  /html/;
    }
Reply




Theme © iAndrew 2016 - Forum software by © MyBB