Creating a new project with Laravel throws an exceptionPHP Connection with neo4j “cURL error 7”cURL error 7: Failed to connect to getcomposer.org port 1080: Connection refusedopening url succeeds on localhost but fails on productioncURL error 7: Failed to connect to maps.googleapis.com port 443GuzzleHttp Exception ConnectException cURL error 7: Failed to connect to localhost port 8088: Connection refusedcURL on local WordPress site returns: Error 6 (Could not resolve host)catching GuzzleHttp Exception ConnectException and showing a custom message

Continuous functions taking uncountably many values countably often

How do shared hosting providers know you own a domain when you point the DNS to their server?

What's the difference between a creature "can't move" and a creature's "speed becomes 0 and it can't benefit from any bonus to its speed."?

What are good tips/ways to improve my writing on chalkboards?

What does Darth Vader think Obi-Wan's referring to when Obi says "If you strike me down..."

Why does this relative clause not end with the verb?

Why didn't Nick Fury call Captain Marvel instead of Spider-Man?

Get verbatim output of 'curl wttr.in' in org src code

Numeric example to understand the effect of option gamma

What are these tiny kidney bean sized things in my rotisserie chicken

Expand a recursive pattern

What´s the purpose of this diode?

List of all Russell 2000 Stocks

Heavy condensation inside car during winter. Tried multiple things, but no results!

Solving Subset-Product in Python

Wightman quantum field - Interpretation

Higher Gravity vs Higher Air Density

What's the difference between words "tongue" and "lingua"?

Did any astronauts on a mission complain about waking up?

"Readability is one thing, legibility is another", translation into french

Why is the Exchange French considered drawish?

How are the skeletons in the Tresendar Manor created? And by whom?

Is there a benefit to leaving reviews on Expedia?

Why would a life company agree to a 20-year guaranteed life annuity which is expected to pay out more than the principal?



Creating a new project with Laravel throws an exception


PHP Connection with neo4j “cURL error 7”cURL error 7: Failed to connect to getcomposer.org port 1080: Connection refusedopening url succeeds on localhost but fails on productioncURL error 7: Failed to connect to maps.googleapis.com port 443GuzzleHttp Exception ConnectException cURL error 7: Failed to connect to localhost port 8088: Connection refusedcURL on local WordPress site returns: Error 6 (Could not resolve host)catching GuzzleHttp Exception ConnectException and showing a custom message






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









17

















I have installed Composer, Laravel, and PHP 7.1.22 with all extensions.



Now I try to create a new project using "laravel new projectname". It throws the exception below. How can I fix this problem?




[GuzzleHttpExceptionConnectException]
cURL error 7: Failed to connect to localhost port 1080: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)











share|improve this question




























  • Have you tried running composer install?

    – Rob
    Aug 9 at 7:12






  • 1





    Please try the other way: composer create-project --prefer-dist laravel/laravel projectname

    – dparoli
    Aug 9 at 7:15






  • 4





    @Rob i think composer install runs after project was created.

    – Medet
    Aug 9 at 7:22











  • Oh! I thought your project is already created.

    – Rob
    Aug 9 at 7:23











  • @dparoli It works. Thank you!

    – Medet
    Aug 9 at 7:36

















17

















I have installed Composer, Laravel, and PHP 7.1.22 with all extensions.



Now I try to create a new project using "laravel new projectname". It throws the exception below. How can I fix this problem?




[GuzzleHttpExceptionConnectException]
cURL error 7: Failed to connect to localhost port 1080: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)











share|improve this question




























  • Have you tried running composer install?

    – Rob
    Aug 9 at 7:12






  • 1





    Please try the other way: composer create-project --prefer-dist laravel/laravel projectname

    – dparoli
    Aug 9 at 7:15






  • 4





    @Rob i think composer install runs after project was created.

    – Medet
    Aug 9 at 7:22











  • Oh! I thought your project is already created.

    – Rob
    Aug 9 at 7:23











  • @dparoli It works. Thank you!

    – Medet
    Aug 9 at 7:36













17












17








17








I have installed Composer, Laravel, and PHP 7.1.22 with all extensions.



Now I try to create a new project using "laravel new projectname". It throws the exception below. How can I fix this problem?




[GuzzleHttpExceptionConnectException]
cURL error 7: Failed to connect to localhost port 1080: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)











share|improve this question

















I have installed Composer, Laravel, and PHP 7.1.22 with all extensions.



Now I try to create a new project using "laravel new projectname". It throws the exception below. How can I fix this problem?




[GuzzleHttpExceptionConnectException]
cURL error 7: Failed to connect to localhost port 1080: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)








laravel






share|improve this question
















share|improve this question













share|improve this question




share|improve this question








edited Aug 9 at 21:46









Peter Mortensen

14.6k19 gold badges89 silver badges118 bronze badges




14.6k19 gold badges89 silver badges118 bronze badges










asked Aug 9 at 7:10









MedetMedet

884 bronze badges




884 bronze badges















  • Have you tried running composer install?

    – Rob
    Aug 9 at 7:12






  • 1





    Please try the other way: composer create-project --prefer-dist laravel/laravel projectname

    – dparoli
    Aug 9 at 7:15






  • 4





    @Rob i think composer install runs after project was created.

    – Medet
    Aug 9 at 7:22











  • Oh! I thought your project is already created.

    – Rob
    Aug 9 at 7:23











  • @dparoli It works. Thank you!

    – Medet
    Aug 9 at 7:36

















  • Have you tried running composer install?

    – Rob
    Aug 9 at 7:12






  • 1





    Please try the other way: composer create-project --prefer-dist laravel/laravel projectname

    – dparoli
    Aug 9 at 7:15






  • 4





    @Rob i think composer install runs after project was created.

    – Medet
    Aug 9 at 7:22











  • Oh! I thought your project is already created.

    – Rob
    Aug 9 at 7:23











  • @dparoli It works. Thank you!

    – Medet
    Aug 9 at 7:36
















Have you tried running composer install?

– Rob
Aug 9 at 7:12





Have you tried running composer install?

– Rob
Aug 9 at 7:12




1




1





Please try the other way: composer create-project --prefer-dist laravel/laravel projectname

– dparoli
Aug 9 at 7:15





Please try the other way: composer create-project --prefer-dist laravel/laravel projectname

– dparoli
Aug 9 at 7:15




4




4





@Rob i think composer install runs after project was created.

– Medet
Aug 9 at 7:22





@Rob i think composer install runs after project was created.

– Medet
Aug 9 at 7:22













Oh! I thought your project is already created.

– Rob
Aug 9 at 7:23





Oh! I thought your project is already created.

– Rob
Aug 9 at 7:23













@dparoli It works. Thank you!

– Medet
Aug 9 at 7:36





@dparoli It works. Thank you!

– Medet
Aug 9 at 7:36












5 Answers
5






active

oldest

votes


















10



















If the laravel command fail you can try with composer create-project:



composer create-project --prefer-dist laravel/laravel projectname





share|improve this answer

































    9



















    Try to remove ";" in extensions before the curl extension in your php.ini file.






    share|improve this answer























    • 2





      he wrote that installed all extensions

      – merdan
      Aug 9 at 7:43


















    4



















    If you are on Windows, check your firewall. Maybe it's blocking port 1080.






    share|improve this answer



































      3



















      I faced the same issue when I copied the laravel directory from another machine instead of installing it via composer global require laravel/installer.



      Try installing it if you copied.






      share|improve this answer



































        2



















        Try to run this:



        composer global require laravel/installer





        share|improve this answer




























        • yes i did run composer global require laravel/installer

          – Medet
          Aug 9 at 7:25












        Your Answer






        StackExchange.ifUsing("editor", function ()
        StackExchange.using("externalEditor", function ()
        StackExchange.using("snippets", function ()
        StackExchange.snippets.init();
        );
        );
        , "code-snippets");

        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "1"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader:
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        ,
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );














        draft saved

        draft discarded
















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f57425056%2fcreating-a-new-project-with-laravel-throws-an-exception%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown


























        5 Answers
        5






        active

        oldest

        votes








        5 Answers
        5






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        10



















        If the laravel command fail you can try with composer create-project:



        composer create-project --prefer-dist laravel/laravel projectname





        share|improve this answer






























          10



















          If the laravel command fail you can try with composer create-project:



          composer create-project --prefer-dist laravel/laravel projectname





          share|improve this answer




























            10














            10










            10










            If the laravel command fail you can try with composer create-project:



            composer create-project --prefer-dist laravel/laravel projectname





            share|improve this answer














            If the laravel command fail you can try with composer create-project:



            composer create-project --prefer-dist laravel/laravel projectname






            share|improve this answer













            share|improve this answer




            share|improve this answer










            answered Aug 9 at 7:38









            dparolidparoli

            6,3731 gold badge15 silver badges28 bronze badges




            6,3731 gold badge15 silver badges28 bronze badges


























                9



















                Try to remove ";" in extensions before the curl extension in your php.ini file.






                share|improve this answer























                • 2





                  he wrote that installed all extensions

                  – merdan
                  Aug 9 at 7:43















                9



















                Try to remove ";" in extensions before the curl extension in your php.ini file.






                share|improve this answer























                • 2





                  he wrote that installed all extensions

                  – merdan
                  Aug 9 at 7:43













                9














                9










                9










                Try to remove ";" in extensions before the curl extension in your php.ini file.






                share|improve this answer
















                Try to remove ";" in extensions before the curl extension in your php.ini file.







                share|improve this answer















                share|improve this answer




                share|improve this answer








                edited Aug 9 at 21:48









                Peter Mortensen

                14.6k19 gold badges89 silver badges118 bronze badges




                14.6k19 gold badges89 silver badges118 bronze badges










                answered Aug 9 at 7:26









                Mahri IlmedovaMahri Ilmedova

                1911 silver badge6 bronze badges




                1911 silver badge6 bronze badges










                • 2





                  he wrote that installed all extensions

                  – merdan
                  Aug 9 at 7:43












                • 2





                  he wrote that installed all extensions

                  – merdan
                  Aug 9 at 7:43







                2




                2





                he wrote that installed all extensions

                – merdan
                Aug 9 at 7:43





                he wrote that installed all extensions

                – merdan
                Aug 9 at 7:43











                4



















                If you are on Windows, check your firewall. Maybe it's blocking port 1080.






                share|improve this answer
































                  4



















                  If you are on Windows, check your firewall. Maybe it's blocking port 1080.






                  share|improve this answer






























                    4














                    4










                    4










                    If you are on Windows, check your firewall. Maybe it's blocking port 1080.






                    share|improve this answer
















                    If you are on Windows, check your firewall. Maybe it's blocking port 1080.







                    share|improve this answer















                    share|improve this answer




                    share|improve this answer








                    edited Aug 9 at 21:49









                    Peter Mortensen

                    14.6k19 gold badges89 silver badges118 bronze badges




                    14.6k19 gold badges89 silver badges118 bronze badges










                    answered Aug 9 at 9:04









                    Shohrat AnnamyradowShohrat Annamyradow

                    413 bronze badges




                    413 bronze badges
























                        3



















                        I faced the same issue when I copied the laravel directory from another machine instead of installing it via composer global require laravel/installer.



                        Try installing it if you copied.






                        share|improve this answer
































                          3



















                          I faced the same issue when I copied the laravel directory from another machine instead of installing it via composer global require laravel/installer.



                          Try installing it if you copied.






                          share|improve this answer






























                            3














                            3










                            3










                            I faced the same issue when I copied the laravel directory from another machine instead of installing it via composer global require laravel/installer.



                            Try installing it if you copied.






                            share|improve this answer
















                            I faced the same issue when I copied the laravel directory from another machine instead of installing it via composer global require laravel/installer.



                            Try installing it if you copied.







                            share|improve this answer















                            share|improve this answer




                            share|improve this answer








                            edited Aug 9 at 21:49









                            Peter Mortensen

                            14.6k19 gold badges89 silver badges118 bronze badges




                            14.6k19 gold badges89 silver badges118 bronze badges










                            answered Aug 9 at 9:57









                            kening marshallkening marshall

                            313 bronze badges




                            313 bronze badges
























                                2



















                                Try to run this:



                                composer global require laravel/installer





                                share|improve this answer




























                                • yes i did run composer global require laravel/installer

                                  – Medet
                                  Aug 9 at 7:25















                                2



















                                Try to run this:



                                composer global require laravel/installer





                                share|improve this answer




























                                • yes i did run composer global require laravel/installer

                                  – Medet
                                  Aug 9 at 7:25













                                2














                                2










                                2










                                Try to run this:



                                composer global require laravel/installer





                                share|improve this answer
















                                Try to run this:



                                composer global require laravel/installer






                                share|improve this answer















                                share|improve this answer




                                share|improve this answer








                                edited Aug 9 at 21:47









                                Peter Mortensen

                                14.6k19 gold badges89 silver badges118 bronze badges




                                14.6k19 gold badges89 silver badges118 bronze badges










                                answered Aug 9 at 7:18









                                user11906012user11906012

                                211 bronze badge




                                211 bronze badge















                                • yes i did run composer global require laravel/installer

                                  – Medet
                                  Aug 9 at 7:25

















                                • yes i did run composer global require laravel/installer

                                  – Medet
                                  Aug 9 at 7:25
















                                yes i did run composer global require laravel/installer

                                – Medet
                                Aug 9 at 7:25





                                yes i did run composer global require laravel/installer

                                – Medet
                                Aug 9 at 7:25


















                                draft saved

                                draft discarded















































                                Thanks for contributing an answer to Stack Overflow!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid


                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.

                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f57425056%2fcreating-a-new-project-with-laravel-throws-an-exception%23new-answer', 'question_page');

                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown









                                Popular posts from this blog

                                Tamil (spriik) Luke uk diar | Nawigatjuun

                                Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                                Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?