The newest Synology NAS DSM 6 version has a strange PHP set up. The command line binary is PHP version 5.6.11 with almost no enabled modules and the tokenizer part is not compiled into it. But when the synology web server app is installed and I do ran phpinfo();
then it shows me PHP version 5.6.17 with many modules, including intl and tokenizer, enabled. The web server which is running is Apache with php-fpm.
Is it possible to run php on the command line with the PHP binary from the web server? I need that because I have a PHP command line app only which is based on Symfony that requires the intl and tokenizer (probably some more) extensions.
EDIT:
Found that solution https://stackoverflow.com/questions/30238602/how-to-execute-a-php-file-using-a-php5-fpm-pool-socket, but is way too complicated.