Last Updated: February 25, 2016
·
1.842K
· iantearle

Running PHP scripts in terminal on Media Temple (gs)

If you want to run a PHP script in the terminal via SSH on your Media Temple grid service you will find that it wont use your custom php.ini file if you have created one.

This means that PHP will not have access to any custom installed PECL extensions.

You will need to manually use your ini file when running the command or script.

$ php -c /home/0000/etc/php.ini -F /path/to/your/file

Obviously replace 0000 with your site identifier found in the server guide.