Welcome Guest, Not a member yet? Register   Sign In
CI4 on shared hosting return error 500
#10

(This post was last modified: 03-03-2020, 09:26 PM by John_Betong.)

@Waithere,
> And .htaccess removed (to avoid the 500 error).

The main purpose of the .htaccess file is to redirect every URL to the index.php file. Redirection requires the apache2 "mod_rewrite.c" module to be loaded. If it is not loaded then redirection and pretty URLs will not work. It will be necessary to call "index.php?routing-parameters". .htaccess file is also used to set the either "production", "development" or "test" modes.

Once the Welcome_message page is rendered correctly then try to get logging to create the log file.

Try and introduce PHP errors and see what effect they have on rendering pages and the log items.

The log file can be safely deleted if there are too many entries. A new log file will be created with new errors, warnings or debug entries are raised.
Reply


Messages In This Thread
RE: CI4 on shared hosting return error 500 - by John_Betong - 03-03-2020, 09:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB