first we edit the .env file with
# DEFAULT connection group
database.default.hostname = localhost
database.default.database = codeigniter_db1
database.default.username = myuser
database.default.password = Myuser@123
(tested on Ubuntu 22.04 and Apache 2.4.52)
PREMISES:
/appname/public
folder which is the one to browseappaname.box
which later will allow to browse to http://appname.box
/etc/apache2/sites-available