Welcome Guest, Not a member yet? Register   Sign In
managing multiple application on single codeigniter installation
#1

hi,
I am trying to configure, multiple apps on single codeigniter 4 installation.
I followed: https://codeigniter.com/user_guide/general/managing_apps.html
and able to run my multiple apps on localhost. but on live server it gives the following error:

Quote:Error 403 - Forbidden
You tried to access a document for which you don't have privileges.
I have changed only the $systemDirectory in app\config\Paths.php and it worked on localhost.
Can anyone help?
br
Muhammad Nadeem
Reply
#2

Hi see https://github.com/kenjis/codeigniter4-m...pps-sample
Reply
#3

do not use one framework installation for multiple applications. This is bad practice.
Reply
#4

It is officially supported.
https://codeigniter.com/user_guide/gener...stallation

What's wrong with it?
Reply
#5

Just because a framework supports it doesn't mean it's a good solution.

Once upon a time, shared hosting had a limit on the occupied space and the number of files.
In this case, such an approach would be relevant, but now there are no such restrictions. Therefore, Symfony abandoned such a feature.

In addition, using the composer, this can lead to conflicting versions of packages. And when updating the framework, you will have to update all applications.

This approach is a chance to shoot yourself in the foot.
Reply
#6

(This post was last modified: 02-07-2023, 10:30 PM by nadeem14375.)

(02-07-2023, 08:26 PM)iRedds Wrote: Just because a framework supports it doesn't mean it's a good solution.

Once upon a time, shared hosting had a limit on the occupied space and the number of files.
In this case, such an approach would be relevant, but now there are no such restrictions. Therefore, Symfony abandoned such a feature.

In addition, using the composer, this can lead to conflicting versions of packages. And when updating the framework, you will have to update all applications.

This approach is a chance to shoot yourself in the foot.

Yes, you are right. I am just playing. Its not for production purpose.

(02-07-2023, 04:28 AM)kenjis Wrote: It is officially supported.
https://codeigniter.com/user_guide/gener...stallation

What's wrong with it?

Its solved. There were some problem on hosting side.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB