I have a basic framework application application to deploy to SiteGround.com, which I have read does support Yii, although they have no help documents on their site about it. Per the Shared Hosting article in the Yii2 guide, I need to rename my web root from “web” to “public_html”, the name they use for the web folder. So I’m trying to do that on my local host to test before uploading, but it seems I’m missing a step.
I should mention that my local machine is Windows 10 with IIS as the web server, but I’m pretty sure that SiteGround.com is running Apache, so I have the limitation that I can’t try all of this configuration stuff on my local machine. Nevertheless, I’m trying to change and test as much as I can locally before uploading.
So I renamed my local “web” folder to “public_html”, but now when I start the Yii server (
php yii serve --port=8082 on the Windows command line), it responds with
Document root “C:\Users\Dell\Documents\GitHub\BPSETracker/web” does not exist.
I guess I have to change something in a configuration file somewhere, but I can’t find where that is. I’ve searched the Guide, these forums, and the general internet, but come up with nothing that seems relevant. What am I missing?
OR, should I keep it as “web” and do something with .htaccess files? (I’m not very familiar with Apache and .htaccess, but I can educate myself if you tell me that’s the direction I need to go.)
Thanks in advance!