Laravel version 5.8 does not come with routers folder?

Asked

Viewed 69 times

-2

I installed Laravel on my server (which was uploaded with vangrant and Virtual Box), but did not come the routers folder, which I found very strange, I read through the documentation that it comes with normal routers...

What can it be? When I install it gives the following errors:

The following exception is caused by a lack of memory or swap, or not having swap configured
Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details

PHP Warning:  proc_open(): fork failed - Cannot allocate memory in phar:///usr/local/bin/composer/vendor/symfony/console/Application.php on line 952

Warning: proc_open(): fork failed - Cannot allocate memory in phar:///usr/local/bin/composer/vendor/symfony/console/Application.php on line 952

  [ErrorException]
  proc_open(): fork failed - Cannot allocate memory

And that warning also appears:

As there is no 'unzip' command installed zip files are being unpacked using the PHP zip extension.
This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost.
Installing 'unzip' may remediate them.
  1. What is the solution?
  2. Why does this happen?

NOTE: This question is similar to the one I asked (How to update my PHP to the latest version by logging in from SSH to my server)

  • The reason for the negative votes?

2 answers

0

Hello, you should install the unzip package on your server, according to the messages your server may be suffering from memory loss:

proc_open(): Fork failed - Cannot allocate memory

0

Composer error "proc_open(): Fork failed errors#"

If Composer shows proc_open() Fork failed on some Commands:

PHP Fatal error: Uncaught Exception 'Errorexception' with message 'proc_open(): Fork failed - Cannot allocate memory' in phar

Below I put the link that talks about this error: https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-Fork-failed-errors

On my virtual machine using Ubuntu 18.04 I resolved using the commands below on the command line.

Solution I applied:

$ sudo /bin/dd if=/dev/zero of=/var/swap.1 Bs=1M Count=1024

$ sudo /sbin/mkswap /var/swap.1

$ sudo /sbin/swapon /var/swap.1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.