I am studying laravel now. But I am having a difficulty in installing the framework in my wampserver. I followed this instruction but I am getting an error.
Via Download
Once Composer is installed, download the latest version of the Laravel framework and extract its contents into a directory on your server. Next, in the root of your Laravel application, run the php composer.phar install (or composer install) command to install all of the framework's dependencies. This process requires Git to be installed on the server to successfully complete the installation.
If you want to update the Laravel framework, you may issue the php composer.phar update command.
But what I did is I extracted the laravel-master file in my www folder then I also put the composer.phar inside the laravel-master folder.
So I have a directory like this.
C:/wamp/www/laravel-master/
Here's my structure
- wamp
- www
- laravel
- app (folder)
- boostrap (folder)
- public (folder)
- .gitattributes
- .gitignore
- artisan
- composer.json
- composer.phar
- CONTRIBUTING.md
- phpunit.xml
- readme.md
- server.php
- upgrade.md
And in my command prompy I install the composer.phar by this way:
C:wampwwwlaravel>php composer.phar install
But here's my error
Installing dependencies Your requirements could not be solved to an installable set of packages.
Problems:
- The requested package "laravel/framework" with constraint [> 4.0.9999999.9999999, < 4.1.9999999.9999999] could not be found.
- Problem caused by:
- Installation of package "laravel/laravel" with constraint == 1.0.0.0 was requested. Satisfiable by packages [laravel/laravel-1.0.0.0].
- Package "laravel/laravel-1.0.0.0" contains the rule laravel/laravel requires laravel/framework ([> 4.0.9999999.9999999, < 4.1.9999999.9999999]). No package satisfies this dependency.
I also tried to install it using composer but I have an error too.
C:wampwwwlaravel>composer create-project laravel/laravel --prefer-dist
Installing laravel/laravel (v4.1.0)
- Installing laravel/laravel (v4.1.0)
[RuntimeException]
You must enable the openssl extension to download files via https
create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [package] [directory] [version]
When I checked the ssl in my apache and PHP it is enable. And also I check it using the phpinfo()
Please help me guys. What should I do?
See Question&Answers more detail:os