-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Error on mediatemple DV #6843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@purplefish32 have you tried to "add it to your PATH environment variable and try again" ? |
I would love to but unfortunately i dont know how. |
you should package your application with vendors before deploying it on such a machine. Regarding your PHP installation, when I run
For a fully efficient support, please address to your annoying-machine provider. |
Hi there purplefish32. I regret not getting to this earlier but it looks like, alexandresalome, beat me to the punch. I recommend following his advice as it should work and is what I would have suggested. In the future, (mt) Media Temple has a great forum over at forums.mediatemple.net that is specific to our hosting. You can also reach us on Twitter 24/7 @MediaTemple. *DJ |
@purplefish32 support request are better directed on the Sf user mailing list or directly to mt in such a case. The issue tracker should be reserved for confirmed (or at least highly suspected) issues in Symfony. |
Sorry I thought it had to do with symfony. For reference the solution provided by @alexandresalome has not worked for me, I will adress the issue directly to mediatemple. Thank you all for your time. |
In the end it might be related to symfony but we just don't have enough details to tell. Donovan Tengblad notifications@github.com wrote:
|
I think I have same problem as @purplefish32
How can I force PhpExecutableFinder to get php from above locations? |
@vicb ping :) |
I'll check tomorrow on next week, GH current status: "This page is On 03/28/2013 09:08 PM, Norbert Orzechowicz wrote:
|
@norzechowicz what's your OS ? |
@vicb This is a dedicated OS based at FreeBSD. |
Not sure 100% what version of linux I am running, but the result for "cat /proc/version" is : Linux version 3.2.6mtv12 (ci_slave@cislave15.mtsvc.net) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Wed Aug 22 03:14:46 PDT 2012 So I guess this is a debian box (MediaTemple DV) if this helps |
Could you both execute this on your server (via the server NOT on the cli) <?php
var_dump(getenv('PHP_PATH'));
var_dump(':');
var_dump(getenv('PHP_PEAR_PHP_BIN'));
var_dump(':');
var_dump(getenv('PHP_BINDIR')); Together with the path to your php (ie One problem I can image is that your PHP is "php53-cli" while we are looking for "php" but that might be a link ? |
Code: <?php
var_dump(getenv('PHP_PATH'));
var_dump(':');
var_dump(getenv('PHP_PEAR_PHP_BIN'));
var_dump(':');
var_dump(getenv('PHP_BINDIR')); returns:
And yes, the problem is that Symfony is looking for |
@norzechowicz Then you could set the PHP_PATH env variable by prepending |
for me too, but I am getting :
as output for which.php |
Sorry I just updated composer, seems fixed for me now, moving on to the next bug dammit -> composer/composer#1270 |
This issue is still happening, some more information for u all and a workaround
php binary IS in current path as you can see here:
workaround: it seems PhpExecutableFinder::find function is not working in this enviroment (surely will be fixed if you are using php 5.4 since the PHP_BINARY may be available) |
i am joining to the party - the problem is still exist... |
Add me to this issue too. I'm running it on my Synology NAS but it's still a Linux box so same rules apply. My PHP executable is in
My composer is symlinked:
|
I ca also have this problem but only on shared hosting. On my dev machine everything is fine.
But composer update still leads to:
|
Having the same issue on koding.com |
For me, the problem is solved by adding line, which hardly set the PHP_PATH to \vendor\sensio\distribution-bundle\Sensio\Bundle\DistributionBundle\Composer\ScriptHandler.php file: protected static function getPhp() {
putenv("PHP_PATH=/usr/bin/php");
$phpFinder = new PhpExecutableFinder;
if (!$phpPath = $phpFinder->find()) {
throw new \RuntimeException('The php executable could not be found, add it to your PATH environment variable and try again');
}
return $phpPath;
} Obviously, gridserver don't have required variables in system constants. Well, we can set it manualy. Maybe, it could be usefull in other cases. |
Appdx.:
has to be added to
of a Synology Diskstation ( & a reboot) ... the above mentioned error has vanished since! |
Confirming that @codeaid s workaround resolves this issue (for me at least) one MediaTemple GS. |
For those using media temple's grid service, the actual solution is a different one. Let me explain what is wrong here first though. Usually you can edit So - since I use capifony for deployment - I used a different approach here, and manually added the environment variable to my deployment recipe, using
Now when I execute |
Initially posted here : composer/composer#1505 (comment)
I am trying to install Symfony via Composer on a Mediatemple DV Box where i dont have access to php.ini so I followed this tutorial : http://jamieonsoftware.com/journal/2012/10/4/using-composer-on-gs.html
Installed composer via :
curl -s https://getcomposer.org/installer | php -d allow_url_fopen=1 -d suhosin.executor.include.whitelist=phar
Aliased composer like so :
alias composer="php -d memory_limit=512M -d allow_url_fopen=1 -d suhosin.executor.include.whitelist=phar composer.phar"
Composer Install throws this error :
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap handling the post-install-cmd event terminated with an exception
[RuntimeException]
The php executable could not be found, add it to your PATH environment variable and try again
PHP 5.3.15 with Suhosin-Patch (cli) (built: Aug 9 2012 14:28:41)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH
alias composer='php -d memory_limit=512M -d allow_url_fopen=1 -d suhosin.executor.include.whitelist=phar composer.phar'
The text was updated successfully, but these errors were encountered: