Hi,
I am trying to install Laravel on a shared server using JailedShell access.
But the error below is shown:
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
Fatal error: Out of memory (allocated 809508864) (tried to allocate 4096 bytes) in phar:///home1/appbac20/hg/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 129
The commands executed are:
Trying to set unlimited memory_limit is shown error:
Data server Info:
I am trying to install Laravel on a shared server using JailedShell access.
But the error below is shown:
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
Fatal error: Out of memory (allocated 809508864) (tried to allocate 4096 bytes) in phar:///home1/appbac20/hg/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 129
The commands executed are:
Bash:
[email protected] [~/hg]# php -v
PHP 7.2.31 (cli) (built: May 19 2020 20:03:28) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with the ionCube PHP Loader + ionCube24 v10.3.9, Copyright (c) 2002-2019, by ionCube Ltd.
[email protected] [~/hg]#
[email protected] [~/hg]#
[email protected] [~/hg]# curl -sS https://getcomposer.org/installer | php
All settings correct for using Composer
Downloading...
Composer (version 1.10.7) successfully installed to: /home1/appbac20/hg/composer.phar
Use it: php composer.phar
[email protected] [~/hg]#
[email protected] [~/hg]#
[email protected] [~/hg]#
[email protected] [~/hg]# php composer.phar | more
______
/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
/_/
Composer version 1.10.7 2020-06-03 10:03:56
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
--profile Display timing and memory usage information
--no-plugins Whether to disable plugins.
-d, --working-dir=WORKING-DIR If specified, use the given directory as working directory.
--no-cache Prevent use of the cache
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
about Shows the short information about Composer.
archive Creates an archive of this composer package.
browse Opens the package's repository URL or homepage in your browser.
cc Clears composer's internal package cache.
check-platform-reqs Check that platform requirements are satisfied.
clear-cache Clears composer's internal package cache.
clearcache Clears composer's internal package cache.
config Sets config options.
create-project Creates new project from a package into given directory.
depends Shows which packages cause the given package to be installed.
diagnose Diagnoses the system to identify common errors.
dump-autoload Dumps the autoloader.
dumpautoload Dumps the autoloader.
exec Executes a vendored binary/script.
fund Discover how to help fund the maintenance of your dependencies.
[email protected] [~/hg]# ^C
[email protected] [~/hg]# ^C
[email protected] [~/hg]#
[email protected] [~/hg]#
[email protected] [~/hg]#
[email protected] [~/hg]#
[email protected] [~/hg]# pwd
/home1/appbac20/hg
[email protected] [~/hg]#
[email protected] [~/hg]# composer="/home1/appbac20/hg/composer.phar"
[email protected] [~/hg]#
[email protected] [~/hg]# php $composer create-project laravel/laravel
Creating a "laravel/laravel" project at "./laravel"
Installing laravel/laravel (v7.12.0)
- Installing laravel/laravel (v7.12.0): Loading from cache
Created project in /home1/appbac20/hg/laravel
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies (including require-dev)
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
Fatal error: Out of memory (allocated 809508864) (tried to allocate 4096 bytes) in phar:///home1/appbac20/hg/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 129
[email protected] [~/hg]#
Trying to set unlimited memory_limit is shown error:
Bash:
[email protected] [~/hg]# php -d "memory_limit=-1" $composer create-project laravel/laravel
Creating a "laravel/laravel" project at "./laravel"
Installing laravel/laravel (v7.12.0)
- Installing laravel/laravel (v7.12.0): Loading from cache
Created project in /home1/appbac20/hg/laravel
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies (including require-dev)
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
Fatal error: Out of memory (allocated 809508864) (tried to allocate 4096 bytes) in phar:///home1/appbac20/hg/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php on line 129
[email protected] [~/hg]#
Bash:
[[email protected] ~]# grep '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype; uname -r
/etc/redhat-release:CentOS release 6.10 (Final)
/usr/local/cpanel/version:11.86.0.21
/var/cpanel/envtype:kvm
4.14.146-225.ELK.el6.x86_64
[[email protected] ~]#