---
title: 4. Managing AMIMOTO Config
description: Edit settings for NGINX, PHP, and more for AMIMOTO AMI AMIMOTO AMIs use a few config files to manage the entire server. These settings are provisioned using Chef. If you're not familiar with Chef, no
---

[Skip to content](https://knowledge.amimoto-ami.com/en/knowledge/4.-managing-amimoto-config#main-content)

English

Show submenu for translations

![Amimoto-dark-ogp.png\]](https://knowledge.amimoto-ami.com/hs-fs/hubfs/Amimoto-dark-ogp.png?height=40&name=Amimoto-dark-ogp.png)

- ホーム
- 製品
- 価格
- ブログ
- 会社

Open main navigation

Close main navigation

- ホーム
- 製品
- 価格
- ブログ
- 会社
- English
  
  Show submenu for translations
- [https://amimoto-ami.com/](https://amimoto-ami.com/)

[https://amimoto-ami.com/](https://amimoto-ami.com/)

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Amimoto Help Center](https://knowledge.amimoto-ami.com/en/knowledge?hsLang=en)
2. [Amimoto AMI](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en)
3. [Getting Started with Amimoto-AMI](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#getting-started-with-amimoto-ami)

# 4. Managing AMIMOTO Config

Edit settings for NGINX, PHP, and more for AMIMOTO AMI

AMIMOTO AMIs use a few config files to manage the entire server. These settings are provisioned using Chef.

If you're not familiar with Chef, no worries, we write the scripts for you and all you need to do is add your preferred settings and run one command.

It's an easy way to handle all the settings and apply them to multiple environments. amimoto.json stores all parameters for the server. Editing this file, you change PHP and NGINX settings and maintain those settings during reboot. The parameters on amimoto.json overwrites your direct changes to PHP or NGINX.

Only root user can edit it. To role as a root user, please check [Login as root](http://digitalcube-8114095.hs-sites.com/knowledge/log-in-as-root) document.

### Configurable values.

Here are some example: client\_max\_body\_size for Nginx, max\_allowed\_packet  for MySQL,  memory\_limit for PHP and more. You can modify all of the values listed on *[Launch-with-1-Click/lw1-amimoto2](https://github.com/Launch-with-1-Click/lw1-amimoto2).*For Amazon Linux 1, refer to *[Launch-with-1-Click/lw1-amimoto](https://github.com/Launch-with-1-Click/lw1-amimoto/tree/2016.01/attributes).*

 

### File to edit

```
/opt/local/amimoto.json
```

### Commands after editing the file.

After modifying, run all of the following commands.

#### 1. Provisioning as a root user

```
# /opt/local/provision
```

#### 2. Restarting services as a root user

```
# service monit stop# service nginx restart# service php-fpm restart # service mysql restart # service monit start  
```

### Some samples for configuring amimoto.json file.  

#### Changing memory limit for PHP

#### To change memory\_limit to 512MB

1. Add "memory\_limit": "512M", into above line of "user": "nginx"  in config in php section.
2. Run both of above "Commands after edit file".
3. After complete run, add /var/www/vhosts/YOUR-DOMAIN/phpinfo.php  which contains  \<?php phpinfo(); ?\> then access and confirm changes.
4. Never forget to remove phpinfo.php file after confirm.

#### Configuration Sample

```
{  "nginx": {    "config": {      "user": "nginx"    }  },  "php": {    "config": {      "memory_limit": "512M",      "user": "nginx"    }  },  "run_list": [    "recipe[amimoto]"  ]}
```

#### Changing upload\_max\_filesize

#### Change upload\_max\_filesize to 30MB

1. Add  "client\_max\_body\_size": "30M",  to config in nginx section.
2. Add "upload\_max\_filesize": "30M",  to config in php section.
3. Run both of above "Commands after edit file".
4. After complete run, add /var/www/vhosts/YOUR-DOMAIN/phpinfo.php   which contains  \<?php phpinfo(); ?\>  then access and confirm changes.
5. Never forget to remove phpinfo.php  file after confirm.

#### Configuration Sample

```
{  "nginx": {    "config": {      "client_max_body_size": "30M",      "user": "nginx"    }  },  "php": {    "config": {      "upload_max_filesize": "30M",      "user": "nginx"    }  },  "run_list": [    "recipe[amimoto]"  ]}
```

#### Change max\_allowed\_packet

#### To Change max\_allowed\_packet to 16MB

1. Add "max\_allowed\_packet": "16M",  to config in mysql section. If you cannot find mysql section, add it like the following configuration sample.
2. Run both of above "Commands after edit file"
3. Run following mysql command and confirm changes.
   
   ```
   mysql> show variables like 'max_allowed_packet';+--------------------+----------+| Variable_name      | Value    |+--------------------+----------+| max_allowed_packet | 16777216 |+--------------------+----------+1 row in set (0.03 sec)mysql> exitBye
   ```

#### Configuration Sample

```
{  "nginx": {    "config": {      "user": "nginx"    }  },  "php": {    "config": {      "user": "nginx"    }  },  "mysql": {    "config": {      "max_allowed_packet": "16M"    }  },  "run_list": [    "recipe[amimoto]"  ]}
```

 

- [Amimoto Managed Hosting](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#main-content)

    - [Basics](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#basics)
    - [Amimoto Essential Training](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#amimoto-essential-training)
    - [Migration tips for AMIMOTO Managed Hosting](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#migration-tips-for-amimoto-managed-hosting)
    - [Amimoto Dashboard Tips](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#amimoto-dashboard-tips)
    - [Connecting to the Server](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#connecting-to-the-server)
    - [Account and Billing](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#account-and-billing)
    - [Trouble shooting](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#trouble-shooting)
    - [WordPress Plugins](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#wordpress-plugins)
    - [Tips for DNS Vendors](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#tips-for-dns-vendors)
    - [Email](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#email)
    - [CDN and Cache control](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#cdn-and-cache-control)
    - [Server & AWS Management](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#server-aws-management)
    - [Integration](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#integration)
    - [Development](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-managed-hosting?hsLang=en#development)
- [Amimoto AMI](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#main-content)

    - [Getting Started with Amimoto-AMI](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#getting-started-with-amimoto-ami)
    - [Basics](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#basics)
    - [Connection to Amimoto AMI](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#connection-to-amimoto-ami)
    - [Tips](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#tips)
    - [FAQs](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#faqs)
    - [Trouble shooting](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#trouble-shooting)
    - [Getting Started with Amimoto JIN-KEI](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#getting-started-with-amimoto-jin-kei)
    - [Tips for JINKEI](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#tips-for-jinkei)
    - [Support](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#support)
- [\[EN\] Amimoto Managed Hosting](https://knowledge.amimoto-ami.com/en/knowledge/en-amimoto-managed-hosting?hsLang=en#main-content)

    - [Company and Guidelines](https://knowledge.amimoto-ami.com/en/knowledge/en-amimoto-managed-hosting?hsLang=en#company-and-guidelines)

- ホーム
- 製品
- 価格
- ブログ
- 会社

[![Chill listening crop-3](https://knowledge.amimoto-ami.com/hs-fs/hubfs/Amimoto_Logomark_rgb.png?width=24&height=24&name=Amimoto_Logomark_rgb.png "Chill listening crop-3")](https://ja.amimoto-ami.com/)

Amimoto Help Center

<https://www.facebook.com/AmimotoAMI/> <https://twitter.com/Amimoto_Ami>

Copyright © 2026, 株式会社デジタルキューブ