CakeDC / oven

Welcome to Oven. The easiest way to install CakePHP.
Other
141 stars 60 forks source link

Installation issues #39

Open xpal1 opened 1 year ago

xpal1 commented 1 year ago

I decided to download CakePHP for the first time but it didn't work out a bit. At first I downloaded it via Composer in the command line, but it still said that the plugins were not enabled, even though they were, I had created the project but I couldn't view it normally like in my browser on Localhost, so I decided to use Oven. With the help of Oven, I almost succeeded until the end of the installation "Error installing package cakephp/plugin-installer" was displayed and the continuation of the installation was not successful. I'm using CakePHP version 4.0.10 and PHP version 8.1.6, mbstring, openssl and intl extensions are up and running fine, Composer version is 2.4.3. I really don't know where the problem could be.

The text that was written after the failed installation ended: Checking path... /opt/lampp/htdocs/app directory is writable Checking PHP version... Your version of PHP is 5.5.9 or higher (detected 8.1.6). Checking mbstring extension... Your version of PHP has the mbstring extension loaded. Checking openssl/mcrypt extension... Your version of PHP has the openssl extension loaded. Checking intl extension... Your version of PHP has the intl extension loaded. Installing composer... Composer version 2.4.3 2022-10-14 16:56:41

Creating CakePHP project... Creating a "cakephp/app:~4.0.0" project at "./app" Info from https://repo.packagist.org: #StandWithUkraine Installing cakephp/app (4.0.4)

Installing cakephp/cakephp:~4.0.10... ./composer.json has been updated Running composer update cakephp/cakephp Loading composer repositories with package information Updating dependencies Lock file operations: 14 installs, 0 updates, 0 removals

Installing cakephp/migrations:^3.0@beta... ./composer.json has been updated Running composer update cakephp/migrations Loading composer repositories with package information Updating dependencies Lock file operations: 13 installs, 0 updates, 0 removals

If someone could advise me, I would be very happy, because I would like to start, try to create a project using this framework :)

webbird commented 1 year ago

Same here.

webbird commented 1 year ago

Oven installs an old CakePHP Version (4.0 instead of 4.4). Try to fix this by changing line 119:

$branches = ['4.4', '4.0.', '3.8.', '3.7.', '3.6.', '3.5.'];

You should now be able to select v4.4.7. I was able to install then. You may have to delete your session cookie to see the change.

xpal1 commented 1 year ago

finally, it helps me, so thanks ;)