CakePHP 3.1.1 Install Error - php

I installed Composer for windows file.exe and tried to install cakePHP 3.1.1 just now for the first time, but got the below error. Files[CakePHP311] created in that folder and also have XAMPP[PHP version 5.6.8] + Windows 10 Pro.
What is this error and cakePHP files needed re-setup?
User#cccc/C/xampp/htdocs/cakePHP_Blog
$ composer create-project --prefer-dist cakephp/app cakePHPblog
Installing cakephp/app (3.1.1)
- Installing cakephp/app (3.1.1)
Downloading: 100%
Created project in cakePHPblog
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem
- cakephp/cakephp 3.1.x-dev requires ext-intl * -> the requested PHP extensi on intl is missing from your system.
- cakephp/cakephp 3.1.0-beta2 requires ext-intl * -> the requested PHP exten sion intl is missing from your system.
- cakephp/cakephp 3.1.0-beta requires ext-intl * -> the requested PHP extens ion intl is missing from your system.
- cakephp/cakephp 3.1.0-RC1 requires ext-intl * -> the requested PHP extensi on intl is missing from your system.
- cakephp/cakephp 3.1.0 requires ext-intl * -> the requested PHP extension i ntl is missing from your system.
- Installation request for cakephp/cakephp ~3.1 -> satisfiable by cakephp/ca kephp[3.1.0, 3.1.0-RC1, 3.1.0-beta, 3.1.0-beta2, 3.1.x-dev].

This error occurred from php-intl plugin missing.
If you use Linux, you can try apt-get install php5-intl or yum install php-intl command.

Make sure the extension php_intl is installed and enabled. It comes bundled with the XAMPP installation but may not be enabled. You can enable it by checking for the following line in your php.ini (located at /xampp/php/php.ini) which may be commented out and removing the comment:
;extension=php_intl.dll
TO (remove the semicolon)
extension=php_intl.dll
You will then need to restart Apache from the Xampp Control Panel.

Related

Magento installation not working after editing php.ini

