:: Re: [DNG] OT: Install laravel on de…
Kezdőlap
Delete this message
Reply to this message
Szerző: Ludovic Bellière
Dátum:  
Címzett: dng
Tárgy: Re: [DNG] OT: Install laravel on devuan
On Mon, 24 Jun 2024, Ismael L. Donis Garcia wrote:

>
>root@clt-iyc-03:/var/www/html/testapp# sudo -u www-data composer create-project laravel/laravel.
>Creating a "laravel/laravel." project at "./laravel."
>The following exception probably indicates you have misconfigured DNS resolver(s)
>
>In CurlDownloader.php line 365:
>
> curl error 6 while downloading https://repo.packagist.org/packages.json: Could not resolve host: repo.packagis
> t.org
>


This is a composer issue. Please direct your queries to the composer issue
tracker. More over, it seems that the url has a return string in it (note the
new line after the 's' of packagist). You may want to take at look at whatever
config file you have in that directory.

Composer is using regex to check and sanitize urls:

          https://github.com/composer/composer/blob/2.2/src/Composer/Util/Http/CurlDownloader.php#L171
          https://github.com/composer/composer/blob/main/src/Composer/Util/Url.php#L106


That isn't a good sign. Especially when they have access to https://www.php.net/manual/en/function.parse-url.php

But, hey, that's PHP for you.

-- 
Cheers,
                 Ludovic