Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1107623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:57:51+00:00 2026-05-17T01:57:51+00:00

I am tasked to rebuild four e-learning web applications (PHP MVC) that deal with

  • 0

I am tasked to rebuild four e-learning web applications (PHP MVC) that deal with companies and users that buy/sell and interact with online courses:

  1. The “overlord” application, where company accounts are created, reports are aggregated for all the accounts throughout all the other applications, etc.
  2. The “enterprise” application, where a larger organization manages it’s children companies and has access to aggregated reports for all said companies.
  3. The eCommerce application, where companies and individuals buy and sell the courses.
  4. The “base” application, where a company’s users get to interact with the courses created or bought by their company. Also here is where the users and courses are created, by “instructors”, which are basically users with elevated management rights.

All of these applications have different interfaces of course, and are accessed on different domains.

As of this moment, application 4 is done.

My issue is that the previous developers duplicated a lot of code and only shared the database between applications, resulting in a maintenance mess when something needed to be changed.

The applications have a lot in common. They all deal with the same courses, users and companies, and going from 4 to 1, each application basically gets a bigger picture of what is happening.

For example, in application 4, there are course completion and eCommerce reports for the current company (which only some users can access). Going up to application 2, the reports for companies belonging to the same enterprise are aggregated, and further up, in application 1, the reports for all the enterprises and stand-alone companies are presented. Besides, each has some different piece of unique functionality.

So it seems natural to me that all the applications should share the same models, and each application should have it’s own controllers and views. My questions are:

  1. What would be the best way to do this technically?. The applications are on the same server, each one in a different user’s /home directory, and open_basedir restriction is in effect, with each application only being allowed to include files from it’s directory.

  2. What are the security implications should I relax the open_basedir restrictions and allow the inclusion of files from the models’ location? We own the server, so making any changes is not a problem (although running Plesk means that we should do every configuration from it’s interface).

  3. How could I configure the domains?

  4. I now “it depends”, but is this actually a good idea? I can see that there is a risk of overcrowding the models with functionality for all the applications (although I will surely separate applications logic where necessary).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:57:51+00:00Added an answer on May 17, 2026 at 1:57 am

    If the applications are on the same server. i would make the a master account for one of those domains and park the rest of the domains on top of that.
    and have the application determine witch applications needs loading based on the domain.

    Also you could go for this structure

    -- public_html
    -----index.php ( main app )
    -----/domain2
    ---------index.php 
    -----/domain3
    ---------index.php 
    -----/domain4
    ---------index.php 
    
    -- application ( folder for common code )
    ---- models
    
    -- applications ( folder for app. specific code )
    ---- application1 
    ------- controllers
    ------- views
    

    And you park the domains on the folders domain1, domain2 etc … and in that index you could set the models, controllers and views path accordingly.
    This way you have a way of accessing the application with ought the domain ( for local, testing enviroments ).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im tasked to create a virtual database that clients can create from our web
I'm currently tasked with replacing an Apache + Resin Java web server with a
I've been tasked with the the maintenance of a nonprofit website that recently fell
I've been tasked with updating a series of applications which are performance critical VB.NET
I have been tasked by a client to rebuild an E-Commerce platform. The goal
We are tasked with creating a reporting frameworks that does the following. Clients can
I am tasked with writing a WPF app that performs crud on 100 or
I have been tasked to look after an ASP.Net WebForms application that communicates with
I was recently tasked with coming up with an offsite backup strategy. We have
I've been tasked (by my wife) with creating a program to allow her to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.