Skip to main content
Improving the answer
Source Link
Rafael Corrêa Gomes
  • 13.7k
  • 14
  • 91
  • 181

Create the file php.ini at the root of the project. If you need to increase the PHP memory limit:

memory_limit = 1024M

For a list of recommended PHP configuration settings, see Required PHP settings.

After pushing your file, you can check that the custom PHP configuration has been added to your environment by creating an SSH tunnel to your environment and entering:

cat /etc/php5/fpm/php.ini

You can also increase the MySQL, Redis, and ElasticSearch resources in the file .magento/services.yaml.

# The services of the project.
#
# Each service listed will be deployed to power your project.

mysql:
    type: mysql:10.2
    disk: 8192

redis:
    type: redis:5.0

elasticsearch:
    type: elasticsearch:6.8
    disk: 1024

Reference: Magento DevDocs - Customize php.ini settings

Create the file php.ini at the root of the project. If you need to increase the PHP memory limit:

memory_limit = 1024M

For a list of recommended PHP configuration settings, see Required PHP settings.

After pushing your file, you can check that the custom PHP configuration has been added to your environment by creating an SSH tunnel to your environment and entering:

cat /etc/php5/fpm/php.ini

Reference: Magento DevDocs - Customize php.ini settings

Create the file php.ini at the root of the project. If you need to increase the PHP memory limit:

memory_limit = 1024M

For a list of recommended PHP configuration settings, see Required PHP settings.

After pushing your file, you can check that the custom PHP configuration has been added to your environment by creating an SSH tunnel to your environment and entering:

cat /etc/php5/fpm/php.ini

You can also increase the MySQL, Redis, and ElasticSearch resources in the file .magento/services.yaml.

# The services of the project.
#
# Each service listed will be deployed to power your project.

mysql:
    type: mysql:10.2
    disk: 8192

redis:
    type: redis:5.0

elasticsearch:
    type: elasticsearch:6.8
    disk: 1024

Reference: Magento DevDocs - Customize php.ini settings

Source Link
Rafael Corrêa Gomes
  • 13.7k
  • 14
  • 91
  • 181

Create the file php.ini at the root of the project. If you need to increase the PHP memory limit:

memory_limit = 1024M

For a list of recommended PHP configuration settings, see Required PHP settings.

After pushing your file, you can check that the custom PHP configuration has been added to your environment by creating an SSH tunnel to your environment and entering:

cat /etc/php5/fpm/php.ini

Reference: Magento DevDocs - Customize php.ini settings