Bug #70869

Install tool/ Configuration presets/ Image handling settings => findGraphicsMagickInPaths fails with openBasedir

Added by Frank Frewer almost 4 years ago. Updated over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
-
Start date:
2015-10-20
Due date:
% Done:

0%

TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I'm not sure if this is really a bug or just a wrong system configuration:

In /typo3/sysext/install/Classes/Configuration/Image/GraphicsMagickPreset.php / function findGraphicsMagickInPaths is a check if gm exists:

if (@is_file($path . $executable)) {

As /usr/bin is not (and IMHO should not be) in the openBasedir definition, the (existing) file /usr/bin/gm is not found - at least I think, that is the reason.

The consequence: In the install tool I can't choice the "Graphics Magick" option.
But if I comment out the above condition I can choice the option - and it works without a problem.

That means that not finding an executable file with php is_file function in the web server context doesn't imply that the file is not executable with php.

Same with ImageMagick6Preset.php and with TYPO3 6.2.

History

#1 Updated by Riccardo De Contardi almost 4 years ago

  • Category set to Install Tool

#2 Updated by Alexander Opitz over 1 year ago

The issue still exists.
And yes, the issue is the openBasedir restriction.

The same issue happens inside CommandUtility which tries to check the available paths to run commands, so it can happen that services fail but do exists.

HINT: If a service fail as executable isn't found, use the "[SYS][binSetup]" to setting it hardly in your configuration, then the check won't happen.

Also available in: Atom PDF