#18623class.t3lib_exec.php prevents extension to work under PHP hardening
Description
When trying to use dam_index with index services using external tools such as pdftotext or exiftags, the BE reported that these tools were not available although some of them were used with indexed_search without any problem.
The problem relies in t3lib/class.t3lib_exec.php when checking if an external tool is executable or not. My server configuration is as follows:
PHP: open_basedir /var/www/somedir:/var/www/bin
in /var/www/bin, I have for instance a symbolic link
pdftotext -> /usr/bin/pdftotext
Now a call to is_executable(‘/usr/bin/pdftotext’) always returns false when dealing with a symbolic link inside a directory found in the open_basedir list of directories.
As such, the t3lib_exec class assumes that the external tool pdftotext is not available.
The only solution I found was to list all executables as “openbase_dir”:
php_admin_value open_basedir /var/www/somedir:/var/www/bin/pdftotext
(issue imported from #M8130)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.