---
title: "Use Website PHP.ini with Composer"
description: "Some websites require a custom php.ini file due to default settings for a server. Therefore, some tasks will require you to specify to use that custom php.ini file path instead of the server default...."
url: https://www.inmotionhosting.com/support/website/use-website-php-ini-with-composer/
date: 2019-05-29
modified: 2021-08-16
author: "InMotion Hosting Contributor"
categories: ["Website"]
type: post
lang: en
---

# Use Website PHP.ini with Composer

Some websites require a custom php.ini file due to [default settings for a server](/support/website/what-is-your-default-php-ini-file/). Therefore, some tasks will require you to specify to use that custom php.ini file path instead of the server default. For example, [shared hosting](/blog/what-is-shared-hosting/) users may use this method when software follows the server php settings by default. You can view such info in your [phpinfo.php file](/support/website/php/create-phpinfo-page-to-see-php-settings). Below we'll **use Composer with the php.ini file of a specific website**.

## Use Website PHP.ini

1. [Log into SSH](/support/server/ssh/do-you-provide-ssh-access/).
2. Type the Composer command: php -c For example: php -c /home/cpaneluser/public_html/php.ini /opt/cpanel/composer/bin/composer update

Browse our Support Center to learn more about web design with [PHP](/support/website/php-code-in-html-file/) and [PHP configuration](/support/website/update-local-php-settings/).
