ubuntu - yii2 copy of application as separate applications on same server -


i have 1 application running in yii2 without issue. got requirment under have make copy of existing yii2 application , rename different application copy of existing database new database on same server. mean server having 2 folder having same code different name.

my problem in new instance have installed oauth2 package use in apis, same reflecting in other application well. seems taking configuration globaly affecting other application.

also have checked routes below

http://server/firstapplication/api/web/v1/main/userlogin

and

http://server/secondapplication/api/web/v1/main/userlogin

it directing first application. unable reactify setting in yii2. new yii framework. please suggest.

create 2 folder in /var/www/html oldcode , newcode

now have create virtual host in conf file

<virtualhost *:80>     serveradmin me@.example.com     documentroot "/var/www/html/oldcode"     servername oldcode.com.     errorlog "logs/oldcode.admin-error.log"     customlog "logs/oldcode.admin-access.log" common     <directory />         #options followsymlinks         options indexes followsymlinks includes execcgi         allowoverride         order deny,allow         allow </directory> </virtualhost>  <virtualhost *:80>     serveradmin me@.example.com     documentroot "/var/www/html/newcode"     servername newcode.com.     errorlog "logs/newcode.admin-error.log"     customlog "logs/newcode.admin-access.log" common     <directory />         #options followsymlinks         options indexes followsymlinks includes execcgi         allowoverride         order deny,allow         allow </directory> </virtualhost> 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -