php - Changing Yii folder locations -
using yii2 basic. trying tidy-up yii2 installation , wish place main working files , folders sub directory on co-hosted production server called, say, "yii2basic". need place files , folders web folder public_html on server.
as far can ascertain, need change the following lines in index.php file so:
require(__dir__ . '/../yii2basic/vendor/autoload.php'); require(__dir__ . '/../yii2basic/vendor/yiisoft/yii2/yii.php'); $config = require(__dir__ . '/../yii2basic/config/web.php');
is correct or have missed something?
please note not have access httpd.conf file on co-hosted server cannot make changes it.
i have searched answer on site , in manual cannot find one. it's possible question incorrectly phrased. if so, apologies.
you need change number of files correct new url
to start off need change following files
- index.php
- index-test.php
- yii.php //to able run yii on console/terminal
- requirements.php
then you're go
Comments
Post a Comment