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

confused about grep and the * wildcard

How to refer to a regex group in awk regex?

Brexit and backstop: would changes require unanimous approval by all EU countries? Does Ireland hold a veto?

Are illustrations in novels frowned upon?

How to persuade recruiters to send me the Job Description?

How much code would a codegolf golf if a codegolf could golf code?

What is wrong about this application of Kirchhoffs Current Law?

Do ability scores have any effect on casting the Wish spell?

Most practical knots for hitching a line to an object while keeping the bitter end as tight as possible, without sag?

On the feasibility of space battleships

Was Tuvok bluffing when he said that Voyager's transporters rendered the Kazon weapons useless?

Why did MS-DOS applications built using Turbo Pascal fail to start with a division by zero error on faster systems?

Why did this happen to Thanos's ships at the end of "Avengers: Endgame"?

How to compare two different formulations of a problem?

Avoiding racist tropes in fantasy

Defense against attacks using dictionaries

How can I watch the 17th (or last, if less) line in files of a folder?

Would it be possible to have a GMO that produces chocolate?

In an emergency, how do I find and share my position?

Science fiction short story where aliens contact a drunk about Earth's impending destruction

Gamma GLM - Derive prediction intervals for new x_i

Is it appropriate for a prospective landlord to ask me for my credit report?

Why don't electrons take the shorter path in coils

What’s the difference between something that approaches infinity and something that is infinite.



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;








15















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

















15















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













15












15








15








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.4k19 gold badges88 silver badges117 bronze badges




14.4k19 gold badges88 silver badges117 bronze badges










asked Aug 9 at 7:10









MedetMedet

814 bronze badges




814 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


















9













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



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





share|improve this answer
































    6













    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/3.0/"u003ecc by-sa 3.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









        9













        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













          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












            9








            9







            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

            5,1311 gold badge15 silver badges25 bronze badges




            5,1311 gold badge15 silver badges25 bronze badges


























                6













                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















                6













                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













                6












                6








                6







                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.4k19 gold badges88 silver badges117 bronze badges




                14.4k19 gold badges88 silver badges117 bronze badges










                answered Aug 9 at 7:26









                Mahri IlmedovaMahri Ilmedova

                1215 bronze badges




                1215 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.4k19 gold badges88 silver badges117 bronze badges




                    14.4k19 gold badges88 silver badges117 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.4k19 gold badges88 silver badges117 bronze badges




                            14.4k19 gold badges88 silver badges117 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.4k19 gold badges88 silver badges117 bronze badges




                                14.4k19 gold badges88 silver badges117 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

                                Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                                Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                                Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form