From what I understand reading about similar problems, that missing extension error should go away when you actually include that extension in your php.ini
.
First of all, scan for an existing file phar.so
- it should be around /usr/local/php54/lib
or so.
Then check if there are any traces of configuration that just waits to be enabled in /etc/php54/conf.d
. After that, and nothing was found that looks like being connected to phar, check the /etc/php54/php.ini
in the [extension] section. There might be a line commented out that contains something like this: extension = phar.so
. Activate it.
After that, php -m
should give you a list of activated extentions including the phar one. There is no need to restart PHP on the command line, because there is no persistent process that needs a restart.
If this all fails, you probably have to accept "yes" as an answer to "Must I recompile?", but I doubt your installed PHP comes without the shared extensions .so
files. And even if not, it's probably easier to install a missing package containing that extension.