Reputation: 13
Using Yii2 Basic. I am trying to tidy-up my Yii2 installation and wish to place the main working files and folders into a sub directory on my co-hosted production server called, say, "yii2basic". I then need to place all the files and folders from the web folder into public_html on the server.
As far as I can ascertain, I only need to change the the following lines in the index.php file like so:
require(__DIR__ . '/../yii2basic/vendor/autoload.php');
require(__DIR__ . '/../yii2basic/vendor/yiisoft/yii2/Yii.php');
$config = require(__DIR__ . '/../yii2basic/config/web.php');
Is this correct or have I missed something?
Please note I do not have access to the httpd.conf file on the co-hosted server so cannot make changes to it.
I have searched for an answer to this on this site and in the manual but cannot find one. It's possible that the question is incorrectly phrased. If so, my apologies.
Upvotes: 1
Views: 274
Reputation: 982
You need to change a number of files with the correct new url
To start Off you need to change the following files
- index.php
- index-test.php
- yii.php //to be able run yii on console/terminal
- requirements.php
Then you're good to go
Upvotes: 1