Use Website PHP.ini with Composer Updated on August 16, 2021 by InMotion Hosting Contributor 0 Minutes, 37 Seconds to Read 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. For example, 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. Below we’ll use Composer with the php.ini file of a specific website. Use Website PHP.ini Log into SSH. Type the Composer command: php -c [path-to-php.ini] [path-to-composer] [composer-options] 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 and PHP configuration. Share this Article InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles How to Create a Local Dev Server with Vagrant AWStats: View Statistics About Your Website Traffic MySQL Error 1064: You Have an Error in Your SQL Syntax MySQL Error 1044 Access Denied Troubleshooting: Fixing the “localhost Refused to Connect” Error HTTP Error Codes: What They Mean and How to Fix Them How to Fix the 504 Gateway Timeout Error 500 Internal Server Error How To Create a PHP Redirect (301, 302, and Dynamic Redirect Examples) Connect to SFTP for Shared Hosting Accounts Using FileZilla