Yii Framework Forum: multiple Yii versions on a server possible? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

multiple Yii versions on a server possible? Rate Topic: -----

#1 User is offline   nagarajreddy 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 06-October 17

Posted 06 October 2017 - 03:05 PM

I have Yii 1.0 installed on my linux server, can I install Yii 2.0 to co-exist with Yii 1.0?
0

#2 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,694
  • Joined: 10-October 10
  • Location:Denmark

Posted 06 October 2017 - 03:09 PM

Yes, of course: you can have as many versions as you have Yii 2 applications! And it is quite common.

Simply because Yii 2 uses Composer and thus local dependencies.
"Less noise - more signal"
1

#3 User is offline   nagarajreddy 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 06-October 17

Posted 09 October 2017 - 09:55 AM

View Postjacmoe, on 06 October 2017 - 03:09 PM, said:

Yes, of course: you can have as many versions as you have Yii 2 applications! And it is quite common.

Simply because Yii 2 uses Composer and thus local dependencies.

Thank you. So there will be no potential issues running both the versions right?
0

#4 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,694
  • Joined: 10-October 10
  • Location:Denmark

Posted 09 October 2017 - 09:59 AM

Yii 1 is using the old way: PHP include path, and normally globally installed and shared between applications.

Yii 2 is using Composer and is installed as a local dependency almost exclusively.

So, yes: no problems.

You can also have multiple versions of Yii 2 without incidence. Posted Image
"Less noise - more signal"
0

#5 User is offline   nagarajreddy 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 06-October 17

Posted 09 October 2017 - 11:42 AM

View Postjacmoe, on 09 October 2017 - 09:59 AM, said:

Yii 1 is using the old way: PHP include path, and normally globally installed and shared between applications.

Yii 2 is using Composer and is installed as a local dependency almost exclusively.

So, yes: no problems.

You can also have multiple versions of Yii 2 without incidence. Posted Image

Thank you. That was very helpful information.
0

#6 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,694
  • Joined: 10-October 10
  • Location:Denmark

Posted 09 October 2017 - 01:22 PM

Yii 2 uses namespaces, so you can even use Yii 1 and Yii 2 together in the same application - although, I wage that you would rather not be doing that under normal circumstances.
"Less noise - more signal"
0

#7 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,184
  • Joined: 17-January 09
  • Location:Russia

Posted 09 October 2017 - 02:08 PM

I think PHP version may be a problem. 2.0 requires PHP 5.4 while 1.0 was made for 5.2. There could be compatibility issues running 1.0 on 5.4 since it wasn't tested. If you've meant 1.1, that's alright though to use PHP 7.
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I can work more on Yii: https://www.patreon.com/samdark
1

#8 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,694
  • Joined: 10-October 10
  • Location:Denmark

Posted 10 October 2017 - 08:04 AM

I completely overlooked that issue, of course!
Indeed, it will only work with Yii 1.1 and Yii 2.x
"Less noise - more signal"
0

#9 User is offline   Adrian.Williams.cisin 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 05-November 16

Posted 18 October 2017 - 03:15 AM

You can not use both together.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users