My notepad

Chris' IT notes…

Skip to content
  • Home
  • Here are my notes…

PHP script with limited memory assigned

Example of running a PHP script in CLI with custom memory limit:

Shell
1
php -d memory_limit=64M my_script.php

Source: http://cristian-radulescu.ro/article/php-cli-increase-memory-limit.html

This entry was posted in Linux, Scripting and tagged cli, command line, limit, memory, php on February 17, 2017 by thtieig.

Post navigation

← Upgrade PHP on CentOS using IUS repository PHP-FPM pool sizes explanation →

My notes… organised a bit

  • Cloud (33)
  • Containers (3)
  • Linux (178)
  • Mac (22)
  • Networking (16)
  • Scripting (51)
  • Virtualisation (8)
  • Windows (3)

Tags

  • apache
  • api
  • automation
  • backup
  • bash
  • basic
  • centos
  • centos7
  • cloud
  • command line
  • convert
  • debian
  • innodb
  • linux
  • lvm
  • mac
  • monitoring
  • mysql
  • nagios
  • nc
  • nfs
  • notes
  • openstack
  • php
  • php-fpm
  • rackspace
  • raspberry pi
  • redhat
  • redirect
  • rsync
  • script
  • server
  • shortcut
  • ssh
  • ssl
  • test
  • troubleshooting
  • ubuntu
  • ubuntu 16.04
  • varnish
  • vim
  • vm
  • VMware
  • windows
  • wordpress
Proudly powered by WordPress