Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
i am not able to install L4 on linux(ubuntu) with (PHP 5.4.9-4ubuntu2.2) using composer, below is the error screen shot, i update composer, even installed new composer still getting same error, it's working fine in windows
Solved
Thanks you all for your inputs and sorry for bothering, the problem is with our firewall it was
blocking swiftmailer/swiftmailer package url on linux box which was
causing this issue, and confusion is due to composer's wrong message, I think its verifying signature but not URL or domain
when i used curl to open the url then i found that our firewall is blocking the URL and redirecting to an internal error url see below screen shot
Try installing it with --prefer-source or --prefer-dist
php composer.phar create-project laravel/laravel --prefer-dist
or
php composer.phar create-project laravel/laravel --prefer-source
First install composer globally using terminal,
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
Then install latest laravel from downloaded version.
First download and extract latest framework from Github
Then in terminal change your directory to project root folder, like
cd /var/www/laravel-master/
Or
cd /opt/lampp/htdocs/laravel-master
Then run composer installation,
composer install
If you are getting some timeout error use,
COMPOSER_PROCESS_TIMEOUT=24000 composer install
Or
COMPOSER_PROCESS_TIMEOUT=24000 composer update
Something to try would be to delete the composer cache located at ~/.composer/cache/. This will force composer to download all packages again instead of using what you have in cache. If there was an error when getting Swiftmailer the first time, it will continually try to pull that bad copy.
Also, try deleting your vendor directory in your project and running composer install again.
Related
This question already has answers here:
Composer cannot download files
(3 answers)
Closed 3 months ago.
Tried creating a new project on a corporate proxy and suddenly composer cant create a laravel project.
"curl error 28 while downloading https://repo.packagist.org/packages.json: Connection timed out after 10001 millisec
onds"
been trying different stackoverflow solutions but none of them solves my problem.
running "composer diagnose"
hello you can try this,
Try clearing Composer's cache by running composer clear-cache remove composer.lock and composer install
Fixed the problem by running
SET HTTP_PROXY=http://username:password#IP:port && php composer.phar install
source:
Composer cannot download files
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I currently have a Laravel application running Laravel version 5.8. I want to upgrade to 6.0. In composer.json I change
"laravel/framework": "5.8.*", to "laravel/framework": "6.0.*",
and then run composer update I get the following error
- laravel/framework v6.0.4 requires php ^7.2 -> your PHP version (7.1.8) does not satisfy that requirement.
I have also ran composer install then composer update and get same error. How would I update my PHP version?
My question was closed for lacking more details. I am not sure what other details to give. When I open mamp -> preferences -> PHP, this shows Standard Version 7.3.7. Yet when I run php -v from the command line, this shows PHP 7.1.8. If I run PHP Info from Mamp, this shows PHP 7.3.7.
Is my machine running more than one version of PHP? I have search on how to upgrade PHP and not finding correct answers. Any help appreciated?
You got this error from your composer, which is a dependency Manager for PHP. On your system you have installed php version 7.1.8, but Laravel 6.0.4 requires php version 7.2 or higher.
You can check your current php version from Terminal or cmd like this
$ php --version
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I pushed my Laravel project to my bitbucket repository and cloned on another Loptop when I write php artisan serve It says:
Fatal error: require(): Failed opening required 'C:\Users\MyPC\Desktop\MyProject/vendor/autoload.php' (include_path='D:\xampp\php\PEAR') in C:\Users\MyPc
\Desktop\MyProject\artisan on line 18
You'll have to make sure that php, composer and a plethora of other php extensions are installed on your other node. also after cloning you'll have to copy the .env.example to .env and change some values, run compser install, php artisan key:generate and php artisan storage:link. Usually that's enough. Don't forget to setup your webserver to serve your new app.
UPDATE
Run the migrations: php artisan migrate
I followed all the instruction by installing composer and then Laravel. Also I did everything what was shown in laracast series for installing Laravel and composer.
BUT I have some problems and I cannot solve them:
I don't have Vendor folder in my Laravel app folder
I cannot launch command 'composer artisan' as it says that
[Symfony\Component\Console\Exception\CommandNotFoundException]
Command "artisan" is not defined"
"php artisan" also doesn't work
All the answer in the web I have already tried to resolve my problems but nothing worked for me
Please, tell me, how can I install Laravel correctly and use it without errors
Run composer install or composer update. This will create the vendor folder and download all the dependent modules as mentioned in the composer.json
I want to add some more details which are asked but not clearly answered.
You did not install the composer dependencies. Try composer install.
It is not composer artisan. If you execute that command, you say hey composer! run your artisan command. And it says "Command "artisan" is not defined."
It is php artisan. But if you don't run composer install, php artisan will not work either. Because you are missing Symfony Console Component in your project (not the one used by composer) as well as a complete Laravel installation. Both will also be installed by the composer install command.
Well. I've solved my problem. As I mentioned before I had tried all the answer in the web but nothing had helped me. So then I just deleted my laravel project and ran this command
sudo apt-get upgrade
After some time packages were upgraded and I created new Laravel project. And Laravel started working perfectly! So in any incomprehensible situation do apt-get upgrade :))
Am running laravel create project in windows command prompt like, composer create-project laravel/laravel laravel-medium --prefer-dist but am getting error like,
[Composer\Downloader\TransportException]
Your configuration does not allow connections to http://packagist.org/packa
ges.json. See https://getcomposer.org/doc/06-config.md#secure-http for details.
i don't know how to fix this issue. Please help me.
There is a discussion about this here.
You can try to run composer self-update. This will update your composer version and might solve the problem.
If it does not, you could turn ssl off, by running composer config -g secure-http false, however I would not recommend this.