How to use the advanced template in the shared hosting

In my opinion, almost all applications should use the advanced template, since it provides the right project structure from the very start, so as to immediately handle frontend and backend occurring in every web project.

However, we have also seen that the advanced template requires a console access to execute installation and initialization commands. So, if we have a remote hosting without this capability, it could be difficult for us to install and use Yii with the advanced template.

If we cannot add the console capability to remote hosting, we have two possibilities:

  • Create the project in the local environment where we can install what we want and need; it is enough to locally install a WAMP or a LAMP distribution (based on the operating system of the hosting machine) and then launch the composer command to install Yii
  • Launch the init command to initialize the project (it could be initialized from start in production mode so that no other changes are needed)

Therefore, the project is ready to be uploaded to remote hosting. Remember that project environment is in production mode, but in this way, we do not have to change the configuration manually if we want to pass from development to production mode.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.111.9