Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

«mmap() failed: [12] Cannot allocate memory» #142

Open
ayyilmaz opened this issue Apr 3, 2020 · 1 comment
Open

«mmap() failed: [12] Cannot allocate memory» #142

ayyilmaz opened this issue Apr 3, 2020 · 1 comment

Comments

@ayyilmaz
Copy link

ayyilmaz commented Apr 3, 2020

I have these ini files but could not understand. I have tried to install ext-zip in my centos 7 server but zip extension already installed

Package php-pecl-zip-1.18.2-1.el7.remi.7.4.x86_64 already installed and latest version

ext

I get mmap() failed: [12] Cannot allocate memory when I install php webdriver. my Php ini memory limit 1024M(increased for this installation) My server's memory is 2GB
memmory

@baijunyao
Copy link
Owner

  1. Maybe your needs to configure php.ini separately in cli, You can use php -ini | grep '.ini' command to get your PHP configuration file path, and you can use php -m command to get the installed extensions.
  2. In server, you should use composer install --no-dev --optimize-autoloader command to install packages https://baijunyao.com/docs/laravel-bjyblog/en/DeployToProduction.html
  3. You can use php -d memory_limit=-1 to solve the problem of insufficient memory, e.g.
php -d memory_limit=-1 /usr/local/bin/composer require php-webdriver/webdriver

/usr/local/bin/composer is your composer path.

If it is still not resolved, please let me know, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants