---
title: Modifying server configurations with Chef
description: We use chef for managing each server configurations on AMIMOTO AMI. You should modify server settings on /opt/local/amimoto.json. You can modify settings on /etc/php-fpm.d/www.conf or /etc/nginx/nginx
---

[Skip to content](https://knowledge.amimoto-ami.com/en/knowledge/modifying-server-configurations-with-chef#main-content)

- [English](https://knowledge.amimoto-ami.com/en/knowledge/modifying-server-configurations-with-chef)
- [日本語](https://knowledge.amimoto-ami.com/knowledge/self-chef)

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](https://knowledge.amimoto-ami.com/en/knowledge/modifying-server-configurations-with-chef)
    - [日本語](https://knowledge.amimoto-ami.com/knowledge/self-chef)

  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. [Tips](https://knowledge.amimoto-ami.com/en/knowledge/amimoto-ami?hsLang=en#tips)

# Modifying server configurations with Chef

We use *chef* for managing each server configurations on AMIMOTO AMI.

You should modify server settings on /opt/local/amimoto.json. You can modify settings on /etc/php-fpm.d/www.conf or /etc/nginx/nginx.conf, but when you launch or restart instance, the server runs provision and overwrite any modifications on them to server default.

Please refer editable value on */opt/local/amimoto.json* on the following page: *[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).*

### How to modify /opt/local/amimoto.json

#### 1. SSH access to the server:

```
$ssh -i ~/.ssh/path-to-keyfile.pem ec2-user@SERVER-IP-ADDRESS
```

#### 2. Switching user to root:

```
$sudo su -
```

#### 3. Edit /opt/local/amimoto.json:

```
# vi /opt/local/amimoto.json
```

Please check editable 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).*

#### 4. Save changes:

```
[ESC] → [Shift]+[Z]+[Z]
```

#### 5. Applying changes:

```
# /opt/loca/provision
```

#### 6. Restart nginx、php-fpm

```
 #service monit stop; #service nginx restart; #service php-fpm restart; #service monit sart;
```

#### 7. Check changes

You can check your changes using

```
 # cat /etc/nginx/nginx.conf.
```

Also, place a phpinfo.php file in */var/www/vhosts/example.com/* then access it to check modified PHP.ini value.

 

- [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, 株式会社デジタルキューブ