I tried to install Magento 2.4.5 on windows I am using windows 8.1 by the way and I downloaded xampp8.1.12, composer 2.4.4, and when I typed this command
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition
I got this error :
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires magento/product-community-edition 2.4.5-p1 -> satisfiable by magento/product-community-edition[2.4.5-p1].
- magento/product-community-edition 2.4.5-p1 requires ext-intl * -> it is missing from your system. Install or enable PHP's intl extension.
Problem 2
- magento/magento2-functional-testing-framework[3.7.0, ..., 3.12.0] require ext-intl * -> it is missing from your system. Install or enable PHP's intl extension.
- Root composer.json requires magento/magento2-functional-testing-framework ^3.7 -> satisfiable by magento/magento2-functional-testing-framework[3.7.0, ..., 3.12.0].
To enable extensions, verify that they are enabled in your .ini files:
- C:\xampp\php\php.ini
You can also run `php --ini` in a terminal to see which files PHP uses in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-intl` to temporarily ignore these required extensions.
The strange thing is that I removed the comma from all of these extensions in the php.ini file:
extension=gd
extension=intl
extension=soap
extension=sockets
extension=sodium
extension=xsl
and I still have the same error
and by the way, when I restart xampp I get this error:
The Procedure entry point crypto_core_ristretto255_scalar _ reduce could not be located in the dynamic link library C:\xampp8.1\php\ext\php_sodium.dll
I tried running this command
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition
but it didn't work
Please make sure below all extensions are enabled in php.ini
sodium
ext-bcmath
ext-ctype
ext-curl
ext-dom
ext-gd
ext-hash
ext-iconv
ext-intl
ext-mbstring
ext-openssl
ext-pdo_mysql
ext-simplexml
ext-soap
ext-xsl
ext-zip
ext-sockets

Unable to install laravel 5 on windows via composer

I am trying to get started with laravel on windows and here is the command I tried:
rahul#rahulserver MINGW64 /d/PhpIdeaProjects/LaravelLearning
$ composer create-project laravel/laravel learning-laravel-5
Here is the output I get:
Installing laravel/laravel (v5.0.22)
- Installing laravel/laravel (v5.0.22)
Loading from cache
Created project in learning-laravel-5
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for danielstjules/stringy 1.9.0 -> satisfiable by danielstjules/stringy[1.9.0].
- danielstjules/stringy 1.9.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 2
- Installation request for laravel/framework v5.0.16 -> satisfiable by laravel/framework[v5.0.16].
- laravel/framework v5.0.16 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
So how shall I move on and have it working?
The requested dependencies require the php extension mbstring as the error explains.
the requested PHP extension mbstring is missing from your system
So install the extension and it should install flawless.
mbstring is built in the libapache2-mod-php5 package. Run
sudo apt-get install libapache2-mod-php5
For windows environments check your php.ini and uncomment the line ;extension=php_mbstring.dll to extension=php_mbstring.dll - then restart your webserver.

Errors while using a laravel 5 boilerplate

I want to use
https://github.com/rappasoft/laravel-5-boilerplate as a starting point for my Laravel project, but when I do composer install i get the following errors.
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for guzzle/guzzle v3.9.3 -> satisfiable by guzzle/guzzle[v3.9.3].
- guzzle/guzzle v3.9.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 2
- Installation request for stripe/stripe-php v1.18.0 -> satisfiable by stripe/stripe-php[v1.18.0].
- stripe/stripe-php v1.18.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 3
- guzzle/guzzle v3.9.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- league/oauth1-client 1.5.0 requires guzzle/guzzle 3.* -> satisfiable by guzzle/guzzle[v3.9.3].
- Installation request for league/oauth1-client 1.5.0 -> satisfiable by league/oauth1-client[1.5.0].
How to resolve this?
you are missing php5-curl - CURL module for php5
sudo apt-get install php5-curl
and try to install again.
if you are using ubuntu 16.04, by default it comes with php 7. you are missing php-curl - CURL module for php7
sudo apt install php-curl

I am having trouble installing CakePHP on my Mac

I currently have XAMPP 5.6.8 and MAMP 3.2.1 installed on my computer. I also have Composer installed globally on my Mac. I tried all the suggestions in CakePHP but I am not able to install it. I looked all over this forum and none of the suggestions have worked for me. This is the error I get when I type in the commands into the terminal.
Carloss-Mac-mini:~ Carlos_Zetroc$ composer create-project --prefer-dist cakephp/app [CakePHP]
Installing cakephp/app (3.0.2)
- Installing cakephp/app (3.0.2)
Loading from cache
Created project in [CakePHP]
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- cakephp/cakephp 3.0.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-beta3 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-beta2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-beta1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-alpha2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-alpha1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-RC2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-RC1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- Installation request for cakephp/cakephp ~3.0 -> satisfiable by cakephp/cakephp[3.0.0, 3.0.0-RC1, 3.0.0-RC2, 3.0.0-alpha1, 3.0.0-alpha2, 3.0.0-beta1, 3.0.0-beta2, 3.0.0-beta3, 3.0.1, 3.0.2, 3.1.x-dev, 3.0.x-dev].
If anybody can help me out I'd greatly appreciate it.
You have to install and enable ext-intl on your system before installing cakePhp.
You will get the instruction here
Check http://book.cakephp.org/3.0/en/installation.html#requirements
In XAMPP, intl extension is included but you have to uncomment extension=php_intl.dll in php.ini and restart the server through the XAMPP Control Panel.
The OSX answer to this is to go to "php-osx.liip.ch" and run this command for PHP 5.6 (Current stable) in your command line interface (CLI):
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
After that is complete, establish the path to your PHP binary. You could use anything you want, but I used vim. Here is the command at the CLI:
"vim ~/.bash_profile"
This will lead you to a CLI text editor. I am told that some people may not have a "usr" directory, if not, feel free to make one. Please go elsewhere to see how to do this.
In the meanwhile, after you have executed "vim ~/.bash_profile", and inside the editor, feel free to press "i" for insert, and then type your path. The line is "export PATH="/usr/local/php5/bin:$PATH". When you are done that, press escape and then ":wq" the ":" stand for "I wanna enter a command", and "wq" stands for "write and quit". When it is done, you will be returned to the command line.
You then enable you path by typing "source ~/.bash_profile". This will enable your new path. Close the CLI and restart it (if needed). Your new path will be "/usr/local/php5/bin/php". You can ascertain this if you type "which php" at the CLI.
This will now change the PHP universal from the default PHP that came with your Mac to the one you then specified. After which, feel free to bake with composer!

Installing Sylius

I am installing Sylius. In my command prompt I did
composer create-project -s dev sylius/sylius
I get this error message :
C:\wamp\www\Symfony>composer create-project -s dev sylius/sylius
Installing sylius/sylius (dev-master 18d981683430c0afd1a102b6fc67f8ffeaabddc0)
- Installing sylius/sylius (dev-master master)
Cloning master
Created project in C:\wamp\www\Symfony\sylius
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for symfony/icu 1.2.x-dev -> satisfiable by symfony/icu[1.2.x-dev].
- symfony/icu 1.2.x-dev requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
Problem 2
- Installation request for instaclick/php-webdriver 1.0.x-dev -> satisfiable by instaclick/php-webdriver[1.0.x-dev].
- instaclick/php-webdriver 1.0.x-dev requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 3
- Installation request for instaclick/php-webdriver dev-master -> satisfiable by instaclick/php-webdriver[dev-master].
- instaclick/php-webdriver dev-master requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 4
- symfony/icu 1.2.x-dev requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
- symfony/symfony 2.3.x-dev requires symfony/icu ~1.0 -> satisfiable by symfony/icu[1.2.x-dev].
- Installation request for symfony/symfony 2.3.x-dev -> satisfiable by symfony/symfony[2.3.x-dev].
What I tried :
php composer.phar self update
php composer.phar install
Deleting sylius directory
Reinstalling sylius with the create-project command
Fresh installation of Symfony 2.3.4 and reinstallation of sylius
Did what was told in the first answer: enable extension curl and intl
Used the function get_loaded_extension() to confirm that curl and intl are loaded. Well, it is loaded
WAMP has two php.ini files, one for apache and one for CLI. When you click on WAMP tray icon in php modules you can see only modules enabled for apache, and so enabling and disabling modules takes effect only for apache copy of php.ini.
Try enabling curl and intl in X:\path\to\wamp\bin\php\php.ini which is config for CLI (BTW. config for apache is placed in X:\path\to\wamp\bin\apache\bin\php.ini).
It looks like you need to install two PHP extensions to make this work: curl and intl (which provides the lib-icu required by symfony/icu). Since you are using Windows, I recommend the official guide on how to install extensions on Windows systems. You can find the intl extension in the PECL repository here.
curl should be installed on your WAMP already, but disabled by default. See the top answer to this question for instructions on how to enable it.
Sylius has now released the latest version v1.0.0 which I have covered in a blog to install it. Here is the Source: https://www.cloudways.com/blog/install-sylius-ecommerce-framework/
You just need to run the following cammands in SSH or Terminal Sylius will be installed
$ composer create-project -s beta sylius/sylius-standard project
$ cd project
$ npm install
$ npm run gulp
$ bin/console sylius:install

Categories