Upgrade Yii 2 - no composer - yii2

I have no prior experience with Yii, and their documentation did not provide answers to my questions, so here we are:
I have a Yii2 project (2.0.42), which has been installed without composer. Can I upgrade it to the latest version using composer? If yes, how can I do that?
If that is not possible, how can I upgrade it to the latest version using the archive file that I have downloaded?

Related

mysql installation on SUSE 15 Failing with : Problem: nothing provides 'libc.so.6(GLIBC_2.28)(64bit)'

Im trying to install mysql on SUSE 15 Sp2 :
Followed steps from official documentation :
https://dev.mysql.com/doc/mysql-sles-repo-quick-guide/en/
But when i tried to install the mysql getting following error :
Problem: nothing provides 'libc.so.6(GLIBC_2.28)(64bit)' needed by the
to be installed mysql-community-server-8.0.29-1.sl15.x86_64
Solution
1: do not install mysql-community-server-8.0.29-1.sl15.x86_64
Solution 2: break mysql-community-server-8.0.29-1.sl15.x86_64 by
ignoring some of its dependencies
According to the list of platforms that are supported by this version of MySQL, version 15.3 of openSUSE is required. That's probably what's going wrong here: The version of glibc which is provided by the repositories of your openSUSE 15.2 is too old for this MySQL version. If possible, I would recommend you backup your system and then upgrade to 15.3 and then to 15.4, see these instructions. Especially when you intend to do development, it's really wise to first upgrade your OS to the latest version, because only then will you have the latest versions of the technologies you're learning – otherwise, some things you learn will be outdated from day one.

Cakephp 2.4 on PHP 7.3

We have an application built and running on CakePHP V2.4. This is running on PHP V5.6. We would like to get this running on PHP V7.3.
Can you advise on how to do this and your experience with such a change.
Cakephp 2.4 doesn't support PHP 7.
As per Cakephp 2 requirements:
PHP 5.3.0 or greater (CakePHP version 2.6 and below support PHP 5.2.8
and above). CakePHP version 2.8.0 and above support PHP 7. To use PHP
above 7.1 you may need to install mcrypt via PECL. See Security for
more information.
So if you want to use PHP 7 then you have to use Cakephp 2.8 or greater version.
Cakephp -> Installation -> Requirements
You will need to upgrade your application to at least Cake 2.10. I believe that's compatible with PHP 7.2, anyway; not sure about 7.3. Migration guides for the various point releases are here.

Couldn't use the MySql.Data.MySqlClient due to version

I am using VS2013.5, I installed the MySql for visual studio that is in the MySql Site. When I compiled my project, this warning appeared which, in the process, disabled me to use the MySqlClient methods and functions:
Warning 1 The primary reference "MySql.Data, Version=8.0.12.0,
Culture=neutral, PublicKeyToken=c5687fc88969c44d,
processorArchitecture=MSIL" could not be resolved because it was built
against the ".NETFramework,Version=v4.5.2" framework. This is a higher
version than the currently targeted framework
".NETFramework,Version=v4.5".
how can I resolve this? Is there a way to download and install the older mysql version?
You have to use and install an older MySQL connector or a newer .NET version. That is a common problem. Try to install the Version 6.X. Then it could work. If you have downloaded the MySQL integration for the Visual-Studio you have to install an older version. Not all versions are compatible and some new version have bugs and you can't open some windows. I had the same problem.
So you have to try some versions and combinations to find the correct one.
Well, if you are using .NET Framework v4.5 or v4.5.2, you better use MySQL Connector version 6.9.8. It'll work, mine did.
.NET Framework v4.5.2 work against MySql.Data, Version=8.0.12.0. So you have to use lower version of connector that is compatible with your .NET
Uninstall current connector (8.0.12.0), then from your Project > Reference tab, remove MySql.Data that has a version of 8.0.12.0. Install 6.9.8, then from Reference > Add > Search and CHECK MySql.data 6.9.8.

Justifying Non-Standard Python 3 MySQL Connector Use

I am creating a project using Django + Python 3.4. However, according to this question, the standard MySQL connector for Python does not support the language's third release (which I'm having a difficult time believing, but that's beside the point).
Ultimately, my question is whether or not it is justifiable to use a non-standard connector fork (such as that which is presented in the linked question above) over downgrading to Python 2.x. For example, are there any significant security issues with using the forked connector instead of waiting for an official release?
MySQL Connector/Python is not bundled with Django, but it is made by Oracle. So I'm not sure if it should be considered an unofficial fork.
I'm using it with an old mySQL database, python 3.4 and django 1.7. The only problem I've noticed is that sometimes the error messages are a bit wonky.
Installation is very easy:
pip install mysql-connector-python --allow-external mysql-connector-python
I have been using the mysql-connector-python connector for several months without issue. This is using Python 3.4.2 and Django-1.7.1.
It actually works much better than the git fork someone else did of the python 2 connector.
My opinion, don't downgrade to python 2 - This is a solid connector in my experience.

MySql 5.6 and missing libmemcached.so

After update Mysql 5.5 to 5.6 on debian I want start using memchached. In /usr/lib/mysql/plugin/ i do not see libmemcached.so plugin. How i can install this plugin and use?
It does not come as a part of it. You have to build it.
I suggest you to install/update mysql server using the official repository. This way you will have some tools and plugins (such libmemcached.so) installed. I've done it already doing these simple steps:
Download and install the repo: http://dev.mysql.com/downloads/repo/apt/
Switch from debian to official repository and install mysql server 5.6: http://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/#repo-qg-apt-replacing
You should now have available the libmemcache.so file within the plugins folder and should be able to proceed with the installation of the plugin.