I have developed Yii2 CRUD application using models, controllers and views. It is used locally on PC. I wanted the users to use it online. For eg. I have www.example.com and I wanted to make this yii2 CRUD application available on this site. What are the steps?
Upload the project directory to your web server and point the directory root to it. For instance, if you are using Yii2 basic and have a directory called example.com in your home directory "/home/example.com/web". Assuming you have an Apache web server this will require you to have access to httpd.conf or httpd-vhosts.conf files (or the equivalent, depending on your host) - depending on if you use a virutal host to have sub-domains.
Edit the [virtual] host file(s) to point to the ‘web’ directory.
I can’t walk you through how to edit your host files. It varies depending on your host provider and hosting type (shared, VPS, metal). You will need to look that up yourself